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 ++++ themes/flamingo/layouts/index.html | 14 ++ themes/flamingo/layouts/partials/blog-list.html | 8 ++ themes/flamingo/layouts/partials/comments.html | 2 + themes/flamingo/layouts/partials/footer.html | 18 +++ themes/flamingo/layouts/partials/header.html | 27 ++++ .../flamingo/layouts/partials/log-description.html | 3 + themes/flamingo/layouts/partials/meta.html | 148 +++++++++++++++++++++ themes/flamingo/layouts/partials/pagination.html | 9 ++ .../layouts/partials/post-description.html | 29 ++++ themes/flamingo/layouts/partials/sidebar.html | 14 ++ themes/flamingo/layouts/partials/tagbar.html | 10 ++ 16 files changed, 446 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 create mode 100644 themes/flamingo/layouts/index.html create mode 100644 themes/flamingo/layouts/partials/blog-list.html create mode 100644 themes/flamingo/layouts/partials/comments.html create mode 100644 themes/flamingo/layouts/partials/footer.html create mode 100644 themes/flamingo/layouts/partials/header.html create mode 100644 themes/flamingo/layouts/partials/log-description.html create mode 100644 themes/flamingo/layouts/partials/meta.html create mode 100644 themes/flamingo/layouts/partials/pagination.html create mode 100644 themes/flamingo/layouts/partials/post-description.html create mode 100644 themes/flamingo/layouts/partials/sidebar.html create mode 100644 themes/flamingo/layouts/partials/tagbar.html (limited to 'themes/flamingo/layouts') 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" }} + + + +
diff --git a/themes/flamingo/layouts/index.html b/themes/flamingo/layouts/index.html new file mode 100644 index 0000000..523eb38 --- /dev/null +++ b/themes/flamingo/layouts/index.html @@ -0,0 +1,14 @@ +{{ define "main" }} + +
+ {{ partial "post-description.html" }} +
+ {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }} + {{ range .Paginator.Pages }} + {{ .Render "summary" }} + {{ end }} +
+ +
+ +{{ end }} diff --git a/themes/flamingo/layouts/partials/blog-list.html b/themes/flamingo/layouts/partials/blog-list.html new file mode 100644 index 0000000..59bad6e --- /dev/null +++ b/themes/flamingo/layouts/partials/blog-list.html @@ -0,0 +1,8 @@ +
+
+ {{ range .Paginator.Pages }} + {{ .Render "summary" }} + {{ end }} +
+ +
diff --git a/themes/flamingo/layouts/partials/comments.html b/themes/flamingo/layouts/partials/comments.html new file mode 100644 index 0000000..d58db9e --- /dev/null +++ b/themes/flamingo/layouts/partials/comments.html @@ -0,0 +1,2 @@ +
+
diff --git a/themes/flamingo/layouts/partials/footer.html b/themes/flamingo/layouts/partials/footer.html new file mode 100644 index 0000000..4476494 --- /dev/null +++ b/themes/flamingo/layouts/partials/footer.html @@ -0,0 +1,18 @@ + diff --git a/themes/flamingo/layouts/partials/header.html b/themes/flamingo/layouts/partials/header.html new file mode 100644 index 0000000..8f26fb4 --- /dev/null +++ b/themes/flamingo/layouts/partials/header.html @@ -0,0 +1,27 @@ +
+ + + + + {{ with .Site.Menus.main }} + + {{ end }} +
diff --git a/themes/flamingo/layouts/partials/log-description.html b/themes/flamingo/layouts/partials/log-description.html new file mode 100644 index 0000000..1a6e21a --- /dev/null +++ b/themes/flamingo/layouts/partials/log-description.html @@ -0,0 +1,3 @@ +
+

Unimportant, blunt and raw.

+
diff --git a/themes/flamingo/layouts/partials/meta.html b/themes/flamingo/layouts/partials/meta.html new file mode 100644 index 0000000..3f417af --- /dev/null +++ b/themes/flamingo/layouts/partials/meta.html @@ -0,0 +1,148 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + +{{ range .AllTranslations }} + + {{ end }} + + + + + + + + +{{ with .OutputFormats.Get "RSS" }} + + +{{ end }} + + + + +{{ if eq .Section "posts" }} + + + + + + +{{ with .Site.Params.author }} + + + +{{ end }} + + +{{ with .Site.Params.category }} + + +{{ end }} + + +{{ end }} + + +{{ if eq .Section "about" }} + + + + +{{ end }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/themes/flamingo/layouts/partials/pagination.html b/themes/flamingo/layouts/partials/pagination.html new file mode 100644 index 0000000..79f8053 --- /dev/null +++ b/themes/flamingo/layouts/partials/pagination.html @@ -0,0 +1,9 @@ +
+{{ if .Paginator.HasPrev }} + Previous Page +{{ end }} +{{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }} +{{ if .Paginator.HasNext }} + Next Page +{{ end }} +
diff --git a/themes/flamingo/layouts/partials/post-description.html b/themes/flamingo/layouts/partials/post-description.html new file mode 100644 index 0000000..d542877 --- /dev/null +++ b/themes/flamingo/layouts/partials/post-description.html @@ -0,0 +1,29 @@ + +
+

+ A gathering of information about some things I do on my spare time. You + can find me on + + + , + + + + and + + + + . +

+ +
diff --git a/themes/flamingo/layouts/partials/sidebar.html b/themes/flamingo/layouts/partials/sidebar.html new file mode 100644 index 0000000..92bbd80 --- /dev/null +++ b/themes/flamingo/layouts/partials/sidebar.html @@ -0,0 +1,14 @@ + diff --git a/themes/flamingo/layouts/partials/tagbar.html b/themes/flamingo/layouts/partials/tagbar.html new file mode 100644 index 0000000..aa0de7f --- /dev/null +++ b/themes/flamingo/layouts/partials/tagbar.html @@ -0,0 +1,10 @@ +{{ with .Params.tags }} +
+ +
+{{ end }} -- cgit v1.2.3