Make blog generic template for anyone

This commit is contained in:
Cassidy Williams committed 2024-05-09 23:46:25 -05:00
1 parent 29bd249a37
commit 342f889e57
116 files changed
+141 -5777

No files matched your search

+1 -18
View File
@@ -2,7 +2,7 @@
import "../style/fonts.css";
import "../style/global.css";
import { SITE_TITLE } from "../config";
import { SITE_TITLE, SITE_DESCRIPTION } from "../config";
const { title, description, image = "/home-blog-card.png" } = Astro.props;
---
@@ -14,9 +14,6 @@ const { title, description, image = "/home-blog-card.png" } = Astro.props;
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
<meta name="generator" content={Astro.generator} />
<!-- Web Monetization -->
<meta name="monetization" content="$ilp.uphold.com/rEgHHBQGDUDP" />
<!-- Primary Meta Tags -->
<title>{title}</title>
<meta name="title" content={title} />
@@ -37,13 +34,6 @@ const { title, description, image = "/home-blog-card.png" } = Astro.props;
<meta name="twitter:creator" content="@cassidoo" />
<meta name="twitter:image" content={new URL(image, Astro.url)} />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap"
rel="stylesheet"
/>
<!-- RSS Link -->
<link
rel="alternate"
@@ -54,11 +44,4 @@ const { title, description, image = "/home-blog-card.png" } = Astro.props;
<!-- Sitemap -->
<link rel="sitemap" href="/sitemap-index.xml" />
<!-- Google Search Console -->
<meta name="google-site-verification" content="4G1fPeskmgxlQRWUoJxDlkDxL0VswExwh1MuRAwkQzg" />
<!-- Fathom -->
<script src="https://cdn.usefathom.com/script.js" data-site="OHWKNQJQ" defer
></script>
</head>
+1 -1
View File
@@ -3,7 +3,7 @@ const today = new Date();
---
<footer>
&copy; {today.getFullYear()} Cassidy Williams. <a href="https://github.com/cassidoo/blahg">This blog is open source</a>! <3
&copy; {today.getFullYear()} cassidoo. <a href="https://github.com/cassidoo/blahg">This blog is open source</a>! <3
</footer>
<style>
footer {
+3 -6
View File
@@ -1,23 +1,20 @@
---
import HeaderLink from "./HeaderLink.astro";
import { SITE_TITLE } from "../config";
import { SITE_TITLE, SITE_DESCRIPTION } from "../config";
---
<header>
<div class="header-section">
<div class="header-frame">
<h1>{SITE_TITLE}</h1>
<h2>a blog, or whatever</h2>
<h2>{SITE_DESCRIPTION}</h2>
</div>
</div>
</header>
<nav>
<HeaderLink href="/">home</HeaderLink>
<HeaderLink href="/posts">posts</HeaderLink>
<HeaderLink href="https://cassidoo.co">website</HeaderLink>
<HeaderLink href="https://cassidoo.co/newsletter" target="_blank"
>newsletter
</HeaderLink>
<HeaderLink href="https://cassidoo.co">other</HeaderLink>
</nav>
<style>
h2 {
+1 -7
View File
@@ -1,12 +1,6 @@
---
export interface Props extends astroHTML.JSX.AnchorHTMLAttributes {}
const { href, class: className, ...props } = Astro.props as Props;
const { href, class: className, ...props } = Astro.props;
let isActive = href === Astro.url.pathname;
if (Astro.url.pathname.startsWith("/post/")) {
isActive = true;
}
---
<a href={href} class:list={[className, { active: isActive }]} {...props}>
-1
View File
@@ -1,5 +1,4 @@
---
// import Tag from './Tag.astro';
const { slug, title, tags, description, date } = Astro.props;
---