We use Hugo to generate: https://addiva-elektronik.github.io/
To contribute to the blog, either fork this repository, or if you are a registered employee, clone the repository:
cd
git clone [email protected]:addiva-elektronik/addiva-elektronik.github.io.git blog
cd blog/
git submodule update --init --recursive
Note: The last command is required to get the
themes/
subdirectory updated. This may be necessary rerun after each futuregit pull
as well.
Make changes/additions on a separate branch:
git checkout -b my-changes
When you push it to GitHub you will get a question by GitHub.com if you want to create a pull request. Do that and follow the instructions.
To add/modify blog posts:
-
Install Hugo:
sudo apt install hugo
-
New blog posts go in
content/posts/yyyy-mm-dd-my-first-post.md
-
Add front matter at the top of your post
--- title: "My First Post" date: 2022-11-20T09:03:20-08:00 draft: true ---
-
Add tags and categories where applicable
The preview your post/changes:
cd /path/to/top-directory-of-blog/
- Run
hugo server
, follow the instructions
When you are happy, commit the changes to your branch and create a pull request.