Blog content and code https://blog.codeberg.org
 
 
 
 
 
Go to file
Otto cb7bc20283 Letter: September 2023 2023-09-04 14:50:42 +02:00
content Letter: September 2023 2023-09-04 14:50:42 +02:00
themes/codeberg Fix images' width 2022-05-12 23:12:18 +02:00
.gitignore Add output/ to .gitignore 2023-08-28 16:02:45 +02:00
Makefile Rewrite templates using Halfmoon framework (#18) 2022-04-10 17:19:08 +02:00
README.md Licence blog content under CC BY 4.0 2021-07-31 12:51:46 +02:00
pelicanconf.py Remove Twitter from social widget 2023-08-30 10:54:53 +00:00
publishconf.py Add link to parent site (codeberg.org) to the blog. 2020-07-12 00:46:40 +02:00
tasks.py Rewrite templates using Halfmoon framework (#18) 2022-04-10 17:19:08 +02:00

README.md

Codeberg Blog

This repository is responsible for the publication of the Codeberg blog at https://blog.codeberg.org.

It is using Pelican - you can read more about it at https://blog.getpelican.com/

Contributing

Like everything Codeberg, the blog is absolutely meant to be open for contributions! Feel free to write an interesting article or make changes to the design of the blog.

To contribute, just fork the repository using the Fork button of Codeberg. You can then clone the repository to your local machine, make, commit and push changes and finally create a Pull Request to this repository (If you are unfamiliar with the general git workflow, check out the Codeberg docs for help: https://codeberg.org/Codeberg/Documentation). As soon as your PR is merged, the blog will get updated with your content.

Adding content

Content of the blog resides in content/ as Markdown (.md) files. You can add your own files and follow the workflow described above.

Make changes to the theme

The theme of the blog and content related to it can be found in themes/codeberg/ . You will find a dedicated README.md about technical aspects of the pelican theme.

Installing Pelican

You require pelican to build the blog. On many Linux distributions, there is already a package called 'pelican'. Try to install it with your local package manager, e. g. on Debian based distros sudo apt install pelican. This is the recommended way as it will be easier to handle dependencies and updates. If that was no success but you already have Python and pip installed, you can also issue

pip install pelican[Markdown]

in your terminal to install pelican to your machine. To install it globally, you require root access, you might need to add sudo to the command above. You can learn more about Pelican installation at https://docs.getpelican.com/en/stable/install.html.

If you still need Python and Pip, refer to the Python and Pip docs on how to install it to your machine.

Local testing and development

To preview the changes you made (not necessary when writing articles but recommended when you make changes to the pelican setup), you can use the commands in the Makefile. To build the pelican site to the path specified in the Makefile at OUTPUTDIR (default: /var/www/blog.codeberg.org) run pelican publish. If you don't want to set up a web server serving this directory, you can also run pelican serve to serve the site locally at http://localhost:8000 In case that directory does not exist on your machine, you can create it or change the OUTPUTDIR to another path.

Licence

Blog articles inside the folder content/ are licensed under a Creative Commons Attribution 4.0 International License (CC BY 4.0) if not stated otherwise inside the document or next to image files.