[READ-ONLY] Mirror of https://github.com/flo-bit/blog-template. minimalistic astro blog template flo-bit.dev/blog-template/
astro blog template
0

Configure Feed

Select the types of activity you want to include in your feed.

rss fix

Florian (Oct 28, 2024, 2:28 AM +0100) bc336f94 33e8cd51

+4 -52
+2 -2
src/config.json
··· 19 19 "EMAIL": "flo.bit.dev@gmail.com" 20 20 }, 21 21 "MANUAL_SITE_BASE": false, 22 - "SITE": "https://flo-bit.github.io", 23 - "BASE": "/blog" 22 + "SITE": "https://hello.there", 23 + "BASE": "" 24 24 }
-48
src/consts.ts
··· 1 - import type { AccentColors, BaseColors } from "./types"; 2 - 3 - // when deploying to github pages, set this to your site url 4 - // (e.g. "https://<your-github-username>.github.io") 5 - export const SITE = "https://flo-bit.github.io"; 6 - 7 - // when deploying to github pages, set this to your repo name 8 - // except if you're either using a custom domain or 9 - // your repo name is <your-github-username>.github.io (in which case, set it to "") 10 - export const BASE = "/blog-template"; 11 - 12 - // will be shown in the title and meta tags and og image 13 - export const SITE_TITLE = "Blog template"; 14 - export const SITE_DESCRIPTION = "Welcome to my website!"; 15 - // will be used as the icon in the header and the favicon 16 - export const SITE_FAVICON = "🙃"; 17 - 18 - // used in the footer (c) YOUR_NAME 19 - export const NAME = "flo-bit"; 20 - 21 - // how many posts to show on per paginated page (also used for tag pages) 22 - export const POSTS_PER_PAGE = 5; 23 - 24 - // should we show the dark mode toggle? 25 - // (otherwise, it will be based on the user's system preferences) 26 - export const MANUAL_DARK_MODE = true; 27 - 28 - // should we show the search bar? 29 - export const SEARCH_ENABLED = true; 30 - 31 - // shade of gray for the background 32 - // one of 'gray', 'neutral', 'stone', 'zinc', 'slate' 33 - export const BASE_COLOR: BaseColors = "stone"; 34 - 35 - // color of links, etc. 36 - // one of 'red', 'orange', 'amber', 'yellow', 'lime', 'green', 'emerald', 'teal', 37 - // 'cyan', 'sky', 'blue', 'indigo', 'violet', 'purple', 'fuchsia', 'pink', 'rose' 38 - export const ACCENT_COLOR: AccentColors = "amber"; 39 - 40 - // set any of these to '' to hide the respective icon in the footer 41 - export const FACEBOOK_URL = ""; 42 - export const TWITTER_URL = "https://x.com/flobit_dev"; 43 - export const GITHUB_URL = "https://github.com/flo-bit"; 44 - export const INSTAGRAM_URL = "https://www.instagram.com/flobit.dev/"; 45 - export const LINKEDIN_URL = ""; 46 - export const YOUTUBE_URL = ""; 47 - export const SUBSTACK_URL = "https://flo-bit.substack.com"; 48 - export const EMAIL = "flo.bit.dev@gmail.com";
+2 -2
src/pages/rss.xml.js
··· 1 1 import rss from "@astrojs/rss"; 2 - import { SITE_TITLE, SITE_DESCRIPTION } from "../config.json"; 2 + import { SITE_TITLE, SITE_DESCRIPTION, BASE } from "../config.json"; 3 3 import { getBlogPosts } from "src/utils"; 4 4 5 5 export async function GET(context) { ··· 10 10 site: context.site, 11 11 items: posts.map((post) => ({ 12 12 ...post.data, 13 - link: `/blog/${post.slug}/`, 13 + link: `${BASE}/blog/${post.slug}/`, 14 14 })), 15 15 }); 16 16 }