diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2021-03-30 18:07:36 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2021-03-30 18:26:43 +0530 |
| commit | 196b82645e33d171aeb36cb9da100f3382aac914 (patch) | |
| tree | becc9642baed314491b8aae342ee2bc9e8f6410d /layouts/partials/post_meta.html | |
| parent | dae7f2b8a1b167fdb68ed47f3333a78a6ec6847f (diff) | |
Fix Spacing in overall repo
Diffstat (limited to 'layouts/partials/post_meta.html')
| -rw-r--r-- | layouts/partials/post_meta.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html index d0cf176..8536d1e 100644 --- a/layouts/partials/post_meta.html +++ b/layouts/partials/post_meta.html @@ -1,17 +1,17 @@ -{{- $scratch := newScratch}} +{{- $scratch := newScratch }} {{- if not .Date.IsZero -}} {{- $scratch.Add "meta" (slice (.Date.Format (default "January 2, 2006" .Site.Params.DateFormat))) }} -{{- end -}} +{{- end }} {{- if (.Param "ShowReadingTime") -}} {{- $scratch.Add "meta" (slice (i18n "read_time" .ReadingTime | default (printf "%s min" .ReadingTime))) }} -{{- end -}} - -{{ with (partial "author.html" . ) }} -{{ $scratch.Add "meta" (slice .)}} -{{end}} +{{- end }} -{{- with ($scratch.Get "meta")}} -{{- delimit . " · "}} +{{- with (partial "author.html" .) }} +{{- $scratch.Add "meta" (slice .) }} {{- end }} + +{{- with ($scratch.Get "meta") }} +{{- delimit . " · " -}} +{{- end -}} |
