Skip to content

Xylon2/xblog-index

Repository files navigation

Purpose

A simple way to make a blog. Generate the posts as HTML files using whattever method you want. Then just add them to an edn file and the front-end code will make a nice index.

Installation

  1. Install dependencies on your workspace:
  • babashka
  • node
  1. Try the development server: npx shadow-cljs watch app

  2. Compile your release build: npx shadow-cljs release app

  3. Copy these into your docroot:

  • resources/public/cljs/{main.js,manifest.edn}
  • add_post.clj
  • resources/public/index.html
  • resources/public/index.edn
  1. Make sure your webserver serves .edn with the right mime-type application/edn

  2. Customize index.html with your branding

  3. Empty the posts out of index.edn and use the add_post.clj script to add your new posts

Dev

If you want to do any real dev on it, it is a Shadow-cljs project. For how I put it together see here: https://readtheorg.xylon.me.uk/rr_clojurescript_with_shadow-cljs.html

About

A simple front-end blog engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published