Make sure you check it out recursively, otherwise the theme and links to other blogs won't work.
Additionally you need to run yarn
a least once if you want to start hugo serve
for offline editing.
git submodule update --init --recursive
Run the following script to generate assets
./scripts/setup.sh
There are two content types:
- Post - for news
- Blog - for links to blogs - to be shown in a portfolio
title
- Title for the content elementdate
- Date of the content elementdescription
- Description of the content element
Creating a new entry:
hugo new post/postnamehere/index.md
Note: Make sure to create the page bundle (option -c
) in the right directory! Hugo seem to have some stupid defaults if working in a fake multisite tree.
Creating a new entry:
hugo new blog/blognamehere/index.md
lang
- List of available languageslink
- Link to blogslinkPrefix
- Prefix for links to this blogstatus
- One ofactive
,inactive
orplanned
You need Imagemagick with Freetype support buildin.
convert -size 1024x768 -background gray36 -gravity Center -fill gray93 -font ./static/fonts/Lato-Bold.ttf label:"TEXT" screenshot.png
Add the blog as Git submodule:
git submodule add https://github.com/cmahnke/kraehenbeisser.git blogs/kraehenbeisser
Edit config.toml
:
[[module.mounts]]
source = "blogs/kraehenbeisser/content/post"
target = "content/post/kraehenbeisser"
Make sure there is a page in contents/blog
for the newly added blog since some metadata is pulled from there.
find content blogs -name info.json -print -exec dirname {} \; | xargs rm -r
This might be needed if there are to many sub directories (with IIIF structures) generated, since watching might not work in this setup.
hugo serve -F --debug --disableFastRender --disableLiveReload --watch=false --renderToDisk
hugo server -D --debug --disableFastRender --renderToDisk
find blogs -ipath "*.github/workflows/*" -and \! -ipath "*/node_modules/*" -print -exec grep hugo-version {} \;