ink-free icon indicating copy to clipboard operation
ink-free copied to clipboard

A Couple of Questions

Open SamGreenwood1 opened this issue 3 years ago • 4 comments

  • How do I set the favicon?
  • Is it possible to set a default post description?

SamGreenwood1 avatar Apr 21 '23 16:04 SamGreenwood1

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)

chollinger93 avatar Apr 21 '23 19:04 chollinger93

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

SamGreenwood1 avatar Apr 29 '23 15:04 SamGreenwood1

I've never seen that before. Did you set https://github.com/chollinger93/ink-free/blob/master/exampleSite/config.toml#L32 ?

chollinger93 avatar Apr 30 '23 15:04 chollinger93

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

erick-medeiros avatar Jul 30 '23 16:07 erick-medeiros