Custom RSS Feed
+ +Add the comic slugs from the URLs of your favorite comics on ComicK.
+Example: For "https://comick.io/comic/01-one-piece", the slug is "01-one-piece"
+From 082db594dd4531d4d6cc0f781f4cda6df70fd2d5 Mon Sep 17 00:00:00 2001 From: ld3zian <42660576+ld3z@users.noreply.github.com> Date: Sat, 25 Jan 2025 12:37:55 -0700 Subject: [PATCH] add specific feeds for specifc manga --- .gitignore | 2 +- src/components/SlugInput.astro | 163 ++++++++++++++++++++++++++++ src/lib/api.ts | 155 +++++++++++++++++++++++++- src/pages/[lang]/[type].astro | 22 +++- src/pages/custom.astro | 22 ++++ src/pages/rss/custom/[slugs].xml.ts | 36 ++++++ 6 files changed, 397 insertions(+), 3 deletions(-) create mode 100644 src/components/SlugInput.astro create mode 100644 src/pages/custom.astro create mode 100644 src/pages/rss/custom/[slugs].xml.ts diff --git a/.gitignore b/.gitignore index 016b59e..d1745cb 100644 --- a/.gitignore +++ b/.gitignore @@ -21,4 +21,4 @@ pnpm-debug.log* .DS_Store # jetbrains setting folder -.idea/ +.idea/ \ No newline at end of file diff --git a/src/components/SlugInput.astro b/src/components/SlugInput.astro new file mode 100644 index 0000000..c5a953b --- /dev/null +++ b/src/components/SlugInput.astro @@ -0,0 +1,163 @@ +--- +interface Props { + currentSlugs?: string[]; +} + +const { currentSlugs = [] } = Astro.props; + +import { availableLanguages, languageMap } from '../lib/api'; +--- + +
Add the comic slugs from the URLs of your favorite comics on ComicK.
+Example: For "https://comick.io/comic/01-one-piece", the slug is "01-one-piece"
+