summaryrefslogtreecommitdiff
path: root/layouts/_default/list.html
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2021-03-30 18:07:36 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2021-03-30 18:26:43 +0530
commit196b82645e33d171aeb36cb9da100f3382aac914 (patch)
treebecc9642baed314491b8aae342ee2bc9e8f6410d /layouts/_default/list.html
parentdae7f2b8a1b167fdb68ed47f3333a78a6ec6847f (diff)
Fix Spacing in overall repo
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r--layouts/_default/list.html20
1 files changed, 11 insertions, 9 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index a1905b5..0131412 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -20,15 +20,15 @@
{{- if .IsHome }}
{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
-{{- end}}
+{{- end }}
-{{ $paginator := .Paginate $pages }}
+{{- $paginator := .Paginate $pages }}
{{- if and .IsHome .Site.Params.homeInfoParams (eq $paginator.PageNumber 1) }}
{{- partial "home_info.html" . }}
{{- end }}
-{{ $term := .Data.Term}}
+{{- $term := .Data.Term }}
{{- range $index, $page := $paginator.Pages }}
{{- $class := "post-entry" }}
@@ -41,17 +41,17 @@
{{- end }}
<article class="{{ $class }}">
- {{- $isHidden := (.Site.Params.cover.hidden | default .Site.Params.cover.hiddenInList)}}
+ {{- $isHidden := (.Site.Params.cover.hidden | default .Site.Params.cover.hiddenInList) }}
{{- partial "cover.html" (dict "cxt" . "IsHome" true "isHidden" $isHidden) }}
<header class="entry-header">
<h2>
- {{ .Title }}
- {{- if .Draft }}<div class="entry-isdraft"><sup>&nbsp;&nbsp;[draft]</sup></div>{{- end }}
+ {{- .Title }}
+ {{- if .Draft }}<div class="entry-isdraft"><sup>&nbsp;&nbsp;[draft]</sup></div>{{ end -}}
</h2>
</header>
- {{- if (ne (.Param "hideSummary") true)}}
+ {{- if (ne (.Param "hideSummary") true) }}
<section class="entry-content">
- <p>{{ .Summary | plainify | htmlUnescape }}{{- if .Truncated }}...{{- end -}}</p>
+ <p>{{ .Summary | plainify | htmlUnescape }}{{ if .Truncated }}...{{ end }}</p>
</section>
{{- end }}
{{- if not (.Param "hideMeta") }}
@@ -75,5 +75,7 @@
</nav>
</footer>
{{- end }}
-{{end}}{{/* end profileMode */}}
+
+{{- end }}{{/* end profileMode */}}
+
{{- end }}{{- /* end main */ -}}