Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 37 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,40 @@
// @ts-check
import mdx from '@astrojs/mdx';
import sitemap from '@astrojs/sitemap';
import {vanillaExtractPlugin} from '@vanilla-extract/vite-plugin';
import {defineConfig} from 'astro/config';

// https://astro.build/config
export default defineConfig({});
/*
* Constants.
*/

const SITE_URL = 'https://greglinscheid.com';

const SITEMAP_EXCLUDED_PATHS = ['/404/', '/500/'];

/*
* Config.
*/

export default defineConfig({
site: SITE_URL,
trailingSlash: 'always',
markdown: {
syntaxHighlight: 'shiki',
shikiConfig: {
themes: {
light: 'github-light',
dark: 'github-dark'
}
}
},
integrations: [
mdx(),
sitemap({
filter: page => !SITEMAP_EXCLUDED_PATHS.some(path => page.includes(path))
})
],
vite: {
plugins: [vanillaExtractPlugin()]
}
});
263 changes: 261 additions & 2 deletions bun.lock

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
"fallow:audit": "fallow audit"
},
"devDependencies": {
"@astrojs/mdx": "^6.0.2",
"@astrojs/rss": "^4.0.18",
"@astrojs/sitemap": "^3.7.3",
"@vanilla-extract/css": "^1.20.1",
"@vanilla-extract/vite-plugin": "^5.2.2",
"astro": "^6.4.4",
"fallow": "^2.66.1",
"typescript": "~6.0.2",
Expand Down
Binary file added public/Resume - Greg Linscheid.pdf
Binary file not shown.
Binary file added public/blog/copyparty-2025-08-15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
210 changes: 210 additions & 0 deletions public/blog/copyparty.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/blog/hello-world.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/favicon.ico
Binary file not shown.
9 changes: 0 additions & 9 deletions public/favicon.svg

This file was deleted.

Binary file added public/fonts/atkinson-bold.woff
Binary file not shown.
Binary file added public/fonts/atkinson-regular.woff
Binary file not shown.
Binary file added public/greg-portrait.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/milo-index.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/milo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
User-agent: *
Allow: /

Sitemap: https://greglinscheid.com/sitemap-index.xml
43 changes: 43 additions & 0 deletions src/components/BaseHead.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
import '../styles/code.css.ts';
import '../styles/global.css.ts';

interface Props {
title: string;
description: string;
image?: string;
}

const canonicalURL = new URL(Astro.url.pathname, Astro.site);

const {title, description, image = '/blog/hello-world.jpg'} = Astro.props;
---

<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="/favicon.ico" />
<meta name="generator" content={Astro.generator} />

<link rel="preconnect" href="https://fonts.bunny.net" />
<link
href="https://fonts.bunny.net/css?family=fraunces:opsz,wght@9..144,600;9..144,700|source-sans-3:400,600,700"
rel="stylesheet"
/>

<link rel="canonical" href={canonicalURL} />

<title>{title}</title>
<meta name="title" content={title} />
<meta name="description" content={description} />

<meta property="og:type" content="website" />
<meta property="og:url" content={Astro.url} />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:image" content={new URL(image, Astro.url)} />

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:url" content={Astro.url} />
<meta name="twitter:title" content={title} />
<meta name="twitter:description" content={description} />
<meta name="twitter:image" content={new URL(image, Astro.url)} />
30 changes: 30 additions & 0 deletions src/components/BaseLayout.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
import BaseHead from './BaseHead.astro';
import Breadcrumbs from './Breadcrumbs.astro';
import Footer from './Footer.astro';
import {MAIN_CONTENT_ID, main, skipLink} from '../styles/global.css';

interface Props {
title: string;
description: string;
image?: string;
hasBreadcrumbs?: boolean;
}

const {title, description, image, hasBreadcrumbs = true} = Astro.props;
---

<!doctype html>
<html lang="en">
<head>
<BaseHead title={title} description={description} image={image} />
</head>
<body>
<a class={skipLink} href={`#${MAIN_CONTENT_ID}`}>Skip to content</a>
<main class={main} id={MAIN_CONTENT_ID} tabindex="-1">
{hasBreadcrumbs ? <Breadcrumbs /> : undefined}
<slot />
</main>
<Footer />
</body>
</html>
35 changes: 35 additions & 0 deletions src/components/Breadcrumbs.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
import {
breadcrumbCurrent,
breadcrumbItem,
breadcrumbLink,
breadcrumbList,
breadcrumbs
} from '../styles/breadcrumbs.css';

const pathParts = Astro.url.pathname.split('/').filter(Boolean);
---

<nav class={breadcrumbs} aria-label="Breadcrumb">
<ol class={breadcrumbList}>
<li class={breadcrumbItem}>
{pathParts.length > 0 ? <a class={breadcrumbLink} href="/">Home</a> : <span class={breadcrumbCurrent}>Home</span>}
</li>
{
pathParts.map((crumb, index) => {
const label = crumb
.split('-')
.map(word => word.charAt(0).toUpperCase() + word.slice(1))
.join(' ');
const isLast = index === pathParts.length - 1;
const href = `/${pathParts.slice(0, index + 1).join('/')}/`;

return (
<li class={breadcrumbItem}>
{isLast ? <span class={breadcrumbCurrent}>{label}</span> : <a class={breadcrumbLink} href={href}>{label}</a>}
</li>
);
})
}
</ol>
</nav>
Loading
Loading