A Couple of Questions
- How do I set the favicon?
- Is it possible to set a default post description?
How do I set the favicon?
Add a favicon.ico to your web server's root (e.g., /var/www) or to the rendered directory. I think adding it to the static folder here would achieve that, but I'd rather not set a default.
Is it possible to set a default post description?
Post descriptions are part of the markdown files that make up the content, so you either use hugo new and paste your default description there or use say a jinja template in lieu of that. But that's a function of your content, not the template's. (Unless you want to mess with the index.html, which I don't recommend)
I'm now getting this error, can't figure why (the file matches the version in this repo):
I replaced /home/sam/sitedir/themes/ink-free with $theme
ERROR 2023/04/29 15:36:56 render of "home" failed: "$theme/layouts/index.html:26:66":
execute of template failed: template: index.html:26:66: executing "index.html" at
<div .WordCount .Site.Params.wpm>: error calling div: can't apply the operator to the values
Error: Error building site: failed to render pages: render of "home" failed: "$theme/layouts/index.html:26:66":
execute of template failed: template: index.html:26:66: executing "index.html" at
<div .WordCount .Site.Params.wpm>: error calling div: can't apply the operator to the values
I've never seen that before. Did you set https://github.com/chollinger93/ink-free/blob/master/exampleSite/config.toml#L32 ?
I'm creating a project from scratch using hugo 0.115.4 and ink-free theme
And I had the same problem with this wpm variable
What did you suggest to put in hugo.toml
[params]
wpm = 250
Solved my problem