Compare commits

...

19 Commits

Author SHA1 Message Date
Nuno Coração
8da083ad24 Merge pull request #369 from nunocoracao/368-bug-likes-in-taxonomies-and-terms-is-shared-globally
🐛 fixed likes and view counters for taxonomies and terms
2023-01-01 22:24:35 +00:00
Nuno Coração
7049775470 🐛 fixed likes and view counters for taxonomies and terms 2023-01-01 22:23:42 +00:00
Nuno Coração
516988a317 Merge pull request #367 from nunocoracao/dev
🔖 Release v2.22.1
2023-01-01 21:39:33 +00:00
Nuno Coração
32af7dde2b final polish 2023-01-01 21:38:43 +00:00
Nuno Coração
58833a83ca Merge pull request #366 from nunocoracao/361-articlesharinglinks-option-doesnt-work
🐛 fix for sharing links parameter in params.toml config file
2023-01-01 21:33:36 +00:00
Nuno Coração
caa8476e35 🐛 fix for sharing links parameter in params.toml config file 2023-01-01 21:32:56 +00:00
Nuno Coração
7db7ee8034 Merge pull request #360 from pfrogond/dev
 Support for UTF-8 encoded series names; small updates
2023-01-01 21:10:21 +00:00
Nuno Coração
75fc8aba1d Merge pull request #362 from nunocoracao/dependabot/github_actions/dev/peaceiris/actions-hugo-2.6.0
👷 Bump peaceiris/actions-hugo from 2.4.12 to 2.6.0
2023-01-01 21:07:12 +00:00
Nuno Coração
e04e8bd7b5 Merge pull request #364 from maciejopalinski/issue-363-header-logo-mobile
🐛 Fix header with disabled logo on mobile
2023-01-01 21:06:00 +00:00
Maciej Opaliński
eb4554ffc6 fix: Fix header with disabled logo on mobile 2023-01-01 17:44:20 +01:00
Ondřej Pfrogner
b70c031788 Update cs.yaml 2023-01-01 09:03:26 +01:00
dependabot[bot]
797e90cc3e 👷 Bump peaceiris/actions-hugo from 2.4.12 to 2.6.0
Bumps [peaceiris/actions-hugo](https://github.com/peaceiris/actions-hugo) from 2.4.12 to 2.6.0.
- [Release notes](https://github.com/peaceiris/actions-hugo/releases)
- [Changelog](https://github.com/peaceiris/actions-hugo/blob/main/CHANGELOG.md)
- [Commits](https://github.com/peaceiris/actions-hugo/compare/v2.4.12...v2.6.0)

---
updated-dependencies:
- dependency-name: peaceiris/actions-hugo
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-01 05:01:47 +00:00
Ondřej Pfrogner
08ba9d8402 Change so it doesn't affect list pages. 2022-12-31 20:31:47 +01:00
Ondřej Pfrogner
cc51ec03c1 Delete 200 word requirement for scroll to top 2022-12-31 20:14:50 +01:00
Ondřej Pfrogner
ac59cb62b1 Added option to depluralize list names 2022-12-31 18:28:02 +01:00
Ondřej Pfrogner
f592328d6c Better wording 2022-12-31 18:25:23 +01:00
Ondřej Pfrogner
567988d93d Added personal site 2022-12-31 18:24:31 +01:00
Ondřej Pfrogner
1211608786 Support for UTF-8 encoded series names 2022-12-31 18:22:58 +01:00
Ondřej Pfrogner
2039409722 Support for UTF-8 encoded series names 2022-12-31 18:22:23 +01:00
19 changed files with 80 additions and 60 deletions

View File

@@ -7,7 +7,7 @@ jobs:
steps: steps:
- name: Hugo setup - name: Hugo setup
uses: peaceiris/actions-hugo@v2.4.12 uses: peaceiris/actions-hugo@v2.6.0
env: env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'

View File

@@ -9,7 +9,7 @@ jobs:
steps: steps:
- name: Hugo setup - name: Hugo setup
uses: peaceiris/actions-hugo@v2.4.12 uses: peaceiris/actions-hugo@v2.6.0
env: env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'

View File

@@ -16,7 +16,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Setup Hugo - name: Setup Hugo
uses: peaceiris/actions-hugo@v2 uses: peaceiris/actions-hugo@v2.6.0
with: with:
hugo-version: "latest" hugo-version: "latest"

View File

@@ -6,6 +6,8 @@
# baseURL = "https://your_domain.com/" # baseURL = "https://your_domain.com/"
defaultContentLanguage = "en" defaultContentLanguage = "en"
# pluralizeListTitles = "true" # hugo function useful for non-english languages, find out more in https://gohugo.io/getting-started/configuration/#pluralizelisttitles
enableRobotsTXT = true enableRobotsTXT = true
paginate = 20 paginate = 20
summaryLength = 30 summaryLength = 30

View File

@@ -65,7 +65,7 @@ enableCodeCopy = true
showAuthorsBadges = false showAuthorsBadges = false
showWordCount = true showWordCount = true
showSummary = true showSummary = true
sharingLinks = [ "linkedin", "twitter", "whatsapp", "pinterest", "reddit", "facebook", "email"] sharingLinks = [ "linkedin", "twitter", "reddit", "pinterest", "facebook", "email"]
[list] [list]
#showHero = true #showHero = true

View File

@@ -1,34 +1,32 @@
{ {
"links": { "email": {
"email": { "icon": "email",
"icon": "email", "title": "sharing.email",
"title": "sharing.email", "url": "mailto:?body=%s&subject=%s"
"url": "mailto:?body=%s&subject=%s" },
}, "facebook": {
"facebook": { "icon": "facebook",
"icon": "facebook", "title": "sharing.facebook",
"title": "sharing.facebook", "url": "https://www.facebook.com/sharer/sharer.php?u=%s&quote=%s"
"url": "https://www.facebook.com/sharer/sharer.php?u=%s&quote=%s" },
}, "linkedin": {
"linkedin": { "icon": "linkedin",
"icon": "linkedin", "title": "sharing.linkedin",
"title": "sharing.linkedin", "url": "https://www.linkedin.com/shareArticle?mini=true&url=%s&title=%s"
"url": "https://www.linkedin.com/shareArticle?mini=true&url=%s&title=%s" },
}, "pinterest": {
"pinterest": { "icon": "pinterest",
"icon": "pinterest", "title": "sharing.pinterest",
"title": "sharing.pinterest", "url": "https://pinterest.com/pin/create/bookmarklet/?url=%s&description=%s"
"url": "https://pinterest.com/pin/create/bookmarklet/?url=%s&description=%s" },
}, "reddit": {
"reddit": { "icon": "reddit",
"icon": "reddit", "title": "sharing.reddit",
"title": "sharing.reddit", "url": "https://reddit.com/submit/?url=%s&resubmit=true&title=%s"
"url": "https://reddit.com/submit/?url=%s&resubmit=true&title=%s" },
}, "twitter": {
"twitter": { "icon": "twitter",
"icon": "twitter", "title": "sharing.twitter",
"title": "sharing.twitter", "url": "https://twitter.com/intent/tweet/?url=%s&text=%s"
"url": "https://twitter.com/intent/tweet/?url=%s&text=%s"
}
} }
} }

View File

@@ -6,6 +6,8 @@ theme = "blowfish"
baseURL = "https://nunocoracao.github.io/blowfish" baseURL = "https://nunocoracao.github.io/blowfish"
defaultContentLanguage = "en" defaultContentLanguage = "en"
# pluralizeListTitles = "true" # hugo function useful for non-english languages, find out more in https://gohugo.io/getting-started/configuration/#pluralizelisttitles
enableRobotsTXT = true enableRobotsTXT = true
paginate = 20 paginate = 20
summaryLength = 30 summaryLength = 30

View File

@@ -64,7 +64,7 @@ defaultBackgroundImage = "/img/iceland.jpg"
showAuthorsBadges = true showAuthorsBadges = true
showWordCount = false showWordCount = false
showSummary = true showSummary = true
sharingLinks = [ "linkedin", "twitter", "whatsapp", "pinterest", "reddit", "facebook", "email"] sharingLinks = [ "linkedin", "twitter", "reddit", "pinterest", "facebook", "email"]
[list] [list]
showHero = true showHero = true

View File

@@ -53,6 +53,7 @@ Real websites that are built with Blowfish.
| [sdehm.dev](https://sdehm.dev) | Personal site | | [sdehm.dev](https://sdehm.dev) | Personal site |
| [dizzytech.de](https://dizzytech.de) | Personal site | | [dizzytech.de](https://dizzytech.de) | Personal site |
| [blog.rotrixx.eu](https://blog.rotrixx.eu) | Personal site | | [blog.rotrixx.eu](https://blog.rotrixx.eu) | Personal site |
| [hexwiki.cz](https://hexwiki.cz/) | Personal site |

View File

@@ -25,7 +25,7 @@
<div class="relative flex flex-col grow"> <div class="relative flex flex-col grow">
<main id="main-content" class="grow"> <main id="main-content" class="grow">
{{ block "main" . }}{{ end }} {{ 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) }}
<div class="pointer-events-none absolute top-[100vh] bottom-0 w-12 ltr:right-0 rtl:left-0"> <div class="pointer-events-none absolute top-[100vh] bottom-0 w-12 ltr:right-0 rtl:left-0">
<a href="#the-top" <a href="#the-top"
class="pointer-events-auto sticky top-[calc(100vh-5.5rem)] flex h-12 w-12 mb-16 items-center justify-center rounded-full bg-neutral/50 text-xl text-neutral-700 backdrop-blur hover:text-primary-600 dark:bg-neutral-800/50 dark:text-neutral dark:hover:text-primary-400" class="pointer-events-auto sticky top-[calc(100vh-5.5rem)] flex h-12 w-12 mb-16 items-center justify-center rounded-full bg-neutral/50 text-xl text-neutral-700 backdrop-blur hover:text-primary-600 dark:bg-neutral-800/50 dark:text-neutral dark:hover:text-primary-400"

View File

@@ -30,8 +30,8 @@
</section> </section>
{{ end }} {{ end }}
<script> <script>
var oid = "views_{{ .File.Path }}" var oid = "views_taxonomy_{{ .Data.Plural }}"
var oid_likes = "likes_{{ .File.Path }}" var oid_likes = "likes_taxonomy_{{ .Data.Plural }}"
</script> </script>
{{ $jsPage := resources.Get "js/page.js" }} {{ $jsPage := resources.Get "js/page.js" }}
{{ $jsPage = $jsPage | resources.Minify | resources.Fingerprint "sha512" }} {{ $jsPage = $jsPage | resources.Minify | resources.Fingerprint "sha512" }}

View File

@@ -28,8 +28,8 @@
</div> </div>
{{ end }} {{ end }}
<script> <script>
var oid = "views_{{ .File.Path }}" var oid = "views_term_{{ .Data.Term }}"
var oid_likes = "likes_{{ .File.Path }}" var oid_likes = "likes_term_{{ .Data.Term }}"
</script> </script>
{{ $jsPage := resources.Get "js/page.js" }} {{ $jsPage := resources.Get "js/page.js" }}
{{ $jsPage = $jsPage | resources.Minify | resources.Fingerprint "sha512" }} {{ $jsPage = $jsPage | resources.Minify | resources.Fingerprint "sha512" }}

View File

@@ -1,7 +1,7 @@
<div class="min-h-[148px]"></div> <div class="min-h-[148px]"></div>
<div class="fixed inset-x-0 h-[120px] pl-[24px] pr-[24px] sbackdrop-blur-xl sshadown-2xl" style="z-index:100"> <div class="fixed inset-x-0 pl-[24px] pr-[24px] sbackdrop-blur-xl sshadown-2xl" style="z-index:100">
<div id="menu-blur" class="absolute opacity-0 inset-x-0 top-0 h-full single_hero_background nozoom backdrop-blur-2xl shadow-2xl"></div> <div id="menu-blur" class="absolute opacity-0 inset-x-0 top-0 h-full single_hero_background nozoom backdrop-blur-2xl shadow-2xl"></div>
<div class="relative max-w-[64rem] h-[100px] ml-auto mr-auto"> <div class="relative max-w-[64rem] ml-auto mr-auto">
{{ partial "partials/header/basic.html" . }} {{ partial "partials/header/basic.html" . }}
</div> </div>
</div> </div>

View File

@@ -1,5 +1,11 @@
<span> <span>
{{ if eq .Kind "taxonomy"}}
<span id="likes_taxonomy_{{ .Page.Data.Plural }}" title="likes">0</span>
{{ else if eq .Kind "term"}}
<span id="likes_term_{{ .Page.Data.Term }}" title="likes">0</span>
{{ else }}
<span id="likes_{{ .File.Path }}" title="likes">0</span> <span id="likes_{{ .File.Path }}" title="likes">0</span>
{{ end }}
<span class="inline-block align-text-bottom">{{ partial "icon.html" "heart" }}</span> <span class="inline-block align-text-bottom">{{ partial "icon.html" "heart" }}</span>
</span> </span>
{{- /* Trim EOF */ -}} {{- /* Trim EOF */ -}}

View File

@@ -1,5 +1,11 @@
<span> <span>
{{ if eq .Kind "taxonomy"}}
<span id="views_taxonomy_{{ .Page.Data.Plural }}" title="views">0</span>
{{ else if eq .Kind "term"}}
<span id="views_term_{{ .Page.Data.Term }}" title="views">0</span>
{{ else }}
<span id="views_{{ .File.Path }}" title="views">0</span> <span id="views_{{ .File.Path }}" title="views">0</span>
{{ end }}
<span class="inline-block align-text-bottom">{{ partial "icon.html" "eye" }}</span> <span class="inline-block align-text-bottom">{{ partial "icon.html" "eye" }}</span>
</span> </span>
{{- /* Trim EOF */ -}} {{- /* Trim EOF */ -}}

View File

@@ -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"> 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" }} {{ index .Params.series 0 }} - {{ i18n "article.part_of_series" }}
</summary> </summary>
{{ 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 }} {{ if eq $post.Permalink $.Page.Permalink }}
<div <div
class="py-1 border-dotted border-neutral-300 ltr:-ml-5 ltr:border-l ltr:pl-5 rtl:-mr-5 rtl:border-r rtl:pr-5 dark:border-neutral-600"> class="py-1 border-dotted border-neutral-300 ltr:-ml-5 ltr:border-l ltr:pl-5 rtl:-mr-5 rtl:border-r rtl:pr-5 dark:border-neutral-600">
@@ -21,4 +23,4 @@
{{end}} {{end}}
</details> </details>
{{end}} {{end}}

View File

@@ -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"> 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" }} {{ index .Params.series 0 }} - {{ i18n "article.part_of_series" }}
</summary> </summary>
{{ 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 }} {{ if eq $post.Permalink $.Page.Permalink }}
<div <div
class="py-1 border-dotted border-neutral-300 ltr:-ml-5 ltr:border-l ltr:pl-5 rtl:-mr-5 rtl:border-r rtl:pr-5 dark:border-neutral-600"> class="py-1 border-dotted border-neutral-300 ltr:-ml-5 ltr:border-l ltr:pl-5 rtl:-mr-5 rtl:border-r rtl:pr-5 dark:border-neutral-600">
@@ -22,4 +24,4 @@
{{end}} {{end}}
</details> </details>
{{end}} {{end}}

View File

@@ -1,16 +1,17 @@
{{ with .Params.sharingLinks | default (.Site.Params.article.sharingLinks | default false) }} {{ with .Params.sharingLinks | default (.Site.Params.article.sharingLinks | default false) }}
{{ $links := site.Data.sharing }}
<section class="flex flex-row flex-wrap justify-center pt-4 text-xl"> <section class="flex flex-row flex-wrap justify-center pt-4 text-xl">
{{ range $.Site.Data.sharing.links }} {{ range . }}
{{ with . }} {{ with index $links . }}
<a <a
target="_blank" target="_blank"
class="m-1 rounded bg-neutral-300 p-1.5 text-neutral-700 hover:bg-primary-500 hover:text-neutral dark:bg-neutral-700 dark:text-neutral-300 dark:hover:bg-primary-400 dark:hover:text-neutral-800" class="m-1 rounded bg-neutral-300 p-1.5 text-neutral-700 hover:bg-primary-500 hover:text-neutral dark:bg-neutral-700 dark:text-neutral-300 dark:hover:bg-primary-400 dark:hover:text-neutral-800"
href="{{ printf .url $.Permalink $.Title }}" href="{{ printf .url $.Permalink $.Title }}"
title="{{ i18n .title }}" title="{{ i18n .title }}"
aria-label="{{ i18n .title }}" aria-label="{{ i18n .title }}"
> >
{{ partial "icon.html" .icon }} {{ partial "icon.html" .icon }}
</a> </a>
{{ end }} {{ end }}
{{ end }} {{ end }}
</section> </section>

View File

@@ -1,6 +1,6 @@
{ {
"name": "hugo-blowfish-theme", "name": "hugo-blowfish-theme",
"version": "2.22.0", "version": "2.22.2",
"description": "Blowfish theme for Hugo", "description": "Blowfish theme for Hugo",
"scripts": { "scripts": {
"fullinstall": "npm run preinstall && npm install && npm run postinstall", "fullinstall": "npm run preinstall && npm install && npm run postinstall",