This is a simple static blog built using HTML, CSS, and JavaScript, where each blog post is written in a separate Markdown (.md) file. The homepage automatically displays the latest blog posts with previews, including title images, dates, and authors parsed from the frontmatter.
- 📄 Write posts in Markdown
- 🏷️ Title, author, and image from YAML frontmatter
- 🗓️ Automatically extract date from filename
- 📰 Previews show first 200–300 characters of content
- 🎨 Custom fonts and dark theme styling
- ⚡ No frameworks or backend — 100% static
-
Clone The Repo
git clone https://github.com/yourusername/static-markdown-blog.git cd static-markdown-blog -
Add Your Posts
Inside the
posts/folder, create a new.mdfile with this format:--- title: My New Blog Post author: John Doe image: ../images/my-banner.jpg --- Welcome to my blog! This is the content of my post...
Filename should begin with the date:
YYYY-MM-DD-title.md -
Customize The Design
Edit
styles/style.cssto change layout, fonts, or colors.Font family used:
Lato. -
Open The Blog
Simply open
index.htmlin a browser (or use a local server like Live Server for best results).
marked.js: Parses Markdown into HTML
Posts are loaded dynamically using JavaScript and fetch(). Because of this, direct opening of index.html from the filesystem might cause issues in some browsers. Use a local web server if needed.
This project was created by @EruptionGuy