misc : refactor

* manage spacing and whitespace in meta
This commit is contained in:
Aditya Telange 2020-09-22 13:48:38 +05:30
parent 07976cdd3c
commit 05035121ff
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
2 changed files with 10 additions and 10 deletions

View File

@ -40,7 +40,7 @@
<header class="entry-header"> <header class="entry-header">
<h2> <h2>
{{ .Title }} {{ .Title }}
{{- if .Draft }}<div class="entry-isdraft"><sup>&nbsp&nbsp[draft]</sup></div>{{- end }} {{- if .Draft }}<div class="entry-isdraft"><sup>&nbsp;&nbsp;[draft]</sup></div>{{- end }}
</h2> </h2>
</header> </header>
{{if (ne .Site.Params.hideSummary true)}} {{if (ne .Site.Params.hideSummary true)}}
@ -50,10 +50,10 @@
{{ end }} {{ end }}
<footer class="entry-footer"> <footer class="entry-footer">
<time>{{ .Date.Format "January 2, 2006" }}</time> <time>{{ .Date.Format "January 2, 2006" }}</time>
{{ if $.Site.Params.ShowReadingTime }} . {{- if $.Site.Params.ShowReadingTime }}&nbsp;.&nbsp;
{{ $default_txt := print .ReadingTime " " "min" }} {{- $default_txt := print .ReadingTime " " "min" }}
{{ i18n "read_time" .ReadingTime | default $default_txt }}{{ end }} {{- i18n "read_time" .ReadingTime | default $default_txt }}{{ end }}
{{ if or .Params.author .Site.Params.author }} . {{ .Params.author | default .Site.Params.author }}{{ end }} {{- if or .Params.author .Site.Params.author }}&nbsp;.&nbsp;{{- .Params.author | default .Site.Params.author }}{{ end }}
</footer> </footer>
<a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}"></a> <a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}"></a>
</article> </article>

View File

@ -9,11 +9,11 @@
{{ if .Params.hideMeta }}{{ else }} {{ if .Params.hideMeta }}{{ else }}
<div class="post-meta"> <div class="post-meta">
<time>{{ .Date.Format "January 2, 2006" }}</time> <time>{{ .Date.Format "January 2, 2006" }}</time>
{{ if $.Site.Params.ShowReadingTime }} . {{- if $.Site.Params.ShowReadingTime -}}&nbsp;.&nbsp;
{{ $default_txt := print .ReadingTime " " "min" }} {{- $default_txt := print .ReadingTime " " "min" }}
{{ i18n "read_time" .ReadingTime | default $default_txt }}{{ end }} {{- i18n "read_time" .ReadingTime | default $default_txt }}{{ end }}
{{ if or .Params.author .Site.Params.author }} . {{ .Params.author | default .Site.Params.author }}{{ end }} {{- if or .Params.author .Site.Params.author }}&nbsp;.&nbsp;{{- .Params.author | default .Site.Params.author }}{{ end }}
{{ if .IsTranslated -}}| {{- if .IsTranslated -}}&nbsp;|&nbsp;
<ul class="i18n_list"> <ul class="i18n_list">
{{ i18n "translations" | default "Translations"}}: {{ i18n "translations" | default "Translations"}}:
{{ range .Translations }} {{ range .Translations }}