jpescador / hugo-future-imperfect

A ported theme with some extras for the Hugo static website engine
MIT License
309 stars 228 forks source link

What is the purpose of "link" for itemized? #146

Closed johnatasjmo closed 6 years ago

johnatasjmo commented 6 years ago

What is the expected behavior of the value link = in itemized content type?

peaceiris commented 6 years ago

link

If you set linktitle and link at toml like this

+++
linktitle = "Github"
link = "https://github.com/peaceiris"
+++

You will get the link to GitHub.

This is defined at layouts/itemized/header.html

{{ if isset .Params "link" }}                                                                                                                                           
  <a href="{{ .Params.link }}" target="_blank">{{ .Params.linktitle }}</a>                                                                                              
{{ end }}
johnatasjmo commented 6 years ago

Noted. To be added to the Wiki when available.