From c52635f6d1c59c2d01c16cd17e9469d16d4e9160 Mon Sep 17 00:00:00 2001 From: mark Date: Thu, 14 Apr 2022 06:05:44 +0200 Subject: [PATCH 1/3] Remove obsolete translation --- layouts/_default/single.html | 2 +- layouts/partials/assets/blog-card.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 2b433377..9a76d615 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -18,7 +18,7 @@ {{ else -}}  •  {{ end -}} - {{ i18n "readingTime"}}{{ .ReadingTime }} {{ i18n "minutesShort" }} {{ i18n "read" }} + {{ .ReadingTime }} {{ i18n "minutesShort" }} {{ i18n "read" }}  • {{ .WordCount }} {{ i18n "words" }} diff --git a/layouts/partials/assets/blog-card.html b/layouts/partials/assets/blog-card.html index 726e617e..08c74754 100644 --- a/layouts/partials/assets/blog-card.html +++ b/layouts/partials/assets/blog-card.html @@ -8,7 +8,7 @@

{{- partial "utilities/date.html" (dict "date" .Date "language" $.Page.Language "format" "long") -}} - • {{ i18n "readingTime"}}{{ .ReadingTime }} {{ i18n "minutesShort" }} {{ i18n "read" }} + • {{ .ReadingTime }} {{ i18n "minutesShort" }} {{ i18n "read" }} {{ if isset .Params "tags" -}} {{ range first 1 .Params.tags -}} • {{ . }} From dd5e55848d3be4839b92c0688e9f5576cff3ed7a Mon Sep 17 00:00:00 2001 From: mark Date: Thu, 14 Apr 2022 06:06:05 +0200 Subject: [PATCH 2/3] Bump Hugo version --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8f9d0b63..8dd34876 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "hugo-theme-hinode", + "name": "@markdumay/hugo-theme-hinode", "version": "0.1.0", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "hugo-theme-hinode", + "name": "@markdumay/hugo-theme-hinode", "version": "0.1.0", "hasInstallScript": true, "license": "MIT", diff --git a/package.json b/package.json index b9dd1eb0..0e623234 100644 --- a/package.json +++ b/package.json @@ -58,6 +58,6 @@ "stylelint-config-standard-scss": "^3.0.0" }, "otherDependencies": { - "hugo": "0.92.2" + "hugo": "0.96.0" } } From a70cae1574bc6ac3c67c3197e6c9f0f561befec8 Mon Sep 17 00:00:00 2001 From: mark Date: Thu, 14 Apr 2022 08:47:46 +0200 Subject: [PATCH 3/3] Add child theme --- README.md | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 785a86bb..e05401d2 100644 --- a/README.md +++ b/README.md @@ -72,10 +72,7 @@ Start a new Hinode project in three steps: ### 1. Create a new site - +#### Hinode main theme ```bash git clone https://github.com/markdumay/hugo-theme-hinode.git my-hinode-site && cd my-hinode-site @@ -107,11 +104,11 @@ npm run start The main site configuration is available in `./config/_default`. Some remarks: -- Menu items - `menus/menus.en.toml` contains language-specific items for the navigation bar and social media links for the home page's footer. -- Content - Ensure the `mainSections` in `config.toml` is synchronized with the `content` folder, default values are `["blog", "projects"]`. -- Theme color - Update `themeColor` and `themeOpacity` within the `[style]` section of `params.toml` to update the site's primary color and opacity. You can use the [WCAG Color Contrast Checker][contrast_checker] to validate the contrast ratio of your color to improve accessibility. -- Comments - Comments are powered by [utterances][utterances], a lightweight comments widget built on GitHub issues. Update the `repo` of the `[comments]` section of `params.toml`. -- Security headings - The local development server uses the header configuration as provided by `server.toml`. Similar settings are provided in the `netlify.toml` file provided in the repository's root when deploying to [Netlify][netlify]. +- **Menu items** - `menus/menus.en.toml` contains language-specific items for the navigation bar and social media links for the home page's footer. +- **Content** - Ensure the `mainSections` in `config.toml` is synchronized with the `content` folder, default values are `["blog", "projects"]`. +- **Theme color** - Update `themeColor` and `themeOpacity` within the `[style]` section of `params.toml` to update the site's primary color and opacity. You can use the [WCAG Color Contrast Checker][contrast_checker] to validate the contrast ratio of your color to improve accessibility. +- **Comments** - Comments are powered by [utterances][utterances], a lightweight comments widget built on GitHub issues. Update the `repo` of the `[comments]` section of `params.toml`. +- **Security headings** - The local development server uses the header configuration as provided by `server.toml`. Similar settings are defined in the `netlify.toml` file provided in the repository's root when deploying to [Netlify][netlify]. ## Contributing @@ -137,7 +134,7 @@ The Hinode theme is inspired by the following themes: ## License -The `hugo-theme-hinode` codebase is released under the [MIT license][license]. The documentation (including the "README") is licensed under the Creative Commons ([CC BY-NC 4.0)][cc-by-nc-4.0] license. +The `hugo-theme-hinode` and `hugo-theme-hinode-child` codebase is released under the [MIT license][license]. The documentation (including the "README") is licensed under the Creative Commons ([CC BY-NC 4.0)][cc-by-nc-4.0] license. [blist]: https://github.com/apvarun/blist-hugo-theme @@ -163,3 +160,4 @@ The `hugo-theme-hinode` codebase is released under the [MIT license][license]. T [demo]: https://hinode-demo.markdumay.org/ [license]: https://github.com/markdumay/hugo-theme-hinode/blob/main/LICENSE [repository]: https://github.com/markdumay/hugo-theme-hinode.git +[repository_child]: https://github.com/markdumay/hugo-theme-hinode-child.git