diff --git a/CHANGELOG.md b/CHANGELOG.md index b9c86f84..ed10468c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,22 @@ # 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). ## [Unreleased] +## [2.2.3] - 2022-06-22 + +### 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)) +- Author `headline` parameter not correctly displaying Markdown or Emoji content + ## [2.2.2] - 2022-06-16 ### Added @@ -446,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/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, 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`. 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). 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..55a1d767 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 }} @@ -22,7 +22,7 @@ {{ with .Site.Author.headline }}

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

{{ end }}
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..5a01f729 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,7 @@ { "name": "hugo-congo-theme", - "version": "2.2.2", + "version": "2.2.3", "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" @@ -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", 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/"