From b54ae4a6a05d7545dae42004eddb4fb7722aba57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Mon, 17 Oct 2022 19:43:29 +0100 Subject: [PATCH 1/3] initial commit of series --- config/_default/config.toml | 1 + exampleSite/config/_default/config.toml | 1 + .../docs/advanced-customisation/index.md | 2 ++ .../content/docs/configuration/index.md | 2 ++ .../content/docs/getting-started/index.md | 2 ++ exampleSite/content/docs/welcome/index.md | 2 ++ layouts/_default/single.html | 21 ++++++++++--------- layouts/partials/series.html | 20 ++++++++++++++++++ 8 files changed, 41 insertions(+), 10 deletions(-) create mode 100644 layouts/partials/series.html diff --git a/config/_default/config.toml b/config/_default/config.toml index 8197c0e3..a15aa912 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -18,6 +18,7 @@ buildFuture = false tag = "tags" category = "categories" author = "authors" + series = "series" [sitemap] changefreq = 'daily' diff --git a/exampleSite/config/_default/config.toml b/exampleSite/config/_default/config.toml index 3579b36d..9e99e1b8 100644 --- a/exampleSite/config/_default/config.toml +++ b/exampleSite/config/_default/config.toml @@ -19,6 +19,7 @@ googleAnalytics = "G-PEDMYR1V0K" tag = "tags" category = "categories" author = "authors" + series = "series" [sitemap] changefreq = 'always' diff --git a/exampleSite/content/docs/advanced-customisation/index.md b/exampleSite/content/docs/advanced-customisation/index.md index 4302086f..2e37c3b6 100644 --- a/exampleSite/content/docs/advanced-customisation/index.md +++ b/exampleSite/content/docs/advanced-customisation/index.md @@ -5,6 +5,8 @@ draft: false description: "Learn how to build Blowfish manually." slug: "advanced-customisation" tags: ["advanced", "css", "docs"] +series: ["Docs"] +series_order: 4 --- There are many ways you can make advanced changes to Blowfish. Read below to learn more about what can be customised and the best way of achieving your desired result. diff --git a/exampleSite/content/docs/configuration/index.md b/exampleSite/content/docs/configuration/index.md index d15c8cf0..fe39d2bb 100644 --- a/exampleSite/content/docs/configuration/index.md +++ b/exampleSite/content/docs/configuration/index.md @@ -5,6 +5,8 @@ draft: false description: "All the configuration variables available in Blowfish." slug: "configuration" tags: ["config", "docs"] +series: ["Docs"] +series_order: 2 --- Blowfish is a highly customisable theme and uses some of the latest Hugo features to simplify how it is configured. diff --git a/exampleSite/content/docs/getting-started/index.md b/exampleSite/content/docs/getting-started/index.md index 36990320..fa95678a 100644 --- a/exampleSite/content/docs/getting-started/index.md +++ b/exampleSite/content/docs/getting-started/index.md @@ -5,6 +5,8 @@ draft: false description: "All the front matter variables available in Blowfish." slug: "getting-started" tags: ["installation", "docs"] +series: ["Docs"] +series_order: 3 --- {{< alert >}} diff --git a/exampleSite/content/docs/welcome/index.md b/exampleSite/content/docs/welcome/index.md index 7975b4a8..ac1f470f 100644 --- a/exampleSite/content/docs/welcome/index.md +++ b/exampleSite/content/docs/welcome/index.md @@ -4,6 +4,8 @@ date: 2022-01-19 draft: false description: "Discover what's new in Blowfish version 2.0." tags: ["new", "docs"] +series: ["Docs"] +series_order: 1 --- {{< lead >}} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 4766d4a4..d55201d1 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,11 +2,11 @@
{{ if .Params.showHero | default (.Site.Params.article.showHero | default false) }} {{ $heroStyle := print "partials/hero/" .Site.Params.article.heroStyle ".html" }} - {{ if templates.Exists $heroStyle }} - {{ partial $heroStyle . }} - {{ else }} - {{ partial "partials/hero/basic.html" . }} - {{ end }} + {{ if templates.Exists $heroStyle }} + {{ partial $heroStyle . }} + {{ else }} + {{ partial "partials/hero/basic.html" . }} + {{ end }} {{- end -}}
{{ if .Params.showBreadcrumbs | default (.Site.Params.article.showBreadcrumbs | default false) }} @@ -28,6 +28,7 @@ {{ end }}
+ {{ partial "series.html" . }} {{ .Content | emojify }}