Compare commits

..

No commits in common. "35ef2c7a9a740b4965fb0ec37e64da6286920030" and "534abd91e3ea808128fe4c7c85d38c0a78153ebb" have entirely different histories.

7 changed files with 7 additions and 23 deletions

View file

@ -2,7 +2,6 @@ import { defineConfig } from 'astro/config';
export default defineConfig({ export default defineConfig({
site: 'https://terminal-blog.example.com', site: 'https://terminal-blog.example.com',
base: '/',
trailingSlash: 'ignore', trailingSlash: 'ignore',
build: { build: {
format: 'directory' format: 'directory'

View file

@ -14,6 +14,5 @@
"astro": "^5.2.5", "astro": "^5.2.5",
"@astrojs/rss": "^4.0.1", "@astrojs/rss": "^4.0.1",
"fuse.js": "^7.0.0" "fuse.js": "^7.0.0"
}, }
"packageManager": "pnpm@10.7.1+sha512.2d92c86b7928dc8284f53494fb4201f983da65f0fb4f0d40baafa5cf628fa31dae3e5968f12466f17df7e97310e30f343a648baea1b9b350685dafafffdf5808"
} }

View file

@ -1,4 +0,0 @@
export const siteConfig = {
title: '/var/log/mercury',
description: 'A blog about software development, technology, and life.',
}

View file

@ -2,18 +2,13 @@
import '../styles/global.css'; import '../styles/global.css';
import Search from '../components/Search.astro'; import Search from '../components/Search.astro';
import ThemeSwitcher from '../components/ThemeSwitcher.astro'; import ThemeSwitcher from '../components/ThemeSwitcher.astro';
import { siteConfig } from "../config";
interface Props { interface Props {
title: string; title: string;
path?: string; path?: string;
} }
const defaultTitle = siteConfig.title const { title, path = "~/grassblock/micr0blog" } = Astro.props;
const formattedPath = defaultTitle.toLowerCase().replace(/\s+/g, '-');
const { title, path = formattedPath } = Astro.props;
// TODO: make the path dynamic
--- ---
<!doctype html> <!doctype html>

View file

@ -6,7 +6,7 @@ const posts = await getCollection('blog');
posts.sort((a, b) => new Date(b.data.pubDate).getTime() - new Date(a.data.pubDate).getTime()); posts.sort((a, b) => new Date(b.data.pubDate).getTime() - new Date(a.data.pubDate).getTime());
--- ---
<Layout title="Blog | Terminal Blog"> <Layout title="Blog | Terminal Blog" path="~/grassblock/micr0blog/blog">
<h1 class="post-title">~/blog</h1> <h1 class="post-title">~/blog</h1>
<div class="post-content"> <div class="post-content">

View file

@ -2,7 +2,7 @@
import Layout from '../layouts/Layout.astro'; import Layout from '../layouts/Layout.astro';
--- ---
<Layout title="Lab | Terminal Blog" > <Layout title="Lab | Terminal Blog" path="~/grassblock/micr0blog/lab">
<h1 class="post-title">~/lab</h1> <h1 class="post-title">~/lab</h1>
<div class="post-content"> <div class="post-content">

View file

@ -89,11 +89,6 @@ main {
font-size: 1.1rem; font-size: 1.1rem;
} }
.nav a::before {
content: "./";
opacity: 0.7;
}
.cursor { .cursor {
display: inline-block; display: inline-block;
width: 0.6em; width: 0.6em;