Skip to content

Commit 003677b

Browse files
auteur en haut d’article (#260)
1 parent 22fdbd3 commit 003677b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

www/layouts/_default/single.html

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{{ define "main" }}
22

33
{{ $date := .Date }}
4-
{{- if $date -}}
5-
<time>{{ $date.Format (.Site.Params.dateform | default "2006-01-02") }}</time>
6-
{{- end -}}
7-
8-
{{ .Content }}
9-
104
{{ $author := index .Site.Data.authors (.Params.author | default "default") }}
11-
{{- if $author -}}
12-
<p style="text-align: right;">
5+
6+
<p style="text-align: right;">
7+
{{ if $author }}
138
<a href="{{ $author.url }}">{{ $author.name }}</a>
14-
</p>
15-
{{- end -}}
9+
{{ end -}}
10+
{{ if $date }}
11+
<time>{{ $date.Format (.Site.Params.dateform | default "2006-01-02") }}</time>
12+
{{ end }}
13+
</p>
14+
15+
{{ .Content }}
1616

1717
{{ end }}

0 commit comments

Comments
 (0)