+
+
+ {{ .Scratch.Get "IsSingle" }}
+
+ {{- with .Site.Params.homepageImage -}}
+ {{/*
*/}}
+
+
![]()
+
+ {{- end -}}
+
+
{{ .Site.Title }}
+ {{- with .Site.Params.description -}}
+
{{ . | safeHTML }}
+ {{- end -}}
+
+
+
+
+ {{- range first 1 (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) -}}
+ {{ $page := . }}
+
+
+ {{- with .Resources.Match "images/banner.svg" -}}
+ {{ range . }}
+ {{- $image := . -}}
+
+
+
+ {{- end -}}
+ {{- end -}}
+
+
+
{{ $page.Date.Format "January 2, 2006" }}
+
+
+
+ {{ $page.Summary }}
+
+
+
+ {{- end -}}
+
+
+
+ {{ range after 1 (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
+
+ {{ .Render "card" }}
+
+ {{ end }}
+
+
+
+{{ end }}
diff --git a/layouts/partials/authors.html b/layouts/partials/authors.html
new file mode 100644
index 0000000..5edaf18
--- /dev/null
+++ b/layouts/partials/authors.html
@@ -0,0 +1,39 @@
+{{- if .Params.authors -}}
+
+ {{- range .Params.authors -}}
+ {{- with $.Site.GetPage (printf "/authors/%s" (. | urlize)) -}}
+ {{- $term := . -}}
+ -
+
+
+ {{- end -}}
+ {{- end -}}
+
+{{- end -}}
diff --git a/layouts/partials/css.html b/layouts/partials/css.html
new file mode 100644
index 0000000..b0b51c1
--- /dev/null
+++ b/layouts/partials/css.html
@@ -0,0 +1,3 @@
+
+
+
diff --git a/layouts/partials/foot.html b/layouts/partials/foot.html
new file mode 100644
index 0000000..16b1318
--- /dev/null
+++ b/layouts/partials/foot.html
@@ -0,0 +1,12 @@
+{{ with index .Site.Data "panaetius-theme" }}
+ {{ range $vendor := .assets }}
+ {{ if $vendor.js }}
+
+ {{ end }}
+ {{ end }}
+{{ end }}
+
+{{ range .Site.Params.customJS -}}
+
+{{ end }}
+
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
new file mode 100644
index 0000000..c8400ae
--- /dev/null
+++ b/layouts/partials/footer.html
@@ -0,0 +1,58 @@
+
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
new file mode 100644
index 0000000..4353365
--- /dev/null
+++ b/layouts/partials/head.html
@@ -0,0 +1,165 @@
+
+
+
+
+ {{- block "title" . -}}
+ {{- with .Params.Title -}} {{ . }} | {{ end }}
+ {{- .Site.Title -}}
+ {{- end -}}
+
+
+
+{{ $scratch := newScratch }}
+{{ with .Params.Title }}
+{{ $scratch.Set "title" . }}
+{{ $scratch.Add "title" " | " }}
+{{ end }}
+{{ $scratch.Add "title" .Site.Title }}
+
+
+
+
+
+
+
+
+{{ if .Description }}
+{{ $scratch.Set "description" .Description}}
+{{ else if .Site.Params.description }}
+{{ $scratch.Set "description" .Site.Params.description }}
+{{ end }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{{ range .AllTranslations }}
+
+{{ end }}
+
+
+{{ with .Params.images }}
+{{ $image := index . 0 }}
+
+
+
+
+{{ else }}
+
+
+
+
+{{ end }}
+
+
+
+
+
+{{ with .OutputFormats.Get "RSS" }}
+
+
+{{ end }}
+
+
+{{ if eq .Section "post" }}
+
+{{ $paginator := .Paginate (where .Pages "Section" "post") }}
+{{ if $paginator }}
+
+
+{{ if $paginator.HasPrev }}
+
+{{end }}
+{{ if $paginator.HasNext }}
+
+{{end }}
+{{end }}
+
+
+
+
+{{ if .Params.authors }}
+{{ $authors := delimit .Params.authors ", " }}
+
+
+
+{{ else }}
+{{ $authors := .Site.Params.author }}
+
+
+
+{{ end }}
+{{ end }}
+
+
+{{ if ne .Section "post" }}
+
+
+{{ end }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{{ if .Site.Params.prismJS.enable }}
+{{ if .Site.Params.prismJS.theme }}
+
+{{ else }}
+
+{{ end }}
+{{ end }}
+
+{{ with index .Site.Data "panaetius-theme" }}
+{{ range $vendor := .assets }}
+{{ if $vendor.css }}
+
+{{ end }}
+{{ end }}
+{{ end }}
+
+{{ range .Site.Params.customCSS -}}
+
+{{ end }}
+
+
+{{- with .OutputFormats.Get "RSS" }}
+
+
+{{- end -}}
+
+{{- template "_internal/opengraph.html" . -}}
+{{- template "_internal/google_news.html" . -}}
+{{- template "_internal/schema.html" . -}}
+{{- template "_internal/twitter_cards.html" . -}}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
new file mode 100644
index 0000000..59b072a
--- /dev/null
+++ b/layouts/partials/header.html
@@ -0,0 +1,26 @@
+{{ $current := . }}
+
diff --git a/layouts/partials/i18nlist.html b/layouts/partials/i18nlist.html
new file mode 100644
index 0000000..486e1f3
--- /dev/null
+++ b/layouts/partials/i18nlist.html
@@ -0,0 +1,6 @@
+{{ if .IsTranslated }}
+ {{ range .Translations }}
+
{{ .Lang }}
+
+ {{ end}}
+{{ end }}
diff --git a/layouts/partials/js.html b/layouts/partials/js.html
new file mode 100644
index 0000000..7b3498b
--- /dev/null
+++ b/layouts/partials/js.html
@@ -0,0 +1,9 @@
+
+
+
+
diff --git a/layouts/partials/related.html b/layouts/partials/related.html
new file mode 100644
index 0000000..9dbae44
--- /dev/null
+++ b/layouts/partials/related.html
@@ -0,0 +1,10 @@
+{{- $related := .Site.RegularPages.Related . | first 3 -}}
+{{- with $related -}}
+
+ {{- range . -}}
+
+ {{ .Render "card" }}
+
+ {{- end -}}
+
+{{- end -}}
diff --git a/layouts/partials/schema.html b/layouts/partials/schema.html
new file mode 100644
index 0000000..0ec7ada
--- /dev/null
+++ b/layouts/partials/schema.html
@@ -0,0 +1,40 @@
+
diff --git a/layouts/partials/sharer.html b/layouts/partials/sharer.html
new file mode 100644
index 0000000..f13030b
--- /dev/null
+++ b/layouts/partials/sharer.html
@@ -0,0 +1,24 @@
+{{- if and .Site.Params.share (ne .Params.share false) -}}
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+
+{{- end -}}
diff --git a/layouts/post/card.html b/layouts/post/card.html
new file mode 100644
index 0000000..b2a7076
--- /dev/null
+++ b/layouts/post/card.html
@@ -0,0 +1,18 @@
+
diff --git a/layouts/post/single.html b/layouts/post/single.html
new file mode 100644
index 0000000..40be301
--- /dev/null
+++ b/layouts/post/single.html
@@ -0,0 +1,75 @@
+{{ define "main" }}
+
+ {{ $page := . }}
+
+
+
+
+
+
+
{{ $page.Date.Format "January 2, 2006" }}
+
{{ T "wordCount" $page.WordCount }}
+
{{ T "readingTime" $page.ReadingTime }}
+
+
+
{{ $page.Title }}
+
+ {{ partial "authors.html" $page }}
+
+
+
+ {{- with .Resources.Match "images/banner.svg" -}}
+ {{ range . }}
+
+
+
![{{ $page.Title }}]()
+
+
+ {{- end -}}
+ {{- end -}}
+
+ {{- with $page.Params.tags -}}
+
+ {{- end -}}
+
+
+
+
+ {{ $page.Content }}
+
+
+ {{ partial "sharer.html" . }}
+
+
+
+
+
+ {{ template "_internal/disqus.html" . }}
+
+
+
+ {{- if .Site.Params.commento.enable -}}
+
+ {{- end -}}
+
+
+
+
+ {{ partial "related.html" $page }}
+
+{{ end }}
diff --git a/layouts/search/single.html b/layouts/search/single.html
new file mode 100644
index 0000000..2c23b9f
--- /dev/null
+++ b/layouts/search/single.html
@@ -0,0 +1,100 @@
+{{ define "main" }}
+
+
+
+
+
+
+
+
+ {{ $p := slice }}
+ {{ range (where .Site.RegularPages "Section" "==" "post") }}
+ {{ $.Scratch.Set "image" .RelPermalink }}
+ {{ $.Scratch.Add "image" (index .Params.images 0) }}
+ {{ $post := dict "link" .RelPermalink "author" (index .Params.authors 0) "tags" .Params.tags "title" .Title "date" (.Params.date.Format "January 2, 2006") "image" ($.Scratch.Get "image") "content" (substr .Plain 0 200) -}}
+ {{ $p = $p | append $post -}}
+ {{ end }}
+ {{ $p | jsonify }}
+
+
+
+
+{{ end }}
diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html
new file mode 100644
index 0000000..c68f5b0
--- /dev/null
+++ b/layouts/shortcodes/figure.html
@@ -0,0 +1,27 @@
+
+
+
+
+ {{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}}
+
+ {{ with (.Get "title") -}}
+ {{ . }}
+ {{- end -}}
+ {{- if or (.Get "caption") (.Get "attr") -}}
+ {{- .Get "caption" | markdownify -}}
+ {{- with .Get "attrlink" }}
+
+ {{- end -}}
+ {{- .Get "attr" | markdownify -}}
+ {{- if .Get "attrlink" }}{{ end }}
+ {{- end }}
+
+ {{- end }}
+
diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html
new file mode 100644
index 0000000..518226a
--- /dev/null
+++ b/layouts/shortcodes/img.html
@@ -0,0 +1,5 @@
+{{ $img := $.Page.Resources.GetMatch (.Get 0)}}
+
+
+ {{.Get 1}}
+
diff --git a/layouts/tags/tag-card.html b/layouts/tags/tag-card.html
new file mode 100644
index 0000000..dc18e10
--- /dev/null
+++ b/layouts/tags/tag-card.html
@@ -0,0 +1,10 @@
+
+ {{ $page := . }}
+ {{ range $name, $taxonomy := .Site.Taxonomies.tags }}
+
+
+
{{ $name }}
+
+
+ {{ end }}
+
diff --git a/layouts/tags/terms.html b/layouts/tags/terms.html
new file mode 100644
index 0000000..f901a47
--- /dev/null
+++ b/layouts/tags/terms.html
@@ -0,0 +1,30 @@
+{{ define "main" }}
+
+ {{- if or .Title .Content -}}
+
+
+ {{ with .Title }}
{{ . }}
{{ end }}
+ {{- with .Content -}}
+
+ {{ . }}
+
+ {{- end -}}
+
+
+ {{- end -}}
+
+ {{ range $name, $taxonomy := .Site.Taxonomies.tags }}
+
+ {{ end }}
+
+
+
+{{ end }}