diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-09-22 13:48:38 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-09-22 13:48:38 +0530 |
| commit | 05035121ffa0bfeadc9cca68fbfd026e50b00558 (patch) | |
| tree | 0d077a43b6dd3b8bae59fb00e07b64cea2f2f972 /layouts/_default | |
| parent | 07976cdd3c6d5af8e0128f277d24693391628dc9 (diff) | |
misc : refactor
* manage spacing and whitespace in meta
Diffstat (limited to 'layouts/_default')
| -rw-r--r-- | layouts/_default/list.html | 10 | ||||
| -rw-r--r-- | layouts/_default/single.html | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 0dd7286..89ced7a 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -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> diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 6778345..781a05d 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -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 }} |
