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/list.html | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) (limited to 'layouts/_default/list.html') diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 89ced7a..ef31469 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,21 +1,20 @@ -{{ define "main" }} +{{- define "main" }} -{{ if (and .Site.Params.profileMode.enabled .IsHome) }} +{{- if (and .Site.Params.profileMode.enabled .IsHome) }} {{- partial "indexProfile.html" . }} -{{else}} {{/* if not profileMode */}} +{{- else }} {{/* if not profileMode */}} {{- if not .IsHome | and .Title }} -{{ end }} - +{{- end }} -{{ $pages := .RegularPages }} +{{- $pages := .RegularPages }} -{{ if .IsHome }} -{{ $pages = where site.RegularPages "Type" "in" site.Params.mainSections }} -{{end}} +{{- if .IsHome }} +{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }} +{{- end}} {{ $paginator := .Paginate $pages }} @@ -25,29 +24,29 @@ {{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0)) }} {{- if .Site.Params.homeInfoParams | or .Site.Params.disableSpecial1stPost}} {{- partial "homeInfo.html" . }} -{{else}} +{{- else}} {{- $class = "first-entry" }} -{{ end }} +{{- end }} {{- else if .Data.Term }} {{- $class = "post-entry tag-entry" }} {{- end }}
- {{ if .Params.cover }} + {{- if .Params.cover }}
cover image for {{ .Title }}
- {{ end }} + {{- end }}

{{ .Title }} {{- if .Draft }}
  [draft]
{{- end }}

- {{if (ne .Site.Params.hideSummary true)}} + {{- if (ne .Site.Params.hideSummary true)}}

{{ .Summary | plainify | htmlUnescape }}...

- {{ end }} + {{- end }} {{- end }} {{end}}{{/* end profileMode */}} -{{ end }}{{/* end main */}} \ No newline at end of file +{{- end }}{{- /* end main */ -}} \ No newline at end of file -- cgit v1.2.3