Add the ability for post headers to be links when you add a link parameter to the page front matter

This commit is contained in:
Eryn Wells 2023-01-07 09:43:15 -08:00
parent 4ca71181c7
commit d68e76478d
2 changed files with 9 additions and 1 deletions

View file

@ -1,7 +1,7 @@
<header>
{{ partial "development/draft_tag.html" . }}
<div class="post-title">
<h1>{{ .Title }}</h1>
<h1>{{ .Title }}{{ with .Params.link }}<a class="link-arrow" href="{{ . }}"></a>{{ end }}</h1>
{{ if not (eq .Section "about") }}
<div class="post-date"><time>{{ .Date | time.Format "January 2, 2006" }}</time></div>
{{ end }}