Skip to content

A Hugo module to add animations powered by Lottie to your Hinode site

License

Notifications You must be signed in to change notification settings

gethinode/mod-lottie

Repository files navigation

Hinode Module - Lottie

A Hugo module to add animations powered by Lottie to your Hinode site

About

Logo

Hinode is a clean blog theme for Hugo, an open-source static site generator. Hinode is available as a template, and a main theme. This repository maintains a Hugo module to add Lottie to a Hinode site. Visit the Hinode documentation site for installation instructions.

Notes

This modules uses Lottie Light by default. The lottie_light.js player is a lighter version of lottie that supports only the svg renderer and does not support expressions or effects. Canvas and html renderers are not supported either.

You can adjust the mount point in config.toml to use the default library instead. Please note that you need to enable unsafe-eval in your Content Security Policy then (see Lottie issue #2173).

[[module.imports.mounts]]
source = "build/player/lottie.js"
target = "assets/js/modules/lottie/lottie.js"