Hugo shortcodes can read information from files in the docs/data/ directory. This is a useful way to enforce consistency across your website.
- Solo.yaml
- Generated by Makefile
.PHONY: pass-version-to-hugo
pass-version-to-hugo:
echo DocsVersion: > data/Solo.yaml
ifeq ($(RELEASE),"true")
echo DocsVersion: "/$(VERSION)" > data/Solo.yaml
endif