summaryrefslogtreecommitdiff
path: root/layouts/_default/list.html
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-09-23 12:52:32 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-09-23 12:52:32 +0530
commit016dd6e9fae2cff965753c0fe865e11a58018101 (patch)
tree8ee6d6ff897612d29d0e0756dddd80b7e6cf5c4d /layouts/_default/list.html
parent2cb5c9dad5b176fa03ebe72b04c0cd0f63100343 (diff)
(lint) remove unnecessary whitespace
created by hugo's {{ }}
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r--layouts/_default/list.html31
1 files changed, 15 insertions, 16 deletions
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 }}
<header class="page-header">
<h1>{{ .Title }}</h1>
</header>
-{{ 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 }}
<article class="{{ $class }}">
- {{ if .Params.cover }}
+ {{- if .Params.cover }}
<figure class="entry-cover">
<img src="{{ .Params.cover | absURL }}" alt="cover image for {{ .Title }}">
</figure>
- {{ end }}
+ {{- end }}
<header class="entry-header">
<h2>
{{ .Title }}
{{- if .Draft }}<div class="entry-isdraft"><sup>&nbsp;&nbsp;[draft]</sup></div>{{- end }}
</h2>
</header>
- {{if (ne .Site.Params.hideSummary true)}}
+ {{- if (ne .Site.Params.hideSummary true)}}
<section class="entry-content">
<p>{{ .Summary | plainify | htmlUnescape }}...</p>
</section>
- {{ end }}
+ {{- end }}
<footer class="entry-footer">
<time>{{ .Date.Format "January 2, 2006" }}</time>
{{- if $.Site.Params.ShowReadingTime }}&nbsp;.&nbsp;
@@ -72,4 +71,4 @@
</footer>
{{- end }}
{{end}}{{/* end profileMode */}}
-{{ end }}{{/* end main */}} \ No newline at end of file
+{{- end }}{{- /* end main */ -}} \ No newline at end of file