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 }}