File tree Expand file tree Collapse file tree 4 files changed +18
-58
lines changed
Expand file tree Collapse file tree 4 files changed +18
-58
lines changed Original file line number Diff line number Diff line change 1414 {{ partial "components/footer/footer.html" . }}
1515 </ div >
1616 </ div >
17- {{ partial "components/cookie-notice.html" . }}
1817 {{ partial "scripts/body-scripts.html" . }}
1918</ body >
2019</ html >
Original file line number Diff line number Diff line change 2828{{ $hasLabel := .has_label | default false }}
2929
3030{{ $label := "" }}
31- {{ if and (not $context.Params.author) $hasLabel }}
31+ {{ $postAuthor := $context.Params.author }}
32+
33+ {{ if and (not $postAuthor) $hasLabel }}
3234 {{ $label = "Posted on" }}
3335{{ end }}
3436
3537< div class ="post-info ">
36- {{ with $context.Params.author }}
37- < span class =" post-author " > {{ . }} </ span >
38- < span > on </ span >
39- {{ end }}
40- {{ with $context.Params.publishdate }}
41- {{ partial "components/iso-date.html" (dict
38+ {{- with $postAuthor - }}
39+ {{- $author := printf "%s %s " . "on" -}}
40+ < span class =" post-author " > {{ $author | safeHTML }} </ span >
41+ {{- end - }}
42+ {{- with $context.Params.publishdate - }}
43+ {{- partial "components/iso-date.html" (dict
4244 "date" .
4345 "label" $label
44- ) }}
45- {{ end }}
46+ ) - }}
47+ {{- end - }}
4648</ div >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2424 ~ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2525 -->
2626
27- {{ $date := .date }}
28- {{ $label := .label }}
27+ {{- $date := .date - }}
28+ {{- $label := .label - }}
2929
30- {{ $formattedDate := $date | time.Format ":date_long" }}
31- {{ $isoDate := $date | time.Format "2006-01-02" }}
30+ {{- $formattedDate := $date | time.Format ":date_long" - }}
31+ {{- $isoDate := $date | time.Format "2006-01-02" - }}
3232< p class ="date ">
33- {{ with $label }}
34- {{ .}}
35- {{ end }}
33+ {{- with $label - }}
34+ < span > {{ . }} </ span >
35+ {{- end - }}
3636 < time datetime ="{{ $isoDate }} "> {{ $formattedDate }}</ time >
3737</ p >
You can’t perform that action at this time.
0 commit comments