arewewebyet
arewewebyet copied to clipboard
Failed to build the site
Issue:
The website doesn't build
or serve
Log:
[user@fedora arewewebyet]$ zola build
Building site...
-> Creating 48 pages (0 orphan), 2 sections, and processing 0 images
Failed to build the site
Error: Failed to render page '/home/user/git/arewewebyet/content/about.md'
Reason: Failed to render 'page.html'
Reason: Function call 'get_env' failed
Reason: Environment variable `CURRENT_TIME` not found
[user@fedora arewewebyet]$
The site's footer uses expects a CURRENT_TIME
environment variable, because zola does not expose a function for that: export CURRENT_TIME=$(date '+%d %B %Y'); zola build
.