rexarski / astro-blog-snapshot

Archived blog using Astro

Home Page:https://rexarski.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logo

rexarski.com

Netlify Status

Yet another blog by rexarski, but this time built with Astro. Theme forked from Chris Williams' astro-theme-cactus.

The site is deployed on Netlify. A decent amount configuration to do before everything is up and running. Kudos to Chris for writing a great documentation.

See rqiu.dev for my other blog posts.

Tech stack

Commands

Use pnpm or npm or yarn:

Command Action
pnpm install Installs dependencies
pnpm dev Starts local dev server at localhost:3000
pnpm build Build your production site to ./dist/
pnpm postbuild Pagefind script to build the static search of your blog posts
pnpm preview Preview your build locally, before deploying
pnpm sync Generate types based on your config in src/content/config.ts

Post frontmatter

My go-to post frontmatter template:

---
title: "Example Cover Image"
description: "This post is an example of how to add a cover image"
publishDate: "04 July 2023"
updatedDate: "14 August 2023" # optional
coverImage: # optional
  src: "./cover.png"
  alt: "Astro build wallpaper"
tags: ["test", "image"]
ogImage: "/social-card.png"
draft: true # this post should only be accessible in a dev environment, as well as any tags that are unique to this post.
---

License

MIT

About

Archived blog using Astro

https://rexarski.com

License:MIT License


Languages

Language:Astro 70.7%Language:TypeScript 25.9%Language:JavaScript 1.8%Language:CSS 1.5%