8000 GitHub - rhaeguard/rhaeguard.github.io: mon blog où j'écris des articles sur des sujets aléatoires
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

rhaeguard/rhaeguard.github.io

Repository files navigation

le blog

Build the blog and deploy it to Github Pages

A custom blog engine, made for my use case, which is neither unique nor particularly challenging. It's just more fun to make my own blog engine.

This repo consists of these sections:

    main.py is the engine. It coordinates everything - generation of HTML, compiling Sass, etc.
  • data.json is the configuration file where I keep the global data.
  • templating_engine.py is the templating engine. It has a very small DSL that's capable of doing all the necessary things for my use case (variables, conditionals, loops).
    • templates is the folder where templates/fragments are kept; these templates are loaded by the engine to generate different parts of a page.
  • css folder contains the Sass file.
  • posts folder contains all the posts written in Markdown format.
  • assets contains the static assets

The code has been tested with Python 3.11. To install dependencies (create a venv if you want):

pip install -r requirements.txt

To generate the files:

python main.py

To quickly serve the blog:

# go to the ./build folder and run
python -m http.server

The blog should be accessible at http://localhost:8000

About

mon blog où j'écris des articles sur des sujets aléatoires

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0