This blog is built using Next.js and supports markdown-based posts.
The blog configuration is managed in siteConfig
inside config/site.ts
:
export const siteConfig = {
name: "Encryptopia Blog",
url: "https://blog.encryptopia.dev",
description: "My weird knowledge, noted down.",
author: "Clemens Hoffmann",
email: "contact@encryptopia.dev",
links: {
twitter: "https://twitter.com/paranoia8972",
github: "https://github.com/Paranoia8972",
personalSite: "https://encryptopia.dev",
feed: "https://blog.encryptopia.dev/feed.xml",
// Add more links if needed
},
};
Ensure that the correct values are set for your blog’s name, URL, author details, and social links.
Clone the repository:
git clone https://github.com/Paranoia8972/blog.git
Navigate into the project directory:
cd blog
Install dependencies:
npm install
Update the configuration:
Edit the config/site.ts
file to reflect your personal settings.
Start the development server:
npm run dev
Access the blog:
Open your browser and go to http://localhost:3000.
To create a new blog post:
Navigate to the posts
directory:
cd content/post
Create a new MDX file:
touch my-new-post.mdx
Write your post using frontmatter:
---
title: My new Post
description: Welcome to my new post.
date: 2024-08-18
tags:
- post
- test
published: true <!-- Optionally -->
img: /new-post.png
---
# My New Post
Welcome to my new post. Here’s some interesting content!
Save and commit your changes:
git add posts/my-new-post.md
git commit -m "Add new post"
git push origin main
To deploy the blog, follow the Next.js deployment guide for your hosting platform (e.g., Vercel, Netlify, etc.).
For example, with Vercel:
Install the Vercel CLI:
npm i -g vercel
Deploy the project:
vercel
For other platforms, refer to the respective deployment guides.
This project is licensed under the MIT License. See the LICENSE file for more details.