From 196b82645e33d171aeb36cb9da100f3382aac914 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Tue, 30 Mar 2021 18:07:36 +0530 Subject: [PATCH] Fix Spacing in overall repo --- layouts/404.html | 4 +- layouts/_default/archives.html | 4 +- layouts/_default/baseof.html | 7 +- layouts/_default/list.html | 20 +++--- layouts/_default/search.html | 4 +- layouts/_default/single.html | 22 +++--- layouts/_default/terms.html | 4 +- layouts/partials/anchored_headings.html | 2 +- layouts/partials/author.html | 4 +- layouts/partials/breadcrumbs.html | 12 ++-- layouts/partials/comments.html | 8 +-- layouts/partials/cover.html | 2 +- layouts/partials/edit_post.html | 5 +- layouts/partials/extend_footer.html | 8 +-- layouts/partials/extend_head.html | 9 ++- layouts/partials/footer.html | 8 ++- layouts/partials/head.html | 76 +++++++++++---------- layouts/partials/header.html | 27 ++++---- layouts/partials/home_info.html | 8 +-- layouts/partials/index_profile.html | 14 ++-- layouts/partials/post_meta.html | 20 +++--- layouts/partials/share_icons.html | 8 +-- layouts/partials/social_icons.html | 9 +-- layouts/partials/svg.html | 2 +- layouts/partials/templates/schema_json.html | 4 +- layouts/partials/toc.html | 28 ++++---- layouts/partials/translation_list.html | 6 +- 27 files changed, 167 insertions(+), 158 deletions(-) diff --git a/layouts/404.html b/layouts/404.html index 6f6f3a10..a405573e 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,3 +1,3 @@ -{{ define "main" }} +{{- define "main" }}
404
-{{ end }}{{/* end main */}} \ No newline at end of file +{{- end }}{{/* end main */ -}} diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html index 5daf2aae..f69b2727 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -20,7 +20,7 @@

{{- .Key }}  {{ len .Pages }}

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

@@ -40,4 +40,4 @@ {{- end }} {{- end }} -{{- end }}{{/* end main */}} +{{- end }}{{/* end main */}} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 8f17b936..20c6fbf4 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -13,12 +13,11 @@ {{- print " dark" }} {{- end -}} " id="top"> - {{- partialCached "header.html" . .Page}} + {{- partialCached "header.html" . .Page -}}
- {{- block "main" . }} - {{- end }} + {{- block "main" . }}{{ end }}
- {{- partialCached "footer.html" . .Type .Layout .Params }} + {{ partialCached "footer.html" . .Type .Layout .Params -}} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index a1905b5c..0131412e 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 }}
- {{- $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) }}

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

- {{- if (ne (.Param "hideSummary") true)}} + {{- if (ne (.Param "hideSummary") true) }}
-

{{ .Summary | plainify | htmlUnescape }}{{- if .Truncated }}...{{- end -}}

+

{{ .Summary | plainify | htmlUnescape }}{{ if .Truncated }}...{{ end }}

{{- end }} {{- if not (.Param "hideMeta") }} @@ -75,5 +75,7 @@ {{- end }} -{{end}}{{/* end profileMode */}} + +{{- end }}{{/* end profileMode */}} + {{- end }}{{- /* end main */ -}} diff --git a/layouts/_default/search.html b/layouts/_default/search.html index ae9ba068..e3dc7d47 100644 --- a/layouts/_default/search.html +++ b/layouts/_default/search.html @@ -17,11 +17,11 @@ - {{- end}} + {{- end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index b3f8d464..db2374a4 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,7 +2,7 @@
- {{- partial "breadcrumbs.html" . }} + {{ partial "breadcrumbs.html" . }}

{{ .Title }} {{- if .Draft }}
  [draft]
{{- end }} @@ -14,13 +14,13 @@ {{- end }} {{- if not (.Param "hideMeta") }} - {{- end}} + {{- end }}

- {{- $isHidden := .Params.cover.hidden | default .Site.Params.cover.hiddenInSingle | default .Site.Params.cover.hidden}} + {{- $isHidden := .Params.cover.hidden | default .Site.Params.cover.hiddenInSingle | default .Site.Params.cover.hidden }} {{- partial "cover.html" (dict "cxt" . "IsHome" false "isHidden" $isHidden) }} {{- if (.Param "ShowToc") }} {{- partial "toc.html" . }} @@ -41,24 +41,24 @@ {{- if and (gt (len $pages) 1) (in $pages . ) }} {{- end }} {{- end }} - {{- if (and .Site.Params.ShowShareButtons (ne .Params.disableShare true) ) }} - {{- partial "share_icons.html" . }} + {{- if (and .Site.Params.ShowShareButtons (ne .Params.disableShare true)) }} + {{- partial "share_icons.html" . -}} {{- end }} @@ -67,4 +67,4 @@ {{- end }}
-{{- end }}{{/* end main */}} +{{- end }}{{/* end main */}} diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index b0919875..d5a9e66e 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -1,4 +1,4 @@ -{{ define "main" }} +{{- define "main" }} {{- if .Title }}

-
\ No newline at end of file +
diff --git a/layouts/partials/translation_list.html b/layouts/partials/translation_list.html index a2c2d86c..5e807a97 100644 --- a/layouts/partials/translation_list.html +++ b/layouts/partials/translation_list.html @@ -1,9 +1,9 @@ {{- if .IsTranslated -}} -{{- if (ne .Layout "search")}} +{{- if (ne .Layout "search") }} {{- if or .Params.author $.Site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) }} | {{- end -}} {{- end }} -{{- end }} +{{- end -}}