diff --git a/layouts/_default/index.html b/layouts/_default/index.html new file mode 100644 index 0000000..e0d7c74 --- /dev/null +++ b/layouts/_default/index.html @@ -0,0 +1,32 @@ +{{ define "main" }} +{{ .Content -}} +
+ {{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "rambles") (eq (trim $.Site.Params.contentTypeName " ") "")) }} + {{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "rambles" }} + + {{ $PageContext := . }} + {{ if .IsHome }} + {{ $PageContext = .Site }} + {{ end }} + + {{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }} + + {{ range first 5 .Paginator.Pages }} + + + + + + + + {{ end }} +
{{ .Title | markdownify}}{{ .Params.Date.Format "2006-01-02" }}{{ .Params.Author }} {{ range .Params.tags }} #{{ . }}  {{ end }}
+

Read more

+
+ {{ partial "stickers.html" }} + +{{ end }}