Serene Ink is a minimalist, elegant, and blazing-fast Astro blog template designed for developers, writers, and creators. It features a clean UI, dark/light mode toggle, and MDX support out of the box, ensuring you can focus entirely on your writing.
Clone the repository (or use the template):
git clone https://github.com/your-username/serene-ink.git my-blog
cd my-blog
Install dependencies:
pnpm install
Start the local development server:
pnpm dev
Open localhost:4321 in your browser.
To make this template your own, you'll need to update a few files:
astro.config.mjs and update site to match your intended production URL. This is crucial for fixing Sitemaps, SEO, and ensuring absolute URLs for social sharing graphic cards (Open Graph/Twitter/Discord) work correctly when deployed.src/layouts/Layout.astro and locate the Astro.props destructuring assignment (below the Props interface) to update your default site title and description for meta tags.
home.webp or custom social sharing images remain in the public/ folder so social platforms evaluate their paths successfully.title and description in src/pages/feed.xml.ts for your RSS feed.src/components/Author.astro to:
timeline stepsprojectsActivityCard sectionssrc/pages/posts/[slug].astro and update the author's name in the <script type="application/ld+json"> block to your own name for better SEO./public/favicon.svg and /public/favicon.ico with your brand's icon.All content lives in the src/posts/ folder.
To create a new blog post, you can use the built-in command:
pnpm run new-post "Your Awesome Catchy Title"
Alternatively, simply create a new .mdx file (e.g., my-new-post.mdx) and ensure you include the following frontmatter at the top of the file:
--- title: "Your Awesome Catchy Title" date: "03/12/2024" frontmatter: "A short description or summary of your post." tags: ["astro", "learning", "random"] image: "" --- Your content goes here...
This template is configured natively as a static site, making it seamlessly compatible with static hosting services like Cloudflare Pages.
Deploying to Cloudflare Pages:
pnpm run builddist(Don't forget to update your site URL in astro.config.mjs once Cloudflare provides you with your [project-name].pages.dev link!)
This project is open-source and released under the MIT License. Feel free to use it for personal or commercial projects.