mirror of
https://github.com/c0de-archive/c0de.dev-blog.git
synced 2024-12-22 08:52:39 +00:00
1.6 KiB
1.6 KiB
c0de.dev Blog
This is a Pelican based blog that powers c0de.dev. There's not really a whole lot here, but it contains all the configuration files and plugins/themes.
Installation
- SSH into your server
- Clone the repo -
git clone --recurse-submodules https://github.com/alopexc0de/c0de.dev-blog
cd c0de.dev-blog
- Install the config and plugins -
make install
Updating
- SSH into your server
cd c0de.dev-blog
make update
Making new posts
For seperation, I store the content in a private repo (can't read my drafts and encrypted blogs without the password). Also as a matter of choice, I'm using Markdown as markup language.
Categories are defined per folder in the c0de.dev-content repository. To create a new category, simply create a new folder in that repo with at least one post within. For posts without a category, simply throw the new posts in the root of the repo.
When a new post has been created (with the appropiate metadata), the steps to generate the output is as follows:
- SSH into your server
cd c0de.dev-blog
- Update all submodules (installs new plugins too) -
make update
cd pelican
- Clear the output cache if themes or globals changed -
make clean
- Generate the new static HTML site -
make html
TODO
- Service/Unit to run this in a server on prod
- Git hooks to automatically fetch content
- NginX config