mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-22 02:21:37 +01:00
misc : refactor
* manage spacing and whitespace in meta
This commit is contained in:
parent
07976cdd3c
commit
05035121ff
@ -40,7 +40,7 @@
|
||||
<header class="entry-header">
|
||||
<h2>
|
||||
{{ .Title }}
|
||||
{{- if .Draft }}<div class="entry-isdraft"><sup>  [draft]</sup></div>{{- end }}
|
||||
{{- if .Draft }}<div class="entry-isdraft"><sup> [draft]</sup></div>{{- end }}
|
||||
</h2>
|
||||
</header>
|
||||
{{if (ne .Site.Params.hideSummary true)}}
|
||||
@ -50,10 +50,10 @@
|
||||
{{ end }}
|
||||
<footer class="entry-footer">
|
||||
<time>{{ .Date.Format "January 2, 2006" }}</time>
|
||||
{{ if $.Site.Params.ShowReadingTime }} .
|
||||
{{ $default_txt := print .ReadingTime " " "min" }}
|
||||
{{ i18n "read_time" .ReadingTime | default $default_txt }}{{ end }}
|
||||
{{ if or .Params.author .Site.Params.author }} . {{ .Params.author | default .Site.Params.author }}{{ end }}
|
||||
{{- if $.Site.Params.ShowReadingTime }} .
|
||||
{{- $default_txt := print .ReadingTime " " "min" }}
|
||||
{{- i18n "read_time" .ReadingTime | default $default_txt }}{{ end }}
|
||||
{{- if or .Params.author .Site.Params.author }} . {{- .Params.author | default .Site.Params.author }}{{ end }}
|
||||
</footer>
|
||||
<a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}"></a>
|
||||
</article>
|
||||
|
@ -9,11 +9,11 @@
|
||||
{{ if .Params.hideMeta }}{{ else }}
|
||||
<div class="post-meta">
|
||||
<time>{{ .Date.Format "January 2, 2006" }}</time>
|
||||
{{ if $.Site.Params.ShowReadingTime }} .
|
||||
{{ $default_txt := print .ReadingTime " " "min" }}
|
||||
{{ i18n "read_time" .ReadingTime | default $default_txt }}{{ end }}
|
||||
{{ if or .Params.author .Site.Params.author }} . {{ .Params.author | default .Site.Params.author }}{{ end }}
|
||||
{{ if .IsTranslated -}}|
|
||||
{{- if $.Site.Params.ShowReadingTime -}} .
|
||||
{{- $default_txt := print .ReadingTime " " "min" }}
|
||||
{{- i18n "read_time" .ReadingTime | default $default_txt }}{{ end }}
|
||||
{{- if or .Params.author .Site.Params.author }} . {{- .Params.author | default .Site.Params.author }}{{ end }}
|
||||
{{- if .IsTranslated -}} |
|
||||
<ul class="i18n_list">
|
||||
{{ i18n "translations" | default "Translations"}}:
|
||||
{{ range .Translations }}
|
||||
|
Loading…
Reference in New Issue
Block a user