18
1
Fork
You've already forked pages-sources
3
Source code and content for the Hackertrain.org website https://hackertrain.org
  • HTML 79.4%
  • Python 13.8%
  • Makefile 5%
  • Nix 1.8%
2026年06月03日 20:27:14 +02:00
content added communication channels 2026年06月03日 20:23:35 +02:00
output @038d899f74 Changes for Akademy 2026 2026年06月03日 20:27:14 +02:00
pelican-plugins @216d1ddb5c Added plugins as submodule (and .gitignore) 2025年08月17日 01:22:20 +02:00
themes bump theme submodule 2025年11月26日 15:24:36 -05:00
.envrc Add nix flake 2025年11月26日 15:11:03 -05:00
.gitignore Add nix flake 2025年11月26日 15:11:03 -05:00
.gitmodules Renamed the repos 2025年08月17日 01:28:02 +02:00
flake.lock Add nix flake 2025年11月26日 15:11:03 -05:00
flake.nix Add nix flake 2025年11月26日 15:11:03 -05:00
Makefile Initial Pelican set-up 2025年08月17日 01:17:09 +02:00
pelicanconf.py Put the map on the main website 2025年12月10日 12:55:28 +01:00
publishconf.py Initial Pelican set-up 2025年08月17日 01:17:09 +02:00
README.markdown Fixing typos 2026年06月03日 19:36:45 +02:00
tasks.py Initial Pelican set-up 2025年08月17日 01:17:09 +02:00

HackerTrain website sources

Source code and content for the https://Hackertrain.org website.

Set up environment

This page is built with Pelican – follow its official documentation to install it. Typically through pipx or the package manager of your choice (as long as it is shipping a fairly recent version).

Also make sure you have the following packages installed the same way as Pelican:

Then you can clone this repository and initialize its submodules to get to the latest:

git clone ssh://git@codeberg.org/HackerTrain/pages-sources.git www-hackertrain-sources
cd www-hackertrain-sources
git submodule init
git submodule update --recursive

Contributing

Articles and pages are stored in MarkDown format in the content/ folder – this is where you can add/edit yours. See Pelican documentation for details.

The category layout is as follows:

  • content/news/ – news
  • (new category folders can be made as needed)

Special folders that are not categories:

  • content/pages/static pages
  • content/documents/ – documents to be linked in the articles and pages themselves
  • content/img/ – images to be linked in the articles themselves
  • content/extra/ – special files like robots.txt

Local testing

To test the website on your own machine, the following command is useful. It listens to the changes to the content, theme and settings, and automatically re-generates the output/ folder as well as serves it in a simple local web server.

pelican --listen --autoreload

That way you can check your progress live on http://localhost:8000.

If you are running into trouble with the theme or links not working, because you cannot access the domain, add the --relative-urls flag.

Committing and pushing

Remember that this repository includes submodules, so when you change something in the folders that are in fact submodules, you should commit and push first to the actual submodule.

Typical example: you write a new blog post and want to push that:

  1. you write a news item and save it e.g. to content/news/good-news-everyone.markdown
  2. you run pelican to generate the HTML (and check it works)
  3. with git add content/news/good-news-everyone.markdown, git commit and git push you add this article’s source to this Git repository
  4. cd output to enter the pages submodule
  5. now git add --all && git commit && git push to update the actual HTML (etc.) website content to the pages Git repository
  6. cd .. to get back to the main repository and git add output && git commit && git push to make make sure the main repository points to changes to the pages submodule
  7. you should see the results reflect on https://hackertrain.org very shortly thereafter

Act in a similar vain when you edit the theme in themes/Peli-Kiera/ too.

Further reading:

Changes to the theme

The theme currently used is: https://codeberg.org/Cyberpipe/Peli-Kiera, which is located in this repository as a git submodule in themes/Peli-Keira.

The theme is a fork of Peli-Kiera.

License

Do note that the https://Hackertrain.org website is published under the CC-BY-4.0 license.