npm create astro@latest -- --template DawidRyczko/astro-flow-blog-themeSee the demo: https://dawidryczko.github.io/astro-flow-blog-theme/
- ✅ Flowbite / Tailwind styling - easy to customize
- ✅ 100/100 Lighthouse performance
- ✅ SEO-friendly with canonical URLs and OpenGraph data
- ✅ Sitemap support
- ✅ Simple config file
- ✅ RSS Feed support
- ✅ Markdown & MDX support
- ✅ Google Analytics
- ✅ Dark / light mode
- ✅ Responsive
- ✅ Pagination
- ✅ Social media
- ✅ Github Pages configured
- ✅ Support subfolder deploy
- ✅ Just fast
- ✅ No image support for posts
- ✅ No search implemented
- Open
astro.config.mjsand change thebaseandsiteproperties.
You can also deploy this blog in subfolder. For example, this theme is deployed on Github Pages without custom domain. The
repo astro-flow-blog-theme is a subfolder for my Github domain https://dawidryczko.github.io/.
The base property for URL and subfolder https://dawidryczko.github.io/astro-flow-blog-theme is:
base: '/astro-flow-blog-theme'
If you deploy without subfolder set the base:
base: '.'
- Visist the
/src/const.tsfile and setup your configuration - Replace the:
/public/favicon.png/public/logo.png/public/og-image.png
- You can ovveride the Tailwind styles in
/styles/global.css
- Fork or create a repository for your project
- Go to Settings and select "Pages"
- Setup "Source" as GitHub Actions
- Go to the Actions tab and run the workflow "Deploy Astro site to Pages"
- Check the Configuration section to setup
baseproperty for subfolder or custom domain.
Flowbite use Tailwind to create ready to use components. Go to https://flowbite.com/ select any component you like, align colors and styling if you need and use on your page.
More about configuration you can find here: https://flowbite.com/docs/getting-started/astro/
The theme for content creation use Tailwind CSS Typography - Flowbite:
<div class="mb-9 format dark:format-invert">
<content />
</div>You can customize the typography for post. Check the docs here: https://flowbite.com/docs/components/typography/
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:4321 |
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 |
This theme is inspired by:
Astro Zen Blog - https://github.com/larry-xue/astro-zen-blog
Astro Starter Kit: Blog - https://github.com/withastro/astro/tree/main/examples/blog
