My blog
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Hayley 987691f180
8 months ago
blog Update copyright info 8 months ago
content Update about 8 months ago
public 1592878900 8 months ago
src str_strip is now stable 8 months ago
.gitignore Update to new email 11 months ago
Cargo.toml first commit 1 year ago
Dockerfile Add dockerfile 1 year ago
LICENSE first commit 1 year ago
Pipfile Update to python 3.8 8 months ago
Pipfile.lock Update to python 3.8 8 months ago Allow header images 1 year ago Add rel="me" to mastodon 1 year ago
package-lock.json first commit 1 year ago
package.json first commit 1 year ago
webpack.config.js Fix incorrect paths 1 year ago


Idk why but I wrote my own static cms.

Writing Posts

Posts go in content/posts and are formatted in Markdown. The basic structure is as follows:

// The first line of the document(which must contain a header 1) is used as
// the blog title
# Title

// The first occurrence of a * is used for the date which must be formatted
// like so
*Month(March) day_num(1), Year(2018)*

// The first paragraph is used for the description/summary
Insert some content here. This will be shown on the home page as a description.

Here is another paragraph containing more markdown formatted content.

Generating a static site

Note: This assumes you already have all the python deps installed (pipenv install) as well having the css, js and rust code compiled (see Compiling stuffs).

$ python3 -m blog

The public directory should now contain a static version of the blog

Running dev server

$ FLASK_DEBUG=True FLASK_APP=blog flask run

Compiling stuffs

This project is a mishmash of code.

Webpack (Scss/Js)

$ npm run build


Note: This project depends on rust nightly.

Note: Matruin is a python application thus is installed as a dev dependency by pipenv.

$ maturin develop

Random things to note

  • Code highlighting is supported; Provided by pygments
  • blog/static/ is where to throw static stuffs like images
  • Js and SCSS is stored in blog/src/
  • src/ is for rust source code