basic blog with release notes

This commit is contained in:
Felix Roos 2024-01-14 23:16:09 +01:00
parent 945e7082cd
commit 0566b7bcb3
23 changed files with 1089 additions and 12 deletions

View file

@ -0,0 +1,21 @@
---
import type { CollectionEntry } from 'astro:content';
type Props = CollectionEntry<'blog'>['data'];
const { post } = Astro.props;
const { Content } = await post.render();
---
<article
class="prose max-w-none prose-headings:font-sans prose-headings:font-black prose-headings:text-slate-900 dark:prose-headings:text-gray-200 dark:text-gray-400 dark:prose-strong:text-gray-400 dark:prose-code:text-slate-400 dark:prose-a:text-gray-300 prose-a:text-slate-900 prose-blockquote:text-slate-800 dark:prose-blockquote:text-slate-400"
>
<div class="pb-2">
<div class="md:flex justify-between">
<h1 class="mb-4">{post.title}</h1>
</div>
</div>
<div>
<Content />
</div>
</article>

View file

@ -9,7 +9,7 @@ import MobileNav from '../../docs/MobileNav';
import { SIDEBAR } from '../../config';
type Props = {
currentPage: string;
currentPage?: string;
};
const { currentPage } = Astro.props as Props;

View file

@ -1,18 +1,11 @@
---
import type { Frontmatter } from '../../config';
import MoreMenu from '../RightSidebar/MoreMenu.astro';
import TableOfContents from '../RightSidebar/TableOfContents';
import type { MarkdownHeading } from 'astro';
type Props = {
frontmatter: Frontmatter;
headings: MarkdownHeading[];
githubEditUrl: string;
githubEditUrl?: string;
};
const { frontmatter, headings, githubEditUrl } = Astro.props as Props;
const title = frontmatter.title;
const currentPage = Astro.url.pathname;
const { githubEditUrl } = Astro.props as Props;
---
<article id="article" class="content">

View file

@ -2,7 +2,7 @@
import * as CONFIG from '../../config';
type Props = {
editHref: string;
editHref?: string;
};
const { editHref } = Astro.props as Props;

View file

@ -6,7 +6,7 @@ import AvatarList from '../Footer/AvatarList.astro';
type Props = {
headings: MarkdownHeading[];
githubEditUrl: string;
githubEditUrl?: string;
};
const { headings, githubEditUrl } = Astro.props as Props;