ITADN
cmahnke/projektemacher-base
cmahnke/projektemacher-base · 文件
文件最后提交记录最后更新时间
README.md

projektemacher-base Theme

Introduction

Installation

git submodule add https://github.com/cmahnke/projektemacher-base.git themes/projektemacher-base

Site configuration

IIIF manifests

To generate IIIF JSON manifests you need to add the JSON output format to the site config.toml.

[outputs]
    page = ["HTML", "JSON"]

Scripts

To enable the merging of node dependencies including the script section you may want to add the following snippet to your setup

#NPM dependencies
echo "Calling theme scripts"
for SCRIPT in $PWD/themes/projektemacher-base/scripts/init/*.sh ; do
    echo "Running $SCRIPT"
    bash "$SCRIPT"
done

Development dependencies

Dart SASS on Mac OS

Download the binary from https://github.com/sass/dart-sass-embedded/releases and install it to /usr/local/bin/.

To use Dart SASS on the command line also install it from brew

brew install sass/sass/sass

Installation

Checking out as submodule

cd themes
git submodule add https://github.com/cmahnke/projektemacher-base.git
git commit

Don't forget to add projektemacher-base to config.toml

Example site

The example site is currently unfinished.

TODO

  • Finish example site
  • Finish migration to new font infrastructure
  • Include nomalize.js by default
  • Finish shortcode metadata

Version upgrades

TODO (0.153.0 - 0.156.0)

Notes:

Method:

  • .Site.AllPages
  • .Site.Languages
  • Site.BuildDrafts (?)
  • .Language.Lang

Tools

Python Modules

JXLPy

LDFLAGS="-L/opt/homebrew/opt/jpeg-xl/lib" CPPFLAGS="-I/opt/homebrew/opt/jpeg-xl/include" pip install  --force-reinstall --no-binary :all: jxlpy