Skip to content

cmahnke/labs.projektemacher.org

Repository files navigation

Labs

Checkout themes

git submodule init
git submodule update --recursive

Setup for local (offline) development

Run the following script to generate assets

./scripts/setup.sh

Generating Tiles

We start to use [LibVIPS]https://github.com/libvips/libvips(), since it's very fast:

On Mac OS X just run:

brew install vips

Generate tiles for a single file

vips dzsave front.jpg front -t 512 --layout iiif --id '.'

Generating tiles for IIIF Presentation API

URL_PREFIX=http://localhost:1313/ ./scripts/iiif.sh

Remove generated IIIF directories

find content/post/ -name info.json -exec dirname {} \; | xargs rm -r

Running hugo

With writing files to disk and watching

/usr/local/bin/hugo server -D --debug --disableFastRender --renderToDisk

Without watching

This might be needed if there are to many sub directories (with IIIF structures) generated, since watching might not work in this setup. This stopped to work reliably between Hugo 0.79.0 and 0.81.0

hugo serve -F --debug --disableFastRender  --disableLiveReload --watch=false --renderToDisk

Dependencies

Dart SASS on Mac OS

brew install sass/sass/sass
ln -s /opt/homebrew/bin/sass /usr/local/bin/dart-sass-embedded

Hugo

Running with HTTPS (for stupid Safari)

hugo server --tlsAuto

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published