mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-12-12 08:54:08 +00:00
35 lines
No EOL
1 KiB
HTML
35 lines
No EOL
1 KiB
HTML
{{- $LastModifierDisplayName := "" }}
|
|
{{- $LastModifierEmail := "" }}
|
|
{{- $Date := "" }}
|
|
{{- with .GitInfo }}
|
|
{{- with .AuthorName }}
|
|
{{- $LastModifierDisplayName = . }}
|
|
{{- end }}
|
|
{{- with .AuthorEmail }}
|
|
{{- $LastModifierEmail = . }}
|
|
{{- end }}
|
|
{{- with .AuthorDate }}
|
|
{{- $Date = . | time.Format ":date_medium" }}
|
|
{{- end }}
|
|
{{- else }}
|
|
{{- with .Params.LastModifierDisplayName }}
|
|
{{- $LastModifierDisplayName = . }}
|
|
{{- end }}
|
|
{{- with .Params.LastModifierEmail }}
|
|
{{- $LastModifierEmail = . }}
|
|
{{- end }}
|
|
{{- with .Date }}
|
|
{{- $Date = . | time.Format ":date_medium" }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if $LastModifierDisplayName }}
|
|
<i class='fa-fw fas fa-user'></i> {{ with $LastModifierEmail }}<a href="mailto:{{ . }}">{{ end }}{{ $LastModifierDisplayName }}{{ with $LastModifierEmail }}</a>{{ end }}
|
|
{{- with $Date }}
|
|
<i class='fa-fw fas fa-calendar'></i> {{ . }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- partial "term-list.html" (dict
|
|
"page" .
|
|
"taxonomy" "categories"
|
|
"icon" "layer-group"
|
|
) }} |