You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding this in gallery.html after the end of the <figure> tag and before the <meta itemprop...> tag will add the date of capture to the text next to the photo:
<span class="pswp-caption-content">
{{ with .Title }}{{ . }}<br /><hr />{{ end }}
{{ with .Date }}{{ . | time.Format ":date_short" }}{{ end }}
</span>
I tried making this dependent on a parameter setting in hugo.toml, but for some reason e.g. .Site.Params.showDate is not picked up in this section. Perhaps there are scope limitations.
The text was updated successfully, but these errors were encountered:
Adding this in gallery.html after the end of the
<figure>
tag and before the<meta itemprop...>
tag will add the date of capture to the text next to the photo:I tried making this dependent on a parameter setting in
hugo.toml
, but for some reason e.g..Site.Params.showDate
is not picked up in this section. Perhaps there are scope limitations.The text was updated successfully, but these errors were encountered: