From dea4a61cbf42ff422f1409d4342fa59017950526 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Mon, 2 Nov 2020 18:37:23 -0300 Subject: Changed theme to Archie, moving blog to rogs.me --- themes/archie/layouts/404.html | 0 themes/archie/layouts/_default/baseof.html | 11 +++++ themes/archie/layouts/_default/list.html | 17 +++++++ themes/archie/layouts/_default/single.html | 33 ++++++++++++++ themes/archie/layouts/_default/term.html | 17 +++++++ themes/archie/layouts/_default/terms.html | 20 ++++++++ themes/archie/layouts/index.html | 21 +++++++++ themes/archie/layouts/partials/footer.html | 42 +++++++++++++++++ themes/archie/layouts/partials/head.html | 11 +++++ themes/archie/layouts/partials/header.html | 66 +++++++++++++++++++++++++++ themes/archie/layouts/partials/paginator.html | 15 ++++++ themes/archie/layouts/shortcodes/callout.html | 6 +++ 12 files changed, 259 insertions(+) create mode 100644 themes/archie/layouts/404.html create mode 100644 themes/archie/layouts/_default/baseof.html create mode 100644 themes/archie/layouts/_default/list.html create mode 100644 themes/archie/layouts/_default/single.html create mode 100644 themes/archie/layouts/_default/term.html create mode 100644 themes/archie/layouts/_default/terms.html create mode 100644 themes/archie/layouts/index.html create mode 100644 themes/archie/layouts/partials/footer.html create mode 100644 themes/archie/layouts/partials/head.html create mode 100644 themes/archie/layouts/partials/header.html create mode 100644 themes/archie/layouts/partials/paginator.html create mode 100644 themes/archie/layouts/shortcodes/callout.html (limited to 'themes/archie/layouts') diff --git a/themes/archie/layouts/404.html b/themes/archie/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/archie/layouts/_default/baseof.html b/themes/archie/layouts/_default/baseof.html new file mode 100644 index 0000000..b941097 --- /dev/null +++ b/themes/archie/layouts/_default/baseof.html @@ -0,0 +1,11 @@ + + + {{- partial "header.html" . -}} + +
+ {{- partial "head.html" . -}} + {{- block "main" . }}{{- end }} + {{- partial "footer.html" . -}} +
+ + diff --git a/themes/archie/layouts/_default/list.html b/themes/archie/layouts/_default/list.html new file mode 100644 index 0000000..41a4c6f --- /dev/null +++ b/themes/archie/layouts/_default/list.html @@ -0,0 +1,17 @@ +{{ define "main" }} +{{ if isset .Data "Term" }} +

Entries tagged - "{{ .Data.Term }}"

+{{ else }} +

All articles

+{{ end }} + + +{{ end }} diff --git a/themes/archie/layouts/_default/single.html b/themes/archie/layouts/_default/single.html new file mode 100644 index 0000000..e072801 --- /dev/null +++ b/themes/archie/layouts/_default/single.html @@ -0,0 +1,33 @@ +{{ define "main" }} +
+
+
+

{{ .Title }}

+
Posted on {{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} DRAFT {{ end }}
+
+ {{ if isset .Params "tldr" }} +
+ tl;dr: + {{ .Params.tldr }} +
{{ end }} + +
+ {{ .Content }} +
+ + +
+
+{{ end }} diff --git a/themes/archie/layouts/_default/term.html b/themes/archie/layouts/_default/term.html new file mode 100644 index 0000000..41a4c6f --- /dev/null +++ b/themes/archie/layouts/_default/term.html @@ -0,0 +1,17 @@ +{{ define "main" }} +{{ if isset .Data "Term" }} +

Entries tagged - "{{ .Data.Term }}"

+{{ else }} +

All articles

+{{ end }} + + +{{ end }} diff --git a/themes/archie/layouts/_default/terms.html b/themes/archie/layouts/_default/terms.html new file mode 100644 index 0000000..fea9c2f --- /dev/null +++ b/themes/archie/layouts/_default/terms.html @@ -0,0 +1,20 @@ +{{ define "main" }} +

All tags

+ +{{ $biggest := 1 }} +{{ $smallest := 1 }} +{{ $max := 3 }} +{{ $min := 1 }} +{{ $size := $min }} + +{{ $data := .Data }} +
+ +
+{{ end }} diff --git a/themes/archie/layouts/index.html b/themes/archie/layouts/index.html new file mode 100644 index 0000000..ac7eab1 --- /dev/null +++ b/themes/archie/layouts/index.html @@ -0,0 +1,21 @@ + + + {{ partial "header.html" . }} + +
+ {{ partial "head.html" . }} + +
+
+
+ {{ .Content }} +
+ +
+
+ + {{ partial "footer.html" . }} +
+ + + diff --git a/themes/archie/layouts/partials/footer.html b/themes/archie/layouts/partials/footer.html new file mode 100644 index 0000000..6063791 --- /dev/null +++ b/themes/archie/layouts/partials/footer.html @@ -0,0 +1,42 @@ + +{{ if not .Site.IsServer }} + + + + +{{ end }} + +{{- if (isset .Site.Params "social") -}} + +{{- end -}} diff --git a/themes/archie/layouts/partials/head.html b/themes/archie/layouts/partials/head.html new file mode 100644 index 0000000..20fde3e --- /dev/null +++ b/themes/archie/layouts/partials/head.html @@ -0,0 +1,11 @@ +
+ + +
diff --git a/themes/archie/layouts/partials/header.html b/themes/archie/layouts/partials/header.html new file mode 100644 index 0000000..7234f29 --- /dev/null +++ b/themes/archie/layouts/partials/header.html @@ -0,0 +1,66 @@ + + + + {{- $title := ( .Title ) -}} + {{- $siteTitle := ( .Site.Title ) -}} + {{- if .IsHome -}} + {{ $siteTitle }} | Home + {{- else -}} + {{ $title }} - {{ $siteTitle }} + {{- end -}} + + {{- if isset .Site.Params "favicon" -}} + + {{- end -}} + + + + + + + + + + + + + + + + {{ with .OutputFormats.Get "rss" -}} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ end -}} + + {{- template "_internal/opengraph.html" . -}} + {{- template "_internal/twitter_cards.html" . -}} + {{ if and (isset .Site.Params "social") (.Site.Params.useCDN | default false) -}} + + {{- else if (isset .Site.Params "social") -}} + + {{ end }} + {{ if .Site.Params.useCDN | default false -}} + + + + {{- else -}} + + {{ end }} + + {{- if or (eq .Site.Params.mode "auto") (eq .Site.Params.mode "dark") -}} + + {{ end }} + + {{- if isset .Site.Params "customcss" }} + {{ range .Site.Params.customCSS }} + + {{ end }} + {{- end -}} + {{- range .Site.Params.customJS }} + {{- if or (hasPrefix . "http://") (hasPrefix . "https://") }} + + {{- else }} + + {{- end }} + {{- end }} + + diff --git a/themes/archie/layouts/partials/paginator.html b/themes/archie/layouts/partials/paginator.html new file mode 100644 index 0000000..5acc06d --- /dev/null +++ b/themes/archie/layouts/partials/paginator.html @@ -0,0 +1,15 @@ +{{ $pag := $.Paginator }} +{{ if gt $pag.TotalPages 1 }} + +{{ end }} diff --git a/themes/archie/layouts/shortcodes/callout.html b/themes/archie/layouts/shortcodes/callout.html new file mode 100644 index 0000000..5557aad --- /dev/null +++ b/themes/archie/layouts/shortcodes/callout.html @@ -0,0 +1,6 @@ + +
+
+ 💡 {{ .Get "text" }} +
+
\ No newline at end of file -- cgit v1.2.3