Use with where possible
parent
e0ddce45e4
commit
ff587e94e0
@ -1,3 +1,3 @@
|
||||
{{ if .Content }}
|
||||
{{ .Content | replaceRE `(<h[1-9] id="([^"]+)".+)(</h[1-9]+>)` `${1}<a class="headerlink" href="#${2}"><i class="bi bi-link-45deg small"></i></a>${3}` | safeHTML }}
|
||||
{{ with .Content }}
|
||||
{{ . | replaceRE `(<h[1-9] id="([^"]+)".+)(</h[1-9]+>)` `${1}<a class="headerlink" href="#${2}"><i class="bi bi-link-45deg small"></i></a>${3}` | safeHTML }}
|
||||
{{ end }}
|
||||
|
@ -1,3 +1,3 @@
|
||||
{{ if .PublishDate }}
|
||||
<p class="text-center text-muted"><time datetime="{{ .PublishDate.Format `2006-01-02` }}">{{ .PublishDate.Format "January 2, 2006" }}</time></p>
|
||||
{{ with .PublishDate }}
|
||||
<p class="text-center text-muted"><time datetime="{{ .Format `2006-01-02` }}">{{ .Format "January 2, 2006" }}</time></p>
|
||||
{{ end }}
|
||||
|
@ -1,3 +1,3 @@
|
||||
{{ if .Description }}
|
||||
<p class="lead text-center">{{ .Description | markdownify }}</p>
|
||||
{{ with .Description }}
|
||||
<p class="lead text-center">{{ . | markdownify }}</p>
|
||||
{{ end }}
|
||||
|
Loading…
Reference in New Issue