We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22fdbd3 commit 003677bCopy full SHA for 003677b
www/layouts/_default/single.html
@@ -1,17 +1,17 @@
1
{{ define "main" }}
2
3
{{ $date := .Date }}
4
- {{- if $date -}}
5
- <time>{{ $date.Format (.Site.Params.dateform | default "2006-01-02") }}</time>
6
- {{- end -}}
7
-
8
- {{ .Content }}
9
10
{{ $author := index .Site.Data.authors (.Params.author | default "default") }}
11
- {{- if $author -}}
12
- <p style="text-align: right;">
+
+ <p style="text-align: right;">
+ {{ if $author }}
13
– <a href="{{ $author.url }}">{{ $author.name }}</a>
14
- </p>
15
+ {{ end -}}
+ {{ if $date }}
+ – <time>{{ $date.Format (.Site.Params.dateform | default "2006-01-02") }}</time>
+ {{ end }}
+ </p>
+ {{ .Content }}
16
17
{{ end }}
0 commit comments