1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-04-17 09:28:43 -04:00

switch back to lighter markdown-to-jsx on server-side

This commit is contained in:
2022-01-15 08:51:10 -05:00
parent d979ef733a
commit 6d7ffee7ea
6 changed files with 25 additions and 25 deletions

View File

@@ -12,7 +12,7 @@ const List = ({ notesByYear }) => {
<section key={year} className={styles.section}>
<h2 className={styles.year}>{year}</h2>
<ul className={styles.list}>
{notes.map(({ slug, date, title, htmlTitle = "" }) => (
{notes.map(({ slug, date, htmlTitle }) => (
<li key={slug} className={styles.row}>
<span className={styles.date}>{format(new Date(date), "MMM d")}</span>
<span>
@@ -23,7 +23,7 @@ const List = ({ notesByYear }) => {
}}
prefetch={false}
>
<a dangerouslySetInnerHTML={{ __html: htmlTitle || title }} />
<a dangerouslySetInnerHTML={{ __html: htmlTitle }} />
</Link>
</span>
</li>

View File

@@ -7,7 +7,7 @@ import type { NoteMetaType } from "../../types";
import styles from "./Meta.module.css";
const Meta = ({ slug, date, title, htmlTitle = "", tags = [] }: NoteMetaType) => (
const Meta = ({ slug, date, title, htmlTitle, tags = [] }: NoteMetaType) => (
<>
<div className={styles.meta}>
<div className={styles.date}>
@@ -57,7 +57,7 @@ const Meta = ({ slug, date, title, htmlTitle = "", tags = [] }: NoteMetaType) =>
<h1 className={styles.title}>
<Link href={`/notes/${slug}/`}>
<a dangerouslySetInnerHTML={{ __html: htmlTitle || title }} />
<a dangerouslySetInnerHTML={{ __html: htmlTitle }} />
</Link>
</h1>
</>