diff --git a/public/pretty-feed-v3.xsl b/public/pretty-feed-v3.xsl deleted file mode 100644 index b8f0063..0000000 --- a/public/pretty-feed-v3.xsl +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - <xsl:value-of select="/rss/channel/title"/> Web Feed - - - - - - -
-
-

- - - - - - - - - - - - - - - - - - - Web Feed Preview -

-

-

- - - - - Visit Website → - -
-

Recent Items

- -
-

- - - - - - -

- - Published: - -
-
-
- - -
-
diff --git a/src/assets/left-active.png b/src/assets/left-active.png new file mode 100644 index 0000000..6a2c791 Binary files /dev/null and b/src/assets/left-active.png differ diff --git a/src/assets/left-hover.png b/src/assets/left-hover.png new file mode 100644 index 0000000..ebdc036 Binary files /dev/null and b/src/assets/left-hover.png differ diff --git a/src/assets/left-normal.png b/src/assets/left-normal.png new file mode 100644 index 0000000..b85bf10 Binary files /dev/null and b/src/assets/left-normal.png differ diff --git a/src/assets/right-active.png b/src/assets/right-active.png new file mode 100644 index 0000000..3ee4c5c Binary files /dev/null and b/src/assets/right-active.png differ diff --git a/src/assets/right-hover.png b/src/assets/right-hover.png new file mode 100644 index 0000000..799bcbf Binary files /dev/null and b/src/assets/right-hover.png differ diff --git a/src/assets/right-normal.png b/src/assets/right-normal.png new file mode 100644 index 0000000..4166c46 Binary files /dev/null and b/src/assets/right-normal.png differ diff --git a/src/layouts/Blog.astro b/src/layouts/Blog.astro index 7ad6ac0..d553c34 100644 --- a/src/layouts/Blog.astro +++ b/src/layouts/Blog.astro @@ -75,7 +75,7 @@ dayjs.extend(utc); -
+
@@ -143,6 +143,7 @@ dayjs.extend(utc); --border-4: #88aabb; --border-5: #99bbcc; --border-6: #bbccdd; + color: #000; } h1 { font: bold 1rem var(--arial-font); } h2 { @@ -315,12 +316,15 @@ dayjs.extend(utc); .content { position: relative; + background-attachment: local; background-image: linear-gradient(to right, var(--bg-0) 5px, transparent 2px), linear-gradient(var(--bg-4) 2px, transparent 2px); background-size: 10px 1lh; - background-position-y: 1.9lh; - margin: 0 1rem 2rem; - padding: 2rem 1rem 0; + background-position-y: calc(2lh - 2px); + margin: 2rem 1rem; + padding: 0 1rem; line-height: 2; + max-height: 38em; + overflow-y: auto; margin-trim: block; p { margin-block: 1lh; } @@ -347,8 +351,7 @@ dayjs.extend(utc); display: grid; place-content: center; grid-area: 1 / 1 / -1; - padding-top: -2px; - padding-left: 2px; + padding: 0 4px 0 8px; height: 100%; border-top: 2px solid var(--border-1); border-right: 2px solid var(--border-4); diff --git a/src/layouts/Chapter.astro b/src/layouts/Chapter.astro index 534fcb6..594768b 100644 --- a/src/layouts/Chapter.astro +++ b/src/layouts/Chapter.astro @@ -7,7 +7,7 @@ interface Props { title: string; ficTitle: string; date: Date; - notes?: any; + notes?: string; lastModified?: Date; } diff --git a/src/pages/blog/[...id].astro b/src/pages/blog/[...id].astro index 417295f..f4f9988 100644 --- a/src/pages/blog/[...id].astro +++ b/src/pages/blog/[...id].astro @@ -2,6 +2,12 @@ import Blog from '@/layouts/Blog.astro'; import type { GetStaticPaths } from 'astro'; import { getCollection, render } from 'astro:content'; +import leftNormal from "@/assets/left-normal.png"; +import leftHover from "@/assets/left-hover.png"; +import leftActive from "@/assets/left-active.png"; +import rightNormal from "@/assets/right-normal.png"; +import rightHover from "@/assets/right-hover.png"; +import rightActive from "@/assets/right-active.png"; export const getStaticPaths = (async () => { const blog = await getCollection("blog"); @@ -26,39 +32,58 @@ const next = current === 0 ? undefined : blog[current - 1]; {(previous || next) && (
{previous && ( - + )} {next && ( - + )}
)} - \ No newline at end of file diff --git a/src/pages/blog/rss.xml.ts b/src/pages/blog/rss.xml.ts index d615448..8310208 100644 --- a/src/pages/blog/rss.xml.ts +++ b/src/pages/blog/rss.xml.ts @@ -18,6 +18,5 @@ export const GET: APIRoute = async (context) => { }), ...entry.data, })), - stylesheet: "/pretty-feed-v3.xsl", }); } \ No newline at end of file diff --git a/src/pages/fics/[ficId]/rss.xml.ts b/src/pages/fics/[ficId]/rss.xml.ts index cb0ac43..f3c4a05 100644 --- a/src/pages/fics/[ficId]/rss.xml.ts +++ b/src/pages/fics/[ficId]/rss.xml.ts @@ -27,7 +27,6 @@ export const GET: APIRoute = async (context) => { }), categories: fic?.data.series.concat(fic.data.title), })), - stylesheet: "/pretty-feed-v3.xsl", }); };