This is the repository for my blog. It is setup with jekyll and github pages.
Install Ruby, best with rbenv. Check the latest stable version here: https://jekyllrb.com/docs/installation/macos/ (currently 3.1.3)
rbenv install 3.1.3
rbenv local 3.1.3
Install Bundler.
gem install bundler
Run
cd docs
bundle install
bundle exec jekyll serve --drafts
This blog is based on github pages and jekyll, checkout the guide here: https://docs.github.com/en/pages/setting-up-a-github-pages-site-with-jekyll/about-github-pages-and-jekyll
It uses the minimal mistakes theme
Changes:
- Link to the data privacy and imprint site in the footer, this is needed by german law. These sites are markdown files in the
pages
folder. - The
data/navigation.yml
is configured to only show the posts and about link in the header. - Cookie consent banner. The banner got generated with Osano. The scripts for the banner are in the
_includes/custom.html
file andassets/scripts/js/cookie-consent.js
file.
For comments giscus is added. The setup is based on this blogpost.
For the setup:
- discussions got enabled in the github repo
- giscus got installed as a github plugin
- the variables from the script got moved in the
_config.yaml
in acomments
andgiscus
section
I registered the domains fabianhertwig.com and fabianhertwig.de with google domains.
For fabianhertwig.com I setup the DNS entries according to this guide, so first the apex domain and then as well the CNAME for the www subdomain: https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site#configuring-an-apex-domain
For fabianhertwig.de I have setup a forward to the fabianhertwig.com domain.