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

A simple blog template for Lume, using Simple.css

Notifications You must be signed in to change notification settings

joefg/lume-simple-blog

Repository files navigation

lume-simple-blog

A lume template for building a blog.

How To Use It

  1. You need a copy of deno, available at deno.land.
  2. Clone this repository locally. rm -rf .git to remove the version control history if you want to.
  3. Edit your _data/site.yml and _config.ts to add your name, description, any links.
  4. OPTIONAL If you want to host with GitHub Pages with your own domain name, follow these instructions and add a CNAME file to this repository.
  5. git init && git add . && git commit -m "init: blog" to reinitialise version control for this repository.
  6. Run deno task serve to preview your blog. Add posts to posts/. When you're happy with it, run deno task build to generate your site, add your posts and your generated output in docs/ to your repo, and push.

Workflow

New posts

  1. Checkout to a new post branch, eg post/your-new-post.
  2. Add post to posts.
  3. Run deno task build.
  4. Add changes including generated HTML in docs/, and commit. The generated HTML and the source Markdown must be in the same commit.
  5. Rebase onto main.

New pages

  1. Checkout to a new page branch, eg post/your-new-page.
  2. Add page the root of this directory, eg page.md.
  3. Add the following YAML header to your new page:
---
layout: layout/post.njk
title: Your Page
templateClass: tmpl-post
menu:
    visible: true
    order: 2
---
  1. Run deno task build.
  2. Add changes including generated HTML in docs/, and commit. The generated HTML and the source Markdown must be in the same commit.
  3. Rebase onto main.

Technology Used