bennetthardwick / simple-dev-blog-zola-starter

A simple dev-blog theme for Zola.
MIT License
49 stars 24 forks source link

Variable `icon.url` not found #16

Open philiprhoades opened 2 years ago

philiprhoades commented 2 years ago

Bennett,

I am coming from Jekyll and trying out Zola just because it is written in Rust.

Of the half-dozen themes which I like the look of and have tried, yours seems to be the closest to be working. I think I have copied everything into their correct places - I am just trying to replicate your demo exactly ATM - but I get this:

$ zola serve
Building site...
-> Creating 4 pages (0 orphan), 1 sections, and processing 0 images
Error: Failed to render page '/home/phr/src/rust/zola/soch_4/content/about.md'
Reason: Failed to render 'page.html' (error happened in 'base.html').
Reason: Variable `icon.url` not found in context while rendering 'page.html'

Something seems to be missing?

Thanks, Phil.

bennetthardwick commented 2 years ago

Hey @philiprhoades, thanks for the issue!

It looks like the issue is related to this profile_small option in your config.toml. Do you have it set / if so is it pointing to a valid image?

https://github.com/bennetthardwick/simple-dev-blog-zola-starter/blob/31cec6b6205a10026a926f09d6a1e08110dfd024/config.toml#L36

If you are able to share the repo with me I can take a look and see what is wrong.