From 2de61aa0d1a59e2b183ca368bb93fd426b0dff6f Mon Sep 17 00:00:00 2001 From: Mira Kristipati Date: Wed, 5 Jun 2024 00:12:25 -0400 Subject: [PATCH] add rss feed --- astro.config.mjs | 11 ++++++----- src/components/BaseHead.astro | 4 ++++ src/components/Footer.astro | 14 +++----------- src/components/Header.astro | 4 ++++ src/pages/feed.xml.js | 6 +++--- src/pages/links.astro | 4 ++++ src/styles/global.css | 17 ++++++++++------- 7 files changed, 34 insertions(+), 26 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index cc6e88e..7a3c8c8 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,10 +1,11 @@ import { defineConfig } from "astro/config"; import mdx from "@astrojs/mdx"; -import nodejs from '@astrojs/node'; -import { remarkReadingTime } from './remark-reading-time.mjs'; -import { modifiedTime } from './remark-modified-time.mjs'; +import nodejs from "@astrojs/node"; +import { remarkReadingTime } from "./remark-reading-time.mjs"; +import { modifiedTime } from "./remark-modified-time.mjs"; export default defineConfig({ + site: "https://argentumcation.com", markdown: { syntaxHighlight: false, shikiConfig: { @@ -13,9 +14,9 @@ export default defineConfig({ remarkPlugins: [remarkReadingTime, modifiedTime], }, adapter: nodejs({ - mode: 'standalone' + mode: "standalone", }), - output: 'hybrid', + output: "hybrid", vite: { build: { rollupOptions: { diff --git a/src/components/BaseHead.astro b/src/components/BaseHead.astro index 676032c..2ff6ed2 100644 --- a/src/components/BaseHead.astro +++ b/src/components/BaseHead.astro @@ -23,6 +23,10 @@ const { title, description } = Astro.props; + - + { buttons.map((button) => { - const image = {button.name}; + const image = {button.name}; return !button.link?.startsWith('javascript:') ? ( diff --git a/src/components/Header.astro b/src/components/Header.astro index 2e15f9d..9acba5e 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -12,6 +12,10 @@
  • Posts
  • +
  • + + +
  • diff --git a/src/pages/feed.xml.js b/src/pages/feed.xml.js index 913f5c4..97dbc17 100644 --- a/src/pages/feed.xml.js +++ b/src/pages/feed.xml.js @@ -2,9 +2,9 @@ import rss, { pagesGlobToRssItems } from "@astrojs/rss"; export async function GET(context) { return rss({ - title: "Buzz’s Blog", - description: "A humble Astronaut’s guide to the stars", + title: "ArgentumCation", + description: "Mira's ramblings about stuff I guess", site: context.site, - items: await pagesGlobToRssItems(import.meta.glob("./blog/*.{md,mdx}")), + items: await pagesGlobToRssItems(import.meta.glob("./posts/*.{md,mdx}")), }); } diff --git a/src/pages/links.astro b/src/pages/links.astro index 45ffe30..8185543 100644 --- a/src/pages/links.astro +++ b/src/pages/links.astro @@ -8,7 +8,9 @@ import "../styles/links/brands-custom.css"; import "../styles/terminal-css/main.css"; import "../styles/links/global.css"; import Footer from "../components/Footer.astro"; +import Header from "../components/Header.astro"; import Social from "../components/Social.astro"; +import BaseHead from "../components/BaseHead.astro"; let description = "I don't know who you are or how you found this, but while you're here, feel free to add me everywhere"; @@ -30,6 +32,7 @@ document.getElementById(theme)?.setAttribute("selected", "true"); + @@ -85,6 +88,7 @@ document.getElementById(theme)?.setAttribute("selected", "true"); +
    diff --git a/src/styles/global.css b/src/styles/global.css index 8a5ab93..aea5b4c 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -27,9 +27,7 @@ --astro-code-token-punctuation: var(--base05, --foreground); --astro-code-token-link: var(--base09, var(--orange, var(--cyan))); /*Fonts*/ - --mono-font-stack: Liga SFMono Nerd Font, Ubuntu, Menlo, Monaco, Cascadia Code, - Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, - Courier New, monospace, serif; + --mono-font-stack: monospace, sans-serif; --font-stack: var(--mono-font-stack); } @@ -223,10 +221,11 @@ select { } ul li::before { - content: none; + content: none; } + ol p { - display: inline; + display: inline; } ol { @@ -269,7 +268,11 @@ ol ol ol ol ol ol ol ol ol ol { list-style-type: hebrew; } -.button { +.terminal-nav { + margin: 0 1em; +} + +.marquee-button { width: 88px; height: 31px; -} \ No newline at end of file +}