From 87b26239876de3873cd1d66c8afa73c9f7a78f6e Mon Sep 17 00:00:00 2001 From: Jan Raasch Date: Fri, 11 Sep 2020 18:30:53 +0200 Subject: [PATCH 001/174] chore: update prettier-plugin-go-template --- package-lock.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9349620..ef2ab4d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,9 +11,9 @@ "dev": true }, "prettier-plugin-go-template": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/prettier-plugin-go-template/-/prettier-plugin-go-template-0.0.10.tgz", - "integrity": "sha512-TaHPqiMK/zfk+YhvKRf/1WZDgQ6ffnlxJZX5rwphqfxBOVEezZQtYistTB348MKrKnnwKpyXZWpMRo0/KCVB+A==", + "version": "0.0.11-beta.3", + "resolved": "https://registry.npmjs.org/prettier-plugin-go-template/-/prettier-plugin-go-template-0.0.11-beta.3.tgz", + "integrity": "sha512-/w+fLMvA3Ago10CRNtFe9V9DQekcfo+tB08U+3HF6FcMBnuLxHwVl04KGHhNqFUF017pTfua2Aq9cHGkT+QoFA==", "dev": true } } diff --git a/package.json b/package.json index 446ec96..5f2fb0e 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,6 @@ "homepage": "https://github.com/janraasch/hugo-scroll#readme", "devDependencies": { "prettier": "^2.1.1", - "prettier-plugin-go-template": "0.0.10" + "prettier-plugin-go-template": "0.0.11-beta.3" } } From b86c9a50f2ceebbe4d902cf4dc52f1ad4090bfc4 Mon Sep 17 00:00:00 2001 From: Jan Raasch Date: Fri, 11 Sep 2020 18:31:08 +0200 Subject: [PATCH 002/174] chore: do not prettierignore index.html --- .prettierignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.prettierignore b/.prettierignore index 9859f78..cf070c9 100644 --- a/.prettierignore +++ b/.prettierignore @@ -3,4 +3,3 @@ resources public static/font-awesome static/css/normalize.css -layouts/index.html From edef9334bcb3712e2ef1d912c4d268bcd9aec607 Mon Sep 17 00:00:00 2001 From: Jan Raasch Date: Fri, 11 Sep 2020 18:28:34 +0200 Subject: [PATCH 003/174] style: run format once --- layouts/index.html | 76 ++++++++++++++++++++++++++-------------------- 1 file changed, 43 insertions(+), 33 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 9f3daa3..86f1c90 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,36 +1,46 @@ {{ define "main" }} -{{ $headless := .Site.GetPage "/homepage" }} -{{ $sections := $headless.Resources.ByType "page" }} - -
- -
-
- {{ range $index_val, $elem_val := $sections }} -
-
-
-

{{ .Title }}

-
-
- {{ .Content }} -
-
-
-
+ {{ $headless := .Site.GetPage "/homepage" }} + {{ $sections := $headless.Resources.ByType "page" }} + +
+
+ {{ range $index_val, $elem_val := $sections }} +
+
+
+

{{ .Title }}

+
+
+ {{ .Content }} +
+
+
+
+ {{ end }} +
{{ end }} From 2773d0534b53be364313bda1ee4015f49f677a55 Mon Sep 17 00:00:00 2001 From: Jan Raasch Date: Fri, 11 Sep 2020 18:29:46 +0200 Subject: [PATCH 004/174] style: run format again --- layouts/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/index.html b/layouts/index.html index 86f1c90..21781da 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -4,13 +4,15 @@
{{ end }} From 4f5883c14deed231d65fde2db5d26e560137c33c Mon Sep 17 00:00:00 2001 From: zjedi Date: Sat, 23 Dec 2023 00:05:52 +0100 Subject: [PATCH 140/174] Update README.md Mention that hugo-extended is required --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 453c420..2d23c9a 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ into single file) - git info in footer (opt-in) ## 🔑 Installation +You need to install Hugo extended version. If you already have a Hugo site on your machine, you can simply add this theme via ``` git submodule add https://github.com/zjedi/hugo-scroll.git themes/hugo-scroll From f1d65eeccb10f417c59cc0cc4627cc52863b8e11 Mon Sep 17 00:00:00 2001 From: Daniel Holbach Date: Sat, 23 Dec 2023 19:08:45 +0100 Subject: [PATCH 141/174] Define contact information in params, add to footer of the page (#166) contact icons in footer, opt-in via parameter --- assets/css/theme.scss | 11 +++++++++++ exampleSite/config.toml | 8 ++++++++ exampleSite/content/homepage/contact.md | 4 ++-- i18n/de.toml | 5 +++++ i18n/en.toml | 5 +++++ layouts/partials/footer.html | 11 +++++++++++ layouts/shortcodes/email.html | 1 + layouts/shortcodes/phone.html | 1 + 8 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 i18n/de.toml create mode 100644 i18n/en.toml create mode 100644 layouts/shortcodes/email.html create mode 100644 layouts/shortcodes/phone.html diff --git a/assets/css/theme.scss b/assets/css/theme.scss index 3c03cbc..0d6312c 100644 --- a/assets/css/theme.scss +++ b/assets/css/theme.scss @@ -273,3 +273,14 @@ a.fn-item { .site-footer a:hover { color: var(--sticky-menu-text-color); } + +/* Bottom Icons */ +.icons { + ol { + padding-left: 0; + } + + li { + display: inline-block; + } +} diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 15aba0d..e0b4f71 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -51,5 +51,13 @@ title = "Jane Doe - Nutrition Coach & Chef Consultant" # The sections of the home page alternate styling. Mark invert as true to swap the styling of the sections invertSectionColors = false + [params.footer] + # Show contact icons for email/phone (if specified) in the footer of the page + showContactIcons = false + [params.meta] keywords = "some, keywords, for, seo, you, know, google, duckduckgo, and, such" + + [params.contact] + email = "mail@janedoe.com" + phone = "+49 1111 555555" diff --git a/exampleSite/content/homepage/contact.md b/exampleSite/content/homepage/contact.md index e344a31..6615de8 100644 --- a/exampleSite/content/homepage/contact.md +++ b/exampleSite/content/homepage/contact.md @@ -4,8 +4,8 @@ weight: 4 header_menu: true --- -{{}} [mail@janedoe.com](mailto:your-email@your-domain.com) +{{}} [{{}}](mailto:{{}}) -{{}} [+49 1111 555555](tel:+491111555555) +{{}} [{{}}](tel:{{}}) Let us get in touch! diff --git a/i18n/de.toml b/i18n/de.toml new file mode 100644 index 0000000..7563e59 --- /dev/null +++ b/i18n/de.toml @@ -0,0 +1,5 @@ +[email] +other = "Email" + +[phone] +other = "Telefon" diff --git a/i18n/en.toml b/i18n/en.toml new file mode 100644 index 0000000..87afd30 --- /dev/null +++ b/i18n/en.toml @@ -0,0 +1,5 @@ +[email] +other = "Email" + +[phone] +other = "Phone" diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index a19e393..1a5098c 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,5 +1,16 @@