astro-theme-panda

Author: yuhangch on April 26, 2024

BlogDarkTinyRSS
astro-theme-panda
astro-theme-pandaastro-theme-pandaastro-theme-panda
Free
--

Astro Blog Theme: Panda 🐼

git clone https://github.com/yuhangch/astro-theme-panda.git

Key Features

Project Structure

Inside of panda🐼 project, you’ll focus on these folders and files:

/
β”œβ”€β”€ public/
β”œβ”€β”€ src/
β”‚   └── content/
β”‚       └── posts/
β”‚   └── config.js
└── astro.config.mjs

In config.js, navigate to PandaConfig, you can customize your site for your own needs.

export const PandaConfig = {
    title: 'Panda Blog',
    description: 'Panda Blog, a blog powered by Astro',
    start: '2016',
    site: 'https://astro-theme-panda.vercel.app/',
    defaultLocale: 'en',
    navbar: [
        // {title: 'Posts', url: '/'}, // auto generated
        {title: 'about', url: '/about/'},
    ],
    footer:[
        {title: 'rss', url: '/rss/'},
        {title: 'contact', url: 'https://github.com/yuhangch/astro-theme-panda/issues/new'},
        {title: 'github', url: 'https://github.com/yuhangch/astro-theme-panda'},
    ]
}

More customization

Add a new post

---
description: "Your description here"
pubDate: "2024-03-02"
tags: ['markdown','example']
categories: ['tech']
---

Add a new page

Customize the theme

Simple language support

Commands

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

CommandAction
npm installInstalls dependencies
npm run devStarts local dev server at localhost:4321
npm run buildBuild your production site to ./dist/
npm run previewPreview your build locally, before deploying
npm run astro ...Run CLI commands like astro add, astro check
npm run astro -- --helpGet help using the Astro CLI

Roadmap