arewewebyet icon indicating copy to clipboard operation
arewewebyet copied to clipboard

Failed to build the site

Open ncorder opened this issue 3 years ago • 1 comments

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]$ 

ncorder avatar Nov 06 '21 03:11 ncorder

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.

ibraheemdev avatar Nov 06 '21 17:11 ibraheemdev