From 708289fa46ac154e80e04b1f9d2912cfb670874b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ne=C4=8Dada?= Date: Sun, 10 Apr 2022 05:36:53 +0300 Subject: [PATCH] =?UTF-8?q?Pou=C5=BEij=20=C5=A1ablonu=20"single"=20pro=20d?= =?UTF-8?q?omovskou=20str=C3=A1nku?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/home.html | 37 +++++++++++++++++++++++++++++++++++++ layouts/index.html | 27 --------------------------- 2 files changed, 37 insertions(+), 27 deletions(-) create mode 100644 layouts/home.html delete mode 100644 layouts/index.html diff --git a/layouts/home.html b/layouts/home.html new file mode 100644 index 0000000..cab91f8 --- /dev/null +++ b/layouts/home.html @@ -0,0 +1,37 @@ +{{ define "main" -}} +
+

{{ .Title }}

+ {{ with .Params.tagline }}{{ . }}{{ end }} + + {{ if ne .Type "page" -}} + + {{- end }} + +
+ {{ .Content }} +
+ + {{ $Site := .Site }} + {{ with .Params.elements }} + {{ range . }} + {{ partial . ( dict "Site" $Site ) }} + {{ end }} + {{ end }} + + + {{ partial "tags.html" . }} + + {{ if (and (ne .Params.DisableShare true) (ne .Params.disable_share true)) -}} + {{ partial "share.html" . }} + {{- end }} + + {{ if (and .Site.DisqusShortname (ne .Params.DisableComments true) (ne .Params.disable_comments true)) -}} +
+

Comments

+ {{ template "_internal/disqus.html" . }} +
+ {{- end }} +
+{{- end }} diff --git a/layouts/index.html b/layouts/index.html deleted file mode 100644 index 9b89434..0000000 --- a/layouts/index.html +++ /dev/null @@ -1,27 +0,0 @@ -{{ define "main" -}} -
- {{- $pages := where .Site.RegularPages "Type" "in" .Site.Params.MainSections -}} - {{- $paginator := .Paginate $pages -}} - - {{ range $paginator.Pages }} -
-

- {{ .Title }} -

- - - -
- {{ .Summary }} -
- - -
- {{- end }} -
- - {{ template "_internal/pagination.html" . }} -{{- end }}