diff --git a/.github/workflows/firebase-preview.yml b/.github/workflows/firebase-preview.yml index 8f40a12a..bfdcee2e 100644 --- a/.github/workflows/firebase-preview.yml +++ b/.github/workflows/firebase-preview.yml @@ -7,7 +7,7 @@ jobs: steps: - name: Hugo setup - uses: peaceiris/actions-hugo@v2.4.12 + uses: peaceiris/actions-hugo@v2.6.0 env: ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' diff --git a/.github/workflows/firebase-production.yml b/.github/workflows/firebase-production.yml index a12b1896..17e6d680 100644 --- a/.github/workflows/firebase-production.yml +++ b/.github/workflows/firebase-production.yml @@ -9,7 +9,7 @@ jobs: steps: - name: Hugo setup - uses: peaceiris/actions-hugo@v2.4.12 + uses: peaceiris/actions-hugo@v2.6.0 env: ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8a343bfe..25e3dd9e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ jobs: fetch-depth: 0 - name: Setup Hugo - uses: peaceiris/actions-hugo@v2 + uses: peaceiris/actions-hugo@v2.6.0 with: hugo-version: "latest" diff --git a/config/_default/config.toml b/config/_default/config.toml index 6c232d4f..3a0a8bea 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -6,6 +6,8 @@ # baseURL = "https://your_domain.com/" defaultContentLanguage = "en" +# pluralizeListTitles = "true" # hugo function useful for non-english languages, find out more in https://gohugo.io/getting-started/configuration/#pluralizelisttitles + enableRobotsTXT = true paginate = 20 summaryLength = 30 diff --git a/config/_default/params.toml b/config/_default/params.toml index c5d2631c..e36329e2 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -65,7 +65,7 @@ enableCodeCopy = true showAuthorsBadges = false showWordCount = true showSummary = true - sharingLinks = [ "linkedin", "twitter", "whatsapp", "pinterest", "reddit", "facebook", "email"] + sharingLinks = [ "linkedin", "twitter", "reddit", "pinterest", "facebook", "email"] [list] #showHero = true diff --git a/data/sharing.json b/data/sharing.json index 7a43b491..5c89852b 100644 --- a/data/sharing.json +++ b/data/sharing.json @@ -1,34 +1,32 @@ { - "links": { - "email": { - "icon": "email", - "title": "sharing.email", - "url": "mailto:?body=%s&subject=%s" - }, - "facebook": { - "icon": "facebook", - "title": "sharing.facebook", - "url": "https://www.facebook.com/sharer/sharer.php?u=%s"e=%s" - }, - "linkedin": { - "icon": "linkedin", - "title": "sharing.linkedin", - "url": "https://www.linkedin.com/shareArticle?mini=true&url=%s&title=%s" - }, - "pinterest": { - "icon": "pinterest", - "title": "sharing.pinterest", - "url": "https://pinterest.com/pin/create/bookmarklet/?url=%s&description=%s" - }, - "reddit": { - "icon": "reddit", - "title": "sharing.reddit", - "url": "https://reddit.com/submit/?url=%s&resubmit=true&title=%s" - }, - "twitter": { - "icon": "twitter", - "title": "sharing.twitter", - "url": "https://twitter.com/intent/tweet/?url=%s&text=%s" - } + "email": { + "icon": "email", + "title": "sharing.email", + "url": "mailto:?body=%s&subject=%s" + }, + "facebook": { + "icon": "facebook", + "title": "sharing.facebook", + "url": "https://www.facebook.com/sharer/sharer.php?u=%s"e=%s" + }, + "linkedin": { + "icon": "linkedin", + "title": "sharing.linkedin", + "url": "https://www.linkedin.com/shareArticle?mini=true&url=%s&title=%s" + }, + "pinterest": { + "icon": "pinterest", + "title": "sharing.pinterest", + "url": "https://pinterest.com/pin/create/bookmarklet/?url=%s&description=%s" + }, + "reddit": { + "icon": "reddit", + "title": "sharing.reddit", + "url": "https://reddit.com/submit/?url=%s&resubmit=true&title=%s" + }, + "twitter": { + "icon": "twitter", + "title": "sharing.twitter", + "url": "https://twitter.com/intent/tweet/?url=%s&text=%s" } -} +} \ No newline at end of file diff --git a/exampleSite/config/_default/config.toml b/exampleSite/config/_default/config.toml index 9af54860..668d0d88 100644 --- a/exampleSite/config/_default/config.toml +++ b/exampleSite/config/_default/config.toml @@ -6,6 +6,8 @@ theme = "blowfish" baseURL = "https://nunocoracao.github.io/blowfish" defaultContentLanguage = "en" +# pluralizeListTitles = "true" # hugo function useful for non-english languages, find out more in https://gohugo.io/getting-started/configuration/#pluralizelisttitles + enableRobotsTXT = true paginate = 20 summaryLength = 30 diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 13d0d64c..efe3a93d 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -64,7 +64,7 @@ defaultBackgroundImage = "/img/iceland.jpg" showAuthorsBadges = true showWordCount = false showSummary = true - sharingLinks = [ "linkedin", "twitter", "whatsapp", "pinterest", "reddit", "facebook", "email"] + sharingLinks = [ "linkedin", "twitter", "reddit", "pinterest", "facebook", "email"] [list] showHero = true diff --git a/exampleSite/content/users/index.md b/exampleSite/content/users/index.md index d2580b7f..966ff6fd 100644 --- a/exampleSite/content/users/index.md +++ b/exampleSite/content/users/index.md @@ -53,6 +53,7 @@ Real websites that are built with Blowfish. | [sdehm.dev](https://sdehm.dev) | Personal site | | [dizzytech.de](https://dizzytech.de) | Personal site | | [blog.rotrixx.eu](https://blog.rotrixx.eu) | Personal site | +| [hexwiki.cz](https://hexwiki.cz/) | Personal site | diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index fff19a32..ce87099c 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -25,7 +25,7 @@
{{ block "main" . }}{{ end }} - {{ if and (.Site.Params.footer.showScrollToTop | default true) (gt .WordCount 200) }} + {{ if and (.Site.Params.footer.showScrollToTop | default true) (gt .WordCount 1) }}
-
+
-
+
{{ partial "partials/header/basic.html" . }}
diff --git a/layouts/partials/series-closed.html b/layouts/partials/series-closed.html index 53fbb3d0..d96f55b2 100644 --- a/layouts/partials/series-closed.html +++ b/layouts/partials/series-closed.html @@ -4,7 +4,9 @@ class="py-1 text-lg font-semibold cursor-pointer bg-primary-200 text-neutral-800 ltr:-ml-5 ltr:pl-5 rtl:-mr-5 rtl:pr-5 dark:bg-primary-800 dark:text-neutral-100"> {{ index .Params.series 0 }} - {{ i18n "article.part_of_series" }} - {{ range $post := sort (index .Site.Taxonomies.series (index .Params.series 0 | urlize)) "Params.series_order" }} + {{ $seriesName := strings.ToLower (index .Params.series 0) }} + {{ $seriesNameURL := strings.Replace $seriesName " " "-" }} + {{ range $post := sort (index .Site.Taxonomies.series $seriesNameURL) "Params.series_order" }} {{ if eq $post.Permalink $.Page.Permalink }}
@@ -21,4 +23,4 @@ {{end}} -{{end}} \ No newline at end of file +{{end}} diff --git a/layouts/partials/series.html b/layouts/partials/series.html index f823e214..f42b93ed 100644 --- a/layouts/partials/series.html +++ b/layouts/partials/series.html @@ -5,7 +5,9 @@ class="py-1 text-lg font-semibold cursor-pointer bg-primary-200 text-neutral-800 ltr:-ml-5 ltr:pl-5 rtl:-mr-5 rtl:pr-5 dark:bg-primary-800 dark:text-neutral-100"> {{ index .Params.series 0 }} - {{ i18n "article.part_of_series" }} - {{ range $post := sort (index .Site.Taxonomies.series (index .Params.series 0 | urlize)) "Params.series_order" }} + {{ $seriesName := strings.ToLower (index .Params.series 0) }} + {{ $seriesNameURL := strings.Replace $seriesName " " "-" }} + {{ range $post := sort (index .Site.Taxonomies.series $seriesNameURL) "Params.series_order" }} {{ if eq $post.Permalink $.Page.Permalink }}
@@ -22,4 +24,4 @@ {{end}} -{{end}} \ No newline at end of file +{{end}} diff --git a/layouts/partials/sharing-links.html b/layouts/partials/sharing-links.html index 91365591..67b29235 100644 --- a/layouts/partials/sharing-links.html +++ b/layouts/partials/sharing-links.html @@ -1,16 +1,17 @@ {{ with .Params.sharingLinks | default (.Site.Params.article.sharingLinks | default false) }} + {{ $links := site.Data.sharing }}
- {{ range $.Site.Data.sharing.links }} - {{ with . }} - - {{ partial "icon.html" .icon }} - + {{ range . }} + {{ with index $links . }} + + {{ partial "icon.html" .icon }} + {{ end }} {{ end }}
diff --git a/package.json b/package.json index fa46078f..df078707 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hugo-blowfish-theme", - "version": "2.22.0", + "version": "2.22.1", "description": "Blowfish theme for Hugo", "scripts": { "fullinstall": "npm run preinstall && npm install && npm run postinstall",