Blogsmithfree
A free and open source blog template by Cosmic Themes. Built with Astro and Tailwind CSS.
Install / Use
/learn @Cosmic-Themes/BlogsmithfreeREADME
Welcome to Blogsmith Free!
This is a free theme for Astro created by Cosmic Themes. This is a great starting point with various pages, features, and utilities to help you get started with your blog.
Quickstart
- Fork this project to your own repository, and clone it to your local machine
- Install all necessary packages with
npm installorpnpm install - Run
npm run devorpnpm devto start the dev server - Now you can setup the site to your liking!
- Update the site URL in
astro.config.mjsand/public/robots.txtto match your domain - After you're happy, update your changes to your repo and deploy to Netlify, Vercel, Cloudflare, or other provider of your choice
Code Intro
I have created a code tour to introduce you to the codebase. You will need the extension Code Tour to view them in VSCode.
The source files have the following setup. Note that not all files are listed here.
.
├── .tours/
│ └── code-intro.tour
├── public/
│ ├── favicons/
│ │ └── favicon.ico
│ ├── images/
│ └── robots.txt
├── src/
│ ├── assets/
│ │ └── images/
│ │ └── site-logo.png
│ ├── components/
│ │ └── Hero/
│ │ └── Hero.astro
│ ├── config/
│ │ └── navData.json.ts
│ ├── data/
│ │ ├── authors/
│ │ ├── blog/
│ │ └── otherPages/
│ ├── js/
│ │ └── blogUtils.ts
│ ├── layouts/
│ │ └── BaseLayout.astro
│ ├── pages/
│ │ ├── index.astro
│ │ ├── blog/
│ │ │ ├── [...page].astro
│ │ │ └── [...slug].astro
│ │ ├── categories/
│ │ │ ├── [category]/
│ │ │ │ └── [...page].astro
│ │ │ └── index.astro
│ │ ├── [page].astro
│ │ ├── 404.astro
│ │ ├── index.astro
│ │ └── rss.xml.ts
│ ├── styles/
│ │ └── global.css
│ └── content.config.ts
├── .gitignore
├── .prettierrc.mjs
├── astro.config.mjs
├── keystatic.config.tsx
├── netlify.toml
├── package.json
├── package-lock.json
├── README.md
└── tsconfig.json
For robots like Google to see the correct sitemap, you will want to edit the public/robots.txt file to use your website domain.
Other Resources
- See my blog post on recommended Astro web development setup.
- You can learn more information from the theme docs page on the Cosmic Themes Website.
License
This project is open source and available under the GPL-3.0 License.
However, If you have purchased All Access from Cosmic Themes, there is a no attribution required license you can view at License details.
General Astro Info
Astro looks for .astro or .md files in the src/pages/ directory. Each page is exposed as a route based on its file name.
There's nothing special about src/components/, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
Any static assets, like images, can be placed in the public/ directory. I also frequently use src/assets for images when using Astro asssets for image optimization.
Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| npm install | Installs dependencies |
| npm run dev | Starts local dev server at localhost:3000 |
| npm run build | Build your production site to ./dist/ |
| npm run preview | Preview your build locally, before deploying |
| npm run astro ... | Run CLI commands like astro add, astro check |
| npm run astro -- --help | Get help using the Astro CLI |
Want to learn more?
Feel free to check out the Astro documentation.
Related Skills
node-connect
353.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
353.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
353.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
