i hate js

main / blog

by {fm author} on undefined 0NaN, NaN 0NaN:0NaN

frontpost

a suckless, self-explanatory CMS in 180 lines of code (80ms build time)

 _____                _                   _   
|  ___| __ ___  _ __ | |_ _ __   ___  ___| |_ 
| |_ | '__/ _ \| '_ \| __| '_ \ / _ \/ __| __|
|  _|| | | (_) | | | | |_| |_) | (_) \__ \ |_ 
|_|  |_|  \___/|_| |_|\__| .__/ \___/|___/\__|
                         |_|                  

why this and not X?

why not this?

how to use::

git clone https://github.com/qwool/frontpost
cd frontpost
npm i
node prepareDirs
node ./index.js

then, everything is in your dist directory.

how to ACTUALLY use it::

every X before an option means how much time you'll spend on it. everything is sorted in order of importance

frontmatter

---
title: Midwest Emo and why Nick Hartkop should be put down.
description: idk? just my thoughts tbh
(BUT if you disagree you're wrong!!)
created: 2000-10-01 12:58:45
customValue: anything
---

if you've used any actual markdown CMS you know this - just put a similar block at the start and you're set!
also you can add any of them to ur template!! just use {fm value} where value is a string. maybe u wanna add an author? idk u do u man again, every default thing in the order of importance:

templating

everything is contained in files in src/templates

default strings are as follows:

articleListing.html

post.html

index.html

beyond//contacts::

contact me anywhere from discord qwool#5851/@fuckcars to telegram @qwool if you decide you wanna contribute anything to this project and need some help decyphering/understanding any part of it.

to install dependencies::

npm install

3 external dependecies - marked.js, js-yaml and strftime.

to run::

node index.js

thanks to!