From d5db97fb2d88c5c36c9dba0d63812b3eb4b7b3ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Wed, 28 Aug 2024 16:56:45 +0100 Subject: [PATCH 1/5] new version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8e3e36158..114314c55 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hugo-blowfish-theme", - "version": "2.76.0", + "version": "2.77.0", "description": "Blowfish theme for Hugo.", "scripts": { "postinstall": "vendor-copy", From 09db4ca3f6b0fc09ad2862cc1a245466a3a0d972 Mon Sep 17 00:00:00 2001 From: Asterisk Date: Thu, 29 Aug 2024 10:10:09 -0400 Subject: [PATCH 2/5] author -> params.author --- exampleSite/content/docs/configuration/index.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/exampleSite/content/docs/configuration/index.md b/exampleSite/content/docs/configuration/index.md index 3b6e77528..925399a67 100644 --- a/exampleSite/content/docs/configuration/index.md +++ b/exampleSite/content/docs/configuration/index.md @@ -136,16 +136,16 @@ The default file can be used as a template to create additional languages, or re -#### Author +##### Author | Name | Default | Description | | --------------------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `author.name` | _Not set_ | The author's name. This will be displayed in article footers, and on the homepage when the profile layout is used. | -| `author.email` | _Not set_ | The author's email. This will be used if the reply-via-email functionality is enabled. | -| `author.image` | _Not set_ | Path to the image file of the author. The image should be a 1:1 aspect ratio. The image can be placed in the site's `assets/` folder or can be external url. | -| `author.imageQuality` | `96` | The author's image file will be treated as a "high quality" image to minimize artifacts on the front page. Value range 1-100. | -| `author.headline` | _Not set_ | A Markdown string containing the author's headline. It will be displayed on the profile homepage under the author's name. | -| `author.bio` | _Not set_ | A Markdown string containing the author's bio. It will be displayed in article footers. | -| `author.links` | _Not set_ | The links to display alongside the author's details. The config file contains example links which can simply be uncommented to enable. The order that the links are displayed is determined by the order they appear in the array. Custom links can be added by providing corresponding SVG icon assets in `assets/icons/`. | +| `params.author.name` | _Not set_ | The author's name. This will be displayed in article footers, and on the homepage when the profile layout is used. | +| `params.author.email` | _Not set_ | The author's email. This will be used if the reply-via-email functionality is enabled. | +| `params.author.image` | _Not set_ | Path to the image file of the author. The image should be a 1:1 aspect ratio. The image can be placed in the site's `assets/` folder or can be external url. | +| `params.author.imageQuality` | `96` | The author's image file will be treated as a "high quality" image to minimize artifacts on the front page. Value range 1-100. | +| `params.author.headline` | _Not set_ | A Markdown string containing the author's headline. It will be displayed on the profile homepage under the author's name. | +| `params.author.bio` | _Not set_ | A Markdown string containing the author's bio. It will be displayed in article footers. | +| `params.author.links` | _Not set_ | The links to display alongside the author's details. The config file contains example links which can simply be uncommented to enable. The order that the links are displayed is determined by the order they appear in the array. Custom links can be added by providing corresponding SVG icon assets in `assets/icons/`. | ### Menus From 51e94eddad9d7af8323a3eebf9f85c7ad93a3862 Mon Sep 17 00:00:00 2001 From: Commander Keen <49837021+CommanderKen@users.noreply.github.com> Date: Sat, 31 Aug 2024 13:53:35 +0200 Subject: [PATCH 3/5] Update users.json --- exampleSite/content/users/users.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/exampleSite/content/users/users.json b/exampleSite/content/users/users.json index 3f1c50ffb..44561425b 100644 --- a/exampleSite/content/users/users.json +++ b/exampleSite/content/users/users.json @@ -739,5 +739,14 @@ "Personal Site", "Blog" ] + }, + { + "title": "andrealucchini.com", + "url": "https://andrealucchini.com", + "source": "https://github.com/CommanderKen/commanderken.github.io", + "tags": [ + "Personal site", + "Blog" + ] } -] \ No newline at end of file +] From de1fa4a58df73826238deeb584c6db10ef335ba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Tue, 3 Sep 2024 23:40:54 +0100 Subject: [PATCH 4/5] fix https://github.com/nunocoracao/blowfish/issues/1695 --- assets/css/compiled/main.css | 15 --------------- assets/css/main.css | 13 ------------- assets/js/mobilemenu.js | 27 +++++++++++++++++++++++++++ layouts/partials/head.html | 2 ++ layouts/partials/header/basic.html | 5 ++--- 5 files changed, 31 insertions(+), 31 deletions(-) create mode 100644 assets/js/mobilemenu.js diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index d82a51b58..5ebb89578 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -3182,21 +3182,6 @@ body button { display:none } -/* Hamburger menu */ - -body:has(#menu-controller:checked) { - overflow-y:hidden -} - -#menu-button:has(#menu-controller:checked) { - visibility:hidden -} - -#menu-controller:checked~#menu-wrapper { - visibility:visible; - opacity:1 -} - /* RTL support */ .prose blockquote:where([dir="rtl"], [dir="rtl"] *) { diff --git a/assets/css/main.css b/assets/css/main.css index 6db696095..0dd36a133 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -29,19 +29,6 @@ body button { @apply hidden; } -/* Hamburger menu */ -body:has(#menu-controller:checked) { - @apply overflow-y-hidden; -} - -#menu-button:has(#menu-controller:checked) { - @apply invisible; -} - -#menu-controller:checked~#menu-wrapper { - @apply visible opacity-100; -} - /* RTL support */ .prose blockquote { @apply rtl:pr-4 rtl:border-l-0 rtl:border-r-4; diff --git a/assets/js/mobilemenu.js b/assets/js/mobilemenu.js new file mode 100644 index 000000000..b5d0dd041 --- /dev/null +++ b/assets/js/mobilemenu.js @@ -0,0 +1,27 @@ +var menuButton = document.getElementById("menu-button"); +var menuCloseButton = document.getElementById("menu-close-button"); + +var menuOpen = false; + +menuButton.addEventListener("click", function () { + if (!menuOpen) { + menuOpen = true; + var menuWrapper = document.getElementById("menu-wrapper"); + document.body.style.overflowY = "hidden"; + menuButton.style.visibility = "hidden"; + menuWrapper.style.visibility = "visible"; + menuWrapper.style.opacity = "1"; + } +}); + +menuCloseButton.addEventListener("click", function (e) { + if (menuOpen) { + menuOpen = false; + var menuWrapper = document.getElementById("menu-wrapper"); + document.body.style.overflowY = "auto"; + menuButton.style.visibility = "visible"; + menuWrapper.style.visibility = "hidden"; + menuWrapper.style.opacity = "0"; + e.stopPropagation(); + } +}); \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index a1c4b3009..87255a221 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -66,6 +66,8 @@ {{ $jsRTL := resources.Get "js/rtl.js" }} {{ $assets.Add "js" (slice $jsRTL) }} {{ end }} + {{ $jsMobileMenu := resources.Get "js/mobilemenu.js" }} + {{ $assets.Add "js" (slice $jsMobileMenu) }} {{ if $assets.Get "js" }} {{ $bundleJS := $assets.Get "js" | resources.Concat "js/main.bundle.js" | resources.Minify | resources.Fingerprint "sha512" }} diff --git a/layouts/partials/header/basic.html b/layouts/partials/header/basic.html index caf69fa76..c1eb4641f 100644 --- a/layouts/partials/header/basic.html +++ b/layouts/partials/header/basic.html @@ -93,8 +93,7 @@
-