Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.
/ blog Public archive

Encryptopia Blog is a Next.js Blog utilizing Velite for static sitegeneration from Markdown files and with custom components like callouts and tabs.

Notifications You must be signed in to change notification settings

Paranoia8972/blog

Repository files navigation

Encryptopia Blog

This blog has been archived. Please refer to Paranoia8972/encryptopia.dev for the up-to-date code for my website and blog.

This blog is built using Next.js and supports markdown-based posts.

Features

  • Markdown-based posts
  • RSS Feed
  • SEO-friendly
  • Custom components for enriched content
  • Easily extendable

Setup

Configuration

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: "[email protected]",
  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.

Installation

  1. Clone the repository:

    git clone https://github.com/Paranoia8972/blog.git
  2. Navigate into the project directory:

    cd blog
  3. Install dependencies:

    npm install
  4. Update the configuration:

    Edit the config/site.ts file to reflect your personal settings.

Running the Blog Locally

  1. Start the development server:

    npm run dev
  2. Access the blog:

    Open your browser and go to http://localhost:3000.

Creating New Posts

To create a new blog post:

  1. Navigate to the posts directory:

    cd content/post
  2. Create a new MDX file:

    touch my-new-post.mdx
  3. 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!
  1. Save and commit your changes:

    git add posts/my-new-post.md
    git commit -m "Add new post"
    git push origin main

Custom Components

Deployment

To deploy the blog, follow the Next.js deployment guide for your hosting platform (e.g., Vercel, Netlify, etc.).

For example, with Vercel:

  1. Install the Vercel CLI:

    npm i -g vercel
  2. Deploy the project:

    vercel

For other platforms, refer to the respective deployment guides.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

Encryptopia Blog is a Next.js Blog utilizing Velite for static sitegeneration from Markdown files and with custom components like callouts and tabs.

Topics

Resources

Stars

Watchers

Forks