From 016dd6e9fae2cff965753c0fe865e11a58018101 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Wed, 23 Sep 2020 12:52:32 +0530 Subject: (lint) remove unnecessary whitespace created by hugo's {{ }} --- layouts/_default/archives.html | 42 ++++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 20 deletions(-) (limited to 'layouts/_default/archives.html') diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html index d6753e9..160c3ed 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -1,39 +1,41 @@ -{{ define "main" }} +{{- define "main" }} -{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} -{{ range $pages.GroupByPublishDate "2006" }} -{{ if ne .Key "0001" }} + +{{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} +{{- range $pages.GroupByPublishDate "2006" }} +{{- if ne .Key "0001" }}
-

{{ replace .Key "0001" "" }}

- {{ range .Pages.GroupByDate "January" }} +

{{- replace .Key "0001" "" }}

+ {{- range .Pages.GroupByDate "January" }}
-

{{ .Key }}

+

{{- .Key }}

- {{ range .Pages }} - {{ if eq .Kind "page" }} + {{- range .Pages }} + {{- if eq .Kind "page" }}

- {{ .Title | markdownify }} + {{- .Title | markdownify }}

- {{- if or .Params.author .Site.Params.author }}{{- .Params.author | default .Site.Params.author }} · - {{ end }} - {{ if $.Site.Params.ShowReadingTime }}{{ .ReadingTime }}{{ i18n "read_time" | default "min read" }} - · {{ end }} + {{- if or .Params.author .Site.Params.author }} + {{- .Params.author | default .Site.Params.author }} · + {{- end }} + {{- if $.Site.Params.ShowReadingTime }} + {{ .ReadingTime }}{{ i18n "read_time" | default "min read" }} · {{ end }} {{- .Date.Format "January 2, 2006" -}}
- {{ end }} - {{ end }} + {{- end }} + {{- end }}
- {{ end }} + {{- end }}
-{{ end }} -{{ end }} +{{- end }} +{{- end }} -{{ end }}{{/* end main */}} \ No newline at end of file +{{- end }}{{/* end main */}} \ No newline at end of file -- cgit v1.2.3