From e2852e9b79ca8104ac6238d3c44cd899dcac4928 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 16 Jun 2022 23:40:34 +0000 Subject: [PATCH 01/11] =?UTF-8?q?=F0=9F=93=8C=20Bump=20prettier=20from=202?= =?UTF-8?q?.7.0=20to=202.7.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps [prettier](https://github.com/prettier/prettier) from 2.7.0 to 2.7.1. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.7.0...2.7.1) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 18 +++++++++--------- package.json | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index e352605b..b9419d29 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "hugo-congo-theme", - "version": "2.2.1", + "version": "2.2.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "hugo-congo-theme", - "version": "2.2.1", + "version": "2.2.2", "hasInstallScript": true, "license": "MIT", "devDependencies": { @@ -15,7 +15,7 @@ "fuse.js": "^6.6.2", "katex": "^0.16.0", "mermaid": "^9.1.2", - "prettier": "^2.7.0", + "prettier": "^2.7.1", "prettier-plugin-go-template": "^0.0.13", "rimraf": "^3.0.2", "tailwindcss": "^3.0.24", @@ -1591,9 +1591,9 @@ "dev": true }, "node_modules/prettier": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.0.tgz", - "integrity": "sha512-nwoX4GMFgxoPC6diHvSwmK/4yU8FFH3V8XWtLQrbj4IBsK2pkYhG4kf/ljF/haaZ/aii+wNJqISrCDPgxGWDVQ==", + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", + "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", "dev": true, "bin": { "prettier": "bin-prettier.js" @@ -3130,9 +3130,9 @@ "dev": true }, "prettier": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.0.tgz", - "integrity": "sha512-nwoX4GMFgxoPC6diHvSwmK/4yU8FFH3V8XWtLQrbj4IBsK2pkYhG4kf/ljF/haaZ/aii+wNJqISrCDPgxGWDVQ==", + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", + "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", "dev": true }, "prettier-plugin-go-template": { diff --git a/package.json b/package.json index 93daa47c..face6136 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "fuse.js": "^6.6.2", "katex": "^0.16.0", "mermaid": "^9.1.2", - "prettier": "^2.7.0", + "prettier": "^2.7.1", "prettier-plugin-go-template": "^0.0.13", "rimraf": "^3.0.2", "tailwindcss": "^3.0.24", From 4deae8bc2f88909a0f17e476d09b90b4fcbb1e82 Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Fri, 17 Jun 2022 10:33:53 +1000 Subject: [PATCH 02/11] =?UTF-8?q?=F0=9F=94=A7=20Update=20theme=20metadata?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- theme.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme.toml b/theme.toml index a3e69609..fbf4731d 100644 --- a/theme.toml +++ b/theme.toml @@ -3,7 +3,7 @@ name = "congo" license = "MIT" licenselink = "https://github.com/jpanther/congo/blob/master/LICENSE" -description = "A simple, lightweight theme for Hugo built with Tailwind CSS." +description = "A powerful, lightweight theme for Hugo built with Tailwind CSS." homepage = "https://github.com/jpanther/congo/" demosite = "https://jpanther.github.io/congo/" From 7f075d51e66c3851e6ae48954bc6451c7a9dd23d Mon Sep 17 00:00:00 2001 From: jkpe <16779171+jkpe@users.noreply.github.com> Date: Sun, 19 Jun 2022 18:59:35 +0100 Subject: [PATCH 03/11] fix Netlify preview deployments Netlify uses an old version of Hugo (0.8x) unless you tell it to use something newer. 0.8x does not support congo as a module. --- exampleSite/content/docs/hosting-deployment/index.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exampleSite/content/docs/hosting-deployment/index.md b/exampleSite/content/docs/hosting-deployment/index.md index 8edcbb6d..cc38643f 100644 --- a/exampleSite/content/docs/hosting-deployment/index.md +++ b/exampleSite/content/docs/hosting-deployment/index.md @@ -100,6 +100,9 @@ Then in the root of your site repository, create a `netlify.toml` file: [context.production.environment] HUGO_VERSION = "0.100.2" HUGO_ENV = "production" + +[context.deploy-preview.environment] + HUGO_VERSION = "0.100.2" ``` This configuration assumes you are deploying Congo as a Hugo module. If you have installed the theme using another method, change the build command to simply `hugo --gc --minify -b $URL`. From b9225a2955b1008ed72ffe8c3992d8b1ea2bbeff Mon Sep 17 00:00:00 2001 From: Lorenzo Sciandra Date: Mon, 20 Jun 2022 19:09:17 +0100 Subject: [PATCH 04/11] Add my personal website (kelset.dev) to the list --- exampleSite/content/users.md | 1 + 1 file changed, 1 insertion(+) diff --git a/exampleSite/content/users.md b/exampleSite/content/users.md index d1a445b8..9e566b77 100644 --- a/exampleSite/content/users.md +++ b/exampleSite/content/users.md @@ -31,5 +31,6 @@ Real websites that are built with Congo. | [seyslee.github.io](https://seyslee.github.io) | Tech blog (in Korean) | | [datanalyze.be](https://datanalyze.be/) | Professional site | | [sneaky-potato.github.io](https://sneaky-potato.github.io/) | Professional site and Blog | +| [kelset.dev](https://kelset.dev) | Personal site | **Congo user?** To add your site to this list, [submit a pull request](https://github.com/jpanther/congo/blob/dev/exampleSite/content/users.md). From 71dae159ca16d6ef86b28190756bfba3eec04eac Mon Sep 17 00:00:00 2001 From: Elias Olofsson <65086086+eliaserland@users.noreply.github.com> Date: Tue, 21 Jun 2022 15:08:26 +0200 Subject: [PATCH 05/11] :bug: Ensure trailing forward slash in baseURL during search index build. Hopefully fixes issue #223, where search functionality was broken from website deployed to netlify --- assets/js/search.js | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/js/search.js b/assets/js/search.js index c15de8fe..49b4d8e7 100644 --- a/assets/js/search.js +++ b/assets/js/search.js @@ -107,6 +107,7 @@ function fetchJSON(path, callback) { function buildIndex() { var baseURL = wrapper.getAttribute("data-url"); + baseURL = baseURL.replace(/\/?$/, '/'); fetchJSON(baseURL + "index.json", function (data) { var options = { shouldSort: true, From fbcf957d98e84a33b5a1f37bb5365c8a76bbfbba Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Wed, 22 Jun 2022 11:50:52 +1000 Subject: [PATCH 06/11] =?UTF-8?q?=F0=9F=93=9D=20Update=20changelog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b9c86f84..28f4f74e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +### Fixed + +- Search not working when `baseURL` does not end with a forward slash ([#224](https://github.com/jpanther/congo/pull/224)) + ## [2.2.2] - 2022-06-16 ### Added From 97313e9f046379317a9603320ef49f590f20582f Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Wed, 22 Jun 2022 12:14:10 +1000 Subject: [PATCH 07/11] =?UTF-8?q?=E2=99=BF=EF=B8=8F=20Use=20author=20name?= =?UTF-8?q?=20for=20images=20when=20available?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++++ layouts/partials/author.html | 2 +- layouts/partials/home/profile.html | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28f4f74e..bf1cf9e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +### Changed + +- Profile image alt text now uses author name when available + ### Fixed - Search not working when `baseURL` does not end with a forward slash ([#224](https://github.com/jpanther/congo/pull/224)) diff --git a/layouts/partials/author.html b/layouts/partials/author.html index 95e7085d..d8c502a1 100644 --- a/layouts/partials/author.html +++ b/layouts/partials/author.html @@ -8,7 +8,7 @@ class="w-24 h-24 !mt-0 !mb-0 ltr:mr-4 rtl:ml-4 rounded-full" width="96" height="96" - alt="Author" + alt="{{ $.Site.Author.name | default "Author" }}" src="{{ $authorImage.RelPermalink }}" /> {{ end }} diff --git a/layouts/partials/home/profile.html b/layouts/partials/home/profile.html index 0cae92f8..ffe26d1e 100644 --- a/layouts/partials/home/profile.html +++ b/layouts/partials/home/profile.html @@ -12,7 +12,7 @@ class="mb-2 rounded-full w-36 h-36" width="144" height="144" - alt="Author" + alt="{{ $.Site.Author.name | default "Author" }}" src="{{ $authorImage.RelPermalink }}" /> {{ end }} From 7c6453fd30e0b34488755b2d426938d52eebcfbf Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Wed, 22 Jun 2022 12:15:05 +1000 Subject: [PATCH 08/11] =?UTF-8?q?=F0=9F=90=9B=20`headline`=20not=20display?= =?UTF-8?q?ing=20Markdown=20or=20Emoji?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + layouts/partials/home/profile.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bf1cf9e1..bfde5c6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Fixed - Search not working when `baseURL` does not end with a forward slash ([#224](https://github.com/jpanther/congo/pull/224)) +- Author `headline` parameter not correctly displaying Markdown or Emoji content ## [2.2.2] - 2022-06-16 diff --git a/layouts/partials/home/profile.html b/layouts/partials/home/profile.html index ffe26d1e..55a1d767 100644 --- a/layouts/partials/home/profile.html +++ b/layouts/partials/home/profile.html @@ -22,7 +22,7 @@ {{ with .Site.Author.headline }}

- {{ . }} + {{ . | markdownify | emojify }}

{{ end }}
From d65da11167ac0c618cf7b35b3329e3c3e1e0d5b2 Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Wed, 22 Jun 2022 16:07:56 +1000 Subject: [PATCH 09/11] =?UTF-8?q?=F0=9F=94=A7=20Tidy=20up=20package.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index face6136..8fa3c284 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,6 @@ "name": "hugo-congo-theme", "version": "2.2.2", "description": "Congo theme for Hugo", - "main": "index.js", "scripts": { "preinstall": "rimraf assets/vendor", "postinstall": "vendor-copy", @@ -14,7 +13,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/jpanther/congo.git" + "url": "https://github.com/jpanther/congo.git" }, "keywords": [ "hugo", @@ -23,6 +22,7 @@ "dark-mode" ], "author": "James Panther", + "funding": "https://github.com/sponsors/jpanther", "license": "MIT", "bugs": { "url": "https://github.com/jpanther/congo/issues" From aed6c766026ae1af84714507f69b4aed3c42600a Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Wed, 22 Jun 2022 16:27:55 +1000 Subject: [PATCH 10/11] =?UTF-8?q?=F0=9F=93=9D=20Update=20changelog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bfde5c6d..8a67fb6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -All notable changes to Congo will be documented in this file. Things that need attention when upgrading from a prior version are marked ⚠️. +All notable changes to Congo will be documented in this file. Things that need particular attention when upgrading from a prior version are marked ⚠️. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). From 51a630c0e5736e38beaa8293eac5a8f0ecf519fe Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Wed, 22 Jun 2022 16:28:10 +1000 Subject: [PATCH 11/11] =?UTF-8?q?=F0=9F=94=A8=20Preparing=20release=20v2.2?= =?UTF-8?q?.3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 5 ++++- assets/css/compiled/main.css | 2 +- assets/css/main.css | 2 +- package.json | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a67fb6e..ed10468c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +## [2.2.3] - 2022-06-22 + ### Changed - Profile image alt text now uses author name when available @@ -455,7 +457,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Advanced customisation using simple Tailwind colour definitions and styles - Fully documented -[unreleased]: https://github.com/jpanther/congo/compare/v2.2.2...HEAD +[unreleased]: https://github.com/jpanther/congo/compare/v2.2.3...HEAD +[2.2.3]: https://github.com/jpanther/congo/compare/v2.2.2...v2.2.3 [2.2.2]: https://github.com/jpanther/congo/compare/v2.2.1...v2.2.2 [2.2.1]: https://github.com/jpanther/congo/compare/v2.2.0...v2.2.1 [2.2.0]: https://github.com/jpanther/congo/compare/v2.1.3...v2.2.0 diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index 8010ef8d..a4370d53 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -1,4 +1,4 @@ -/*! Congo v2.2.2 | MIT License | https://github.com/jpanther/congo */ +/*! Congo v2.2.3 | MIT License | https://github.com/jpanther/congo */ /*! tailwindcss v3.0.24 | MIT License | https://tailwindcss.com */ diff --git a/assets/css/main.css b/assets/css/main.css index 4f11c09a..8a0d7428 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -1,4 +1,4 @@ -/*! Congo v2.2.2 | MIT License | https://github.com/jpanther/congo */ +/*! Congo v2.2.3 | MIT License | https://github.com/jpanther/congo */ @tailwind base; @tailwind components; diff --git a/package.json b/package.json index 8fa3c284..5a01f729 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hugo-congo-theme", - "version": "2.2.2", + "version": "2.2.3", "description": "Congo theme for Hugo", "scripts": { "preinstall": "rimraf assets/vendor",