From 745ac58045b278dc6fe939a77878928327b2b204 Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Mon, 27 May 2024 20:16:48 +0100 Subject: [PATCH] KaTeX support Source button --- src/components/Music.astro | 2 +- src/content/posts/math-examples.md | 23 ++++++++++++++ src/layouts/Layout.astro | 33 +++++++++++++++++-- src/layouts/Markdown.astro | 51 ++++++++++++++++++++++++------ src/pages/posts/[...slug].astro | 2 +- src/pages/projects/[...slug].astro | 2 +- 6 files changed, 99 insertions(+), 14 deletions(-) create mode 100644 src/content/posts/math-examples.md diff --git a/src/components/Music.astro b/src/components/Music.astro index 74ca684..ab9de0b 100644 --- a/src/components/Music.astro +++ b/src/components/Music.astro @@ -4,7 +4,7 @@ import leg from "../assets/leg.webp"; - - + + + + + + {title} diff --git a/src/layouts/Markdown.astro b/src/layouts/Markdown.astro index de998ed..6968d0c 100644 --- a/src/layouts/Markdown.astro +++ b/src/layouts/Markdown.astro @@ -16,6 +16,12 @@ const date = new Date(post.data.pubDate); + + + Source + + +

{post.data.title}

{post.data.pubDate ? ( @@ -36,34 +42,61 @@ const date = new Date(post.data.pubDate);
-
+{(prev || next) && (
)} +