diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..a32604f --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,137 @@ +{{ define "main" }} + + +
+ + + + +
+
+
+
+
+ {{ $paginator := .Paginate (where .Site.RegularPages "Type" "post") }} + {{ range $paginator.Pages }} + {{ .Render "article" }} + {{ end }} + +
+ {{"" | safeHTML }} + {{ $paginator := .Paginator }} + + {{ $adjacent_links := 2 }} + + {{ $max_links := (add (mul $adjacent_links 2) 1) }} + + {{ $lower_limit := (add $adjacent_links 1) }} + + {{ $upper_limit := (sub $paginator.TotalPages $adjacent_links) }} + + {{ if gt $paginator.TotalPages 1 }} + + {{ end }} + {{"" | safeHTML }} +
+
+
+
+
+
+ + + +{{ if .Site.Params.cta.enable }} +
+
+
+
+
+
+ ...
+
+

{{ .Site.Params.cta.title | markdownify }}

+

{{ .Site.Params.cta.description | markdownify }}

+ {{ if .Site.Params.cta.button.enable }} + {{ .Site.Params.cta.button.label }} + {{ end }} +
+
+
+
+
+
+{{ end }} + + +{{ end }} \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..8b4d104 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,55 @@ +{{ "" | safeHTML }} + +{{ "" | safeHTML }} \ No newline at end of file diff --git a/layouts/partials/toggle.html b/layouts/partials/toggle.html new file mode 100644 index 0000000..8004735 --- /dev/null +++ b/layouts/partials/toggle.html @@ -0,0 +1,201 @@ +
+
+
+
+ +
+
+ +
+
+
+ +
+
+ + + + \ No newline at end of file