Skip to content

ParaN3xus/blog

Repository files navigation

Blog

ParaN3xus's template for static blogs, based on a previous version of PoeMagie, powered by Astro, DaisyUI 4 and typst.

Features

  • Typst: Write blog posts in Typst.
  • Tags: Categorize your blog posts with tags.
  • Link Preview: Link Preview on Open Graph, Facebook, and Twitter.
  • Click Stats, Like Reaction, and Comment: Powered by Vercount and giscus.

Typst-specific features:

  • Heading Permalinks and Table of Contents.
  • Automatically generates yearly PDF archive.

Commands

All commands are run from the root of the project, from a terminal:

Command Action
bun install Installs dependencies
bun run dev Starts local dev server at localhost:4321
bun run build Build your production site to ./dist/
bun run preview Preview your build locally, before deploying
bun run astro ... Run CLI commands like astro add, astro check

VSCode Setup

Open using the default setting:

code .vscode/blog.code-workspace

Or customize it:

cp .vscode/blog.code-workspace .vscode/blog.private.code-workspace
code .vscode/blog.private.code-workspace

Install suggseted extensions:

  • myriad-dreamin.tinymist, for writing blog posts in typst.
  • astro-build.astro-vscode, for developing astro components.

Writing

Create a new blog post in content/article:

#import "/typ/templates/blog.typ": *
#show: main.with(
  title: "Title of the blog post",
  desc: [This is a test post.],
  date: "2025-04-25",
  tags: (
    blog-tags.misc,
  ),
)

The blog-tags index is defined in content/article/blog-tags.typ to ensure type safety. You can add your own tags by adding a new blog-tags index.

Customization

Todo

Improve experience:

  • More friendly content submodule for forks

Improve website:

Credit

About

ParaN3xus's Blog

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •