From 60fe49ea3af38d4a7d5e8de1cdb72887b167b22d Mon Sep 17 00:00:00 2001 From: gabrielgio Date: Sat, 11 Jul 2020 22:35:14 +0200 Subject: Moving from jekyll to hugo --- themes/flamingo/layouts/_default/baseof.html | 70 ++++++++++++++++++++++++++ themes/flamingo/layouts/_default/list.html | 17 +++++++ themes/flamingo/layouts/_default/projects.html | 22 ++++++++ themes/flamingo/layouts/_default/single.html | 32 ++++++++++++ themes/flamingo/layouts/_default/summary.html | 23 +++++++++ 5 files changed, 164 insertions(+) create mode 100644 themes/flamingo/layouts/_default/baseof.html create mode 100644 themes/flamingo/layouts/_default/list.html create mode 100644 themes/flamingo/layouts/_default/projects.html create mode 100644 themes/flamingo/layouts/_default/single.html create mode 100644 themes/flamingo/layouts/_default/summary.html (limited to 'themes/flamingo/layouts/_default') diff --git a/themes/flamingo/layouts/_default/baseof.html b/themes/flamingo/layouts/_default/baseof.html new file mode 100644 index 0000000..86a82c1 --- /dev/null +++ b/themes/flamingo/layouts/_default/baseof.html @@ -0,0 +1,70 @@ + + + + + + + + + {{ with .Site.Params.favicon }}{{ end }} + + {{ .Title }} | {{ .Site.Params.description }} + {{ with .Site.Params.description }}{{ end }} + {{ with .Site.Params.author }}{{ end }} + + {{ $styles := resources.Get "scss/main.scss" | resources.ToCSS | minify | fingerprint}} + + + + {{ with .OutputFormats.Get "RSS" -}} + {{ printf `` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }} + {{- end }} + + + {{ partial "meta" . }} + + + +
+ {{ partial "header" . }} + {{ block "main" . }}{{ end }} + {{ partial "footer" . }} +
+ + + + + + + + + + + diff --git a/themes/flamingo/layouts/_default/list.html b/themes/flamingo/layouts/_default/list.html new file mode 100644 index 0000000..bdb11bb --- /dev/null +++ b/themes/flamingo/layouts/_default/list.html @@ -0,0 +1,17 @@ +{{ define "main" }} +
+ {{ if (or (eq .Page.Name "Posts") (.Page.IsHome)) }} + {{ partial "post-description.html" }} + {{ else if (eq .Page.Name "Logs") }} + {{ partial "log-description.html" }} + {{ end }} + +
+ {{ range .Paginator.Pages }} + {{ .Render "summary" }} + {{ end }} +
+ +
+ +{{ end }} diff --git a/themes/flamingo/layouts/_default/projects.html b/themes/flamingo/layouts/_default/projects.html new file mode 100644 index 0000000..5d97981 --- /dev/null +++ b/themes/flamingo/layouts/_default/projects.html @@ -0,0 +1,22 @@ +{{ define "main" }} +
+
+ {{- range .Site.Params.projects -}} +
+
+

{{ .name }}

+
+ +

{{ .description }}

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

{{ .Title }}

+ + {{ if .Date }} + + {{ end }} + + {{ partial "tagbar.html" }} + {{ with .Params.tags }} +
+
    + {{ range . }} +
  • {{ . }}
  • + {{ end }} +
+
+ {{ end }} + +
+ {{ .Content }} +
+ +
+ +{{ end }} diff --git a/themes/flamingo/layouts/_default/summary.html b/themes/flamingo/layouts/_default/summary.html new file mode 100644 index 0000000..e010313 --- /dev/null +++ b/themes/flamingo/layouts/_default/summary.html @@ -0,0 +1,23 @@ +
+
+ {{ .Title }} +
+ + + + + + {{ .Date.Format "2" }}{{ if in (slice 1 21 31) .Date.Day}}st{{ else if in (slice 2 22) .Date.Day}}nd{{ else if in (slice 3 23) .Date.Day}}rd{{ else }}th{{ end }} {{ .Date.Format "Jan, 2006" }} + + + +
-- cgit v1.2.3