🔖 Release v2.2.3

pull/775/head v2.2.3
James Panther 2022-06-22 16:28:12 +10:00
commit a754630551
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
11 changed files with 38 additions and 21 deletions

View File

@ -1,11 +1,22 @@
# Changelog # 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). 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] ## [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 ## [2.2.2] - 2022-06-16
### Added ### 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 - Advanced customisation using simple Tailwind colour definitions and styles
- Fully documented - 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.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.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 [2.2.0]: https://github.com/jpanther/congo/compare/v2.1.3...v2.2.0

View File

@ -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 */ /*! tailwindcss v3.0.24 | MIT License | https://tailwindcss.com */

View File

@ -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 base;
@tailwind components; @tailwind components;

View File

@ -107,6 +107,7 @@ function fetchJSON(path, callback) {
function buildIndex() { function buildIndex() {
var baseURL = wrapper.getAttribute("data-url"); var baseURL = wrapper.getAttribute("data-url");
baseURL = baseURL.replace(/\/?$/, '/');
fetchJSON(baseURL + "index.json", function (data) { fetchJSON(baseURL + "index.json", function (data) {
var options = { var options = {
shouldSort: true, shouldSort: true,

View File

@ -100,6 +100,9 @@ Then in the root of your site repository, create a `netlify.toml` file:
[context.production.environment] [context.production.environment]
HUGO_VERSION = "0.100.2" HUGO_VERSION = "0.100.2"
HUGO_ENV = "production" 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`. 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`.

View File

@ -31,5 +31,6 @@ Real websites that are built with Congo.
| [seyslee.github.io](https://seyslee.github.io) | Tech blog (in Korean) | | [seyslee.github.io](https://seyslee.github.io) | Tech blog (in Korean) |
| [datanalyze.be](https://datanalyze.be/) | Professional site | | [datanalyze.be](https://datanalyze.be/) | Professional site |
| [sneaky-potato.github.io](https://sneaky-potato.github.io/) | Professional site and Blog | | [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). **Congo user?** To add your site to this list, [submit a pull request](https://github.com/jpanther/congo/blob/dev/exampleSite/content/users.md).

View File

@ -8,7 +8,7 @@
class="w-24 h-24 !mt-0 !mb-0 ltr:mr-4 rtl:ml-4 rounded-full" class="w-24 h-24 !mt-0 !mb-0 ltr:mr-4 rtl:ml-4 rounded-full"
width="96" width="96"
height="96" height="96"
alt="Author" alt="{{ $.Site.Author.name | default "Author" }}"
src="{{ $authorImage.RelPermalink }}" src="{{ $authorImage.RelPermalink }}"
/> />
{{ end }} {{ end }}

View File

@ -12,7 +12,7 @@
class="mb-2 rounded-full w-36 h-36" class="mb-2 rounded-full w-36 h-36"
width="144" width="144"
height="144" height="144"
alt="Author" alt="{{ $.Site.Author.name | default "Author" }}"
src="{{ $authorImage.RelPermalink }}" src="{{ $authorImage.RelPermalink }}"
/> />
{{ end }} {{ end }}
@ -22,7 +22,7 @@
</h1> </h1>
{{ with .Site.Author.headline }} {{ with .Site.Author.headline }}
<h2 class="text-xl text-neutral-500 dark:text-neutral-400"> <h2 class="text-xl text-neutral-500 dark:text-neutral-400">
{{ . }} {{ . | markdownify | emojify }}
</h2> </h2>
{{ end }} {{ end }}
<div class="mt-1 text-2xl"> <div class="mt-1 text-2xl">

18
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "hugo-congo-theme", "name": "hugo-congo-theme",
"version": "2.2.1", "version": "2.2.2",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "hugo-congo-theme", "name": "hugo-congo-theme",
"version": "2.2.1", "version": "2.2.2",
"hasInstallScript": true, "hasInstallScript": true,
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
@ -15,7 +15,7 @@
"fuse.js": "^6.6.2", "fuse.js": "^6.6.2",
"katex": "^0.16.0", "katex": "^0.16.0",
"mermaid": "^9.1.2", "mermaid": "^9.1.2",
"prettier": "^2.7.0", "prettier": "^2.7.1",
"prettier-plugin-go-template": "^0.0.13", "prettier-plugin-go-template": "^0.0.13",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"tailwindcss": "^3.0.24", "tailwindcss": "^3.0.24",
@ -1591,9 +1591,9 @@
"dev": true "dev": true
}, },
"node_modules/prettier": { "node_modules/prettier": {
"version": "2.7.0", "version": "2.7.1",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.0.tgz", "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz",
"integrity": "sha512-nwoX4GMFgxoPC6diHvSwmK/4yU8FFH3V8XWtLQrbj4IBsK2pkYhG4kf/ljF/haaZ/aii+wNJqISrCDPgxGWDVQ==", "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==",
"dev": true, "dev": true,
"bin": { "bin": {
"prettier": "bin-prettier.js" "prettier": "bin-prettier.js"
@ -3130,9 +3130,9 @@
"dev": true "dev": true
}, },
"prettier": { "prettier": {
"version": "2.7.0", "version": "2.7.1",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.0.tgz", "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz",
"integrity": "sha512-nwoX4GMFgxoPC6diHvSwmK/4yU8FFH3V8XWtLQrbj4IBsK2pkYhG4kf/ljF/haaZ/aii+wNJqISrCDPgxGWDVQ==", "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==",
"dev": true "dev": true
}, },
"prettier-plugin-go-template": { "prettier-plugin-go-template": {

View File

@ -1,8 +1,7 @@
{ {
"name": "hugo-congo-theme", "name": "hugo-congo-theme",
"version": "2.2.2", "version": "2.2.3",
"description": "Congo theme for Hugo", "description": "Congo theme for Hugo",
"main": "index.js",
"scripts": { "scripts": {
"preinstall": "rimraf assets/vendor", "preinstall": "rimraf assets/vendor",
"postinstall": "vendor-copy", "postinstall": "vendor-copy",
@ -14,7 +13,7 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/jpanther/congo.git" "url": "https://github.com/jpanther/congo.git"
}, },
"keywords": [ "keywords": [
"hugo", "hugo",
@ -23,6 +22,7 @@
"dark-mode" "dark-mode"
], ],
"author": "James Panther", "author": "James Panther",
"funding": "https://github.com/sponsors/jpanther",
"license": "MIT", "license": "MIT",
"bugs": { "bugs": {
"url": "https://github.com/jpanther/congo/issues" "url": "https://github.com/jpanther/congo/issues"
@ -34,7 +34,7 @@
"fuse.js": "^6.6.2", "fuse.js": "^6.6.2",
"katex": "^0.16.0", "katex": "^0.16.0",
"mermaid": "^9.1.2", "mermaid": "^9.1.2",
"prettier": "^2.7.0", "prettier": "^2.7.1",
"prettier-plugin-go-template": "^0.0.13", "prettier-plugin-go-template": "^0.0.13",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"tailwindcss": "^3.0.24", "tailwindcss": "^3.0.24",

View File

@ -3,7 +3,7 @@
name = "congo" name = "congo"
license = "MIT" license = "MIT"
licenselink = "https://github.com/jpanther/congo/blob/master/LICENSE" 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/" homepage = "https://github.com/jpanther/congo/"
demosite = "https://jpanther.github.io/congo/" demosite = "https://jpanther.github.io/congo/"