From 82a36a462e38c3032453b7f00333601670c4288a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Sun, 16 Oct 2022 21:56:36 +0100 Subject: [PATCH 01/39] commented config files --- config/_default/menus.en.toml | 40 +++++++++++++++++------------------ 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/config/_default/menus.en.toml b/config/_default/menus.en.toml index f1ec7eab..384fc92e 100644 --- a/config/_default/menus.en.toml +++ b/config/_default/menus.en.toml @@ -10,20 +10,20 @@ # overridden by providing a weight value. The menu will then be # ordered by weight from lowest to highest. -[[main]] - name = "Blog" - pageRef = "posts" - weight = 10 +#[[main]] +# name = "Blog" +# pageRef = "posts" +# weight = 10 -[[main]] - name = "Categories" - pageRef = "categories" - weight = 20 +#[[main]] +# name = "Categories" +# pageRef = "categories" +# weight = 20 -[[main]] - name = "Tags" - pageRef = "tags" - weight = 30 +#[[main]] +# name = "Tags" +# pageRef = "tags" +# weight = 30 # -- Footer Menu -- @@ -31,12 +31,12 @@ # the copyright notice. Configure as per the main menu above. - [[footer]] - name = "Tags" - pageRef = "tags" - weight = 10 +# [[footer]] +# name = "Tags" +# pageRef = "tags" +# weight = 10 - [[footer]] - name = "Categories" - pageRef = "categories" - weight = 20 +# [[footer]] +# name = "Categories" +# pageRef = "categories" +# weight = 20 From d8eee1c5ed9e5befa482e8caf0f2fe3525473ac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Sun, 16 Oct 2022 21:56:59 +0100 Subject: [PATCH 02/39] updated version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d7dadb2b..c731d002 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hugo-blowfish-theme", - "version": "2.0.0", + "version": "2.0.1", "description": "Blowfish theme for Hugo", "scripts": { "preinstall": "rimraf assets/vendor", From a46a4f3091d889053fe1723bcdf44b7ba8815632 Mon Sep 17 00:00:00 2001 From: lukapiplica <85863932+lukapiplica@users.noreply.github.com> Date: Mon, 17 Oct 2022 07:31:26 +0200 Subject: [PATCH 03/39] hr.yaml Translated to Croatian. --- i18n/hr.yaml | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 i18n/hr.yaml diff --git a/i18n/hr.yaml b/i18n/hr.yaml new file mode 100644 index 00000000..3684f783 --- /dev/null +++ b/i18n/hr.yaml @@ -0,0 +1,62 @@ +article: + anchor_label: "Sidro" + date: "{{ .Date }}" + date_updated: "Ažurirano: {{ .Date }}" + draft: "Nacrt" + edit_title: "Uredi sadržaj" + reading_time: + one: "{{ .Count }} minut" + other: "{{ .Count }} minuta" + reading_time_title: "Vrijeme čitanja" + table_of_contents: "Tablica sadržaja" + word_count: + one: "{{ .Count }} riječ" + other: "{{ .Count }} riječi" + views: + one: "{{ .Count }} pregled" + other: "{{ .Count }} pregleda" + likes: + one: "{{ .Count }} sviđa se" + other: "{{ .Count }} sviđa se" + +author: + byline_title: "Autor" + +code: + copy: "Kopiraj" + copied: "Kopirano" + +error: + 404_title: "Stranica nije pronađena :confused:" + 404_error: "Greška 404" + 404_description: "Čini se da stranica koju ste zatražili ne postoji." + +footer: + dark_appearance: "Promjeni na tamni izgled" + light_appearance: "Promijeni na svijetli izgled" + powered_by: "Napravljeno pomoću {{ .Hugo }} & {{ .Theme }}" + +list: + externalurl_title: "Link to external site" + no_articles: "Ovdje još nema članaka" + +nav: + scroll_to_top_title: "Otiđi na vrh" + skip_to_main: "Otiđi na glavni sadržaj" + +search: + open_button_title: "Pretraga (/)" + close_button_title: "Izađi (Esc)" + input_placeholder: "Pretraži" + +sharing: + email: "Pošalji putem e-pošte" + facebook: "Podijeli na Facebook" + linkedin: "Podijeli na LinkedIn" + pinterest: "Podijeli na Pinterest" + reddit: "Objavi na Reddit" + twitter: "Tweet na Twitter" + +shortcode: + recent_articles: "Nedavno" + From 9afae930fd1d7fc9367ebdbdd8b2fcf2ddcab765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Mon, 17 Oct 2022 10:10:08 +0100 Subject: [PATCH 04/39] added polish to docs --- exampleSite/content/docs/configuration/index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exampleSite/content/docs/configuration/index.md b/exampleSite/content/docs/configuration/index.md index b365a1a0..5ee1ae6a 100644 --- a/exampleSite/content/docs/configuration/index.md +++ b/exampleSite/content/docs/configuration/index.md @@ -68,6 +68,7 @@ The theme currently supports the following languages by default: | :jp: Japanese | `ja` | | :brazil: Portuguese (Brazil) | `pt-br` | | :portugal: Portuguese (Portugal) | `pt-pt` | +| :poland: Polish | `pl` | | :romania: Romanian | `ro` | | :es: Spanish (Spain) | `es` | | :tr: Turkish | `tr` | @@ -187,4 +188,4 @@ Many of the article defaults here can be overridden on a per article basis by sp The theme also includes a `markup.toml` configuration file. This file contains some important parameters that ensure that Hugo is correctly configured to generate sites built with Blowfish. -Always ensure this file is present in the config directory and that the required values are set. Failure to do so may cause certain features to fucntion incorrectly and could result in unintended behaviour. \ No newline at end of file +Always ensure this file is present in the config directory and that the required values are set. Failure to do so may cause certain features to fucntion incorrectly and could result in unintended behaviour. From dfb4be490dcece9f03680e4c0ea61816e4781e50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Mon, 17 Oct 2022 10:34:34 +0100 Subject: [PATCH 05/39] UI improvements to background hero --- assets/css/compiled/main.css | 4 ++-- layouts/_default/single.html | 9 +++++++-- layouts/partials/hero/background.html | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index 558654bb..de1f909c 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -1634,8 +1634,8 @@ select { height: 2rem; } -.h-\[45vh\] { - height: 45vh; +.h-\[300px\] { + height: 300px; } .h-36 { diff --git a/layouts/_default/single.html b/layouts/_default/single.html index c071fced..4766d4a4 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -146,10 +146,15 @@ var header = document.getElementById("single_header") var style = getComputedStyle(header); - var margin = '-'+ (parseInt(style.height) + parseInt(style.marginTop) + parseInt(style.marginBottom) + 20) + 'px' var hero = document.getElementById('hero') - if(hero) + if(hero){ + var margin = '-'+ (parseInt(style.height) + parseInt(style.marginTop) + parseInt(style.marginBottom) + 20) + 'px' + var height = (-parseInt(margin) + parseInt(getComputedStyle(hero).height)) + "px" + console.log(height) hero.style["margin-bottom"] = margin; + hero.style["height"] = height; + } +