A simple Astro theme. Use it to create your blog or website.
Astro Theme Cactus is a simple and opinionated starter built with the Astro framework. It is designed to create an easy-to-use blog or website.
To install the Astro Theme Cactus, follow these steps:
pnpm install
to install dependencies.pnpm dev
to start the local development server at localhost:3000
.pnpm build
to build your production site to ./dist/
.pnpm postbuild
to run the Pagefind script for building the static search of your blog posts.pnpm preview
to preview your build locally before deploying.pnpm sync
to generate types based on your config in src/content/config.ts
.src/site.config.ts
file for basic site meta data.astro.config.ts
file’s site property with your own domain./public
folder, such as favicon.ico
and robots.txt
.src/styles/global.css
file with your own light and dark styles.src/data/constants.ts
and src/components/SocialList.astro
to add or replace your media profiles.Create or edit blog posts within the src/content/post/
directory using .md
or .mdx
files.
Customize the OG Image:
src/pages/og-image/[slug].png.ts
and modify the markup function.@resvg/resvg-js
library and modify the get
function in src/pages/og-image/[slug].png.ts
.ogImage
property in the frontmatter of your blog post files.src/styles/global.css
file.Astro Theme Cactus is a simple and opinionated starter theme built with the Astro framework. It provides key features such as fast performance, TailwindCSS utility classes, accessible HTML markup, responsive design, dark and light modes, optimized images, support for Markdown and MDX posts, code syntax styling, automatic pagination, RSS feed generation, sitemap generation, and search functionality. It can be easily installed and customized to create a blog or website.