diff --git a/CHANGELOG.md b/CHANGELOG.md index cc04d41c2..f061015e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +## [2.7.4] - 2023-11-05 + +### Fixed + +- Links with non-whitespace characters preceeding them are prefixed with a space ([#695](https://github.com/jpanther/congo/issues/695)) + ## [2.7.3] - 2023-10-31 ### Fixed @@ -774,7 +780,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.7.3...HEAD +[Unreleased]: https://github.com/jpanther/congo/compare/v2.7.4...HEAD +[2.7.4]: https://github.com/jpanther/congo/compare/v2.7.3...v2.7.4 [2.7.3]: https://github.com/jpanther/congo/compare/v2.7.2...v2.7.3 [2.7.2]: https://github.com/jpanther/congo/compare/v2.7.1...v2.7.2 [2.7.1]: https://github.com/jpanther/congo/compare/v2.7.0...v2.7.1 diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index 0451c90ee..ae315687e 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -1,4 +1,4 @@ -/*! Congo v2.7.3 | MIT License | https://github.com/jpanther/congo */ +/*! Congo v2.7.4 | MIT License | https://github.com/jpanther/congo */ /*! tailwindcss v3.3.5 | MIT License | https://tailwindcss.com */ diff --git a/assets/css/main.css b/assets/css/main.css index dd8f26b20..e0036ff5e 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -1,4 +1,4 @@ -/*! Congo v2.7.3 | MIT License | https://github.com/jpanther/congo */ +/*! Congo v2.7.4 | MIT License | https://github.com/jpanther/congo */ @tailwind base; @tailwind components; diff --git a/assets/icons/threads.svg b/assets/icons/threads.svg new file mode 100644 index 000000000..aa27c5f2a --- /dev/null +++ b/assets/icons/threads.svg @@ -0,0 +1 @@ + diff --git a/exampleSite/content/samples/icons/index.de.md b/exampleSite/content/samples/icons/index.de.md index 4f38237fb..7f694a625 100644 --- a/exampleSite/content/samples/icons/index.de.md +++ b/exampleSite/content/samples/icons/index.de.md @@ -71,6 +71,7 @@ Die vollständige Liste der integrierten Icons und ihre entsprechenden Namen fin | sun | {{< icon sun >}} | | tag | {{< icon tag >}} | | telegram | {{< icon telegram >}} | +| threads | {{< icon threads >}} | | tiktok | {{< icon tiktok >}} | | translate | {{< icon translate >}} | | triangle-exclamation | {{< icon triangle-exclamation >}} | diff --git a/exampleSite/content/samples/icons/index.es.md b/exampleSite/content/samples/icons/index.es.md index a70bf5253..91cd4f066 100644 --- a/exampleSite/content/samples/icons/index.es.md +++ b/exampleSite/content/samples/icons/index.es.md @@ -71,6 +71,7 @@ La lista completa de íconos incorporados y sus nombres correspondientes se pued | sun | {{< icon sun >}} | | tag | {{< icon tag >}} | | telegram | {{< icon telegram >}} | +| threads | {{< icon threads >}} | | tiktok | {{< icon tiktok >}} | | translate | {{< icon translate >}} | | triangle-exclamation | {{< icon triangle-exclamation >}} | diff --git a/exampleSite/content/samples/icons/index.ja.md b/exampleSite/content/samples/icons/index.ja.md index 2e5b92418..7ee8661d1 100644 --- a/exampleSite/content/samples/icons/index.ja.md +++ b/exampleSite/content/samples/icons/index.ja.md @@ -71,6 +71,7 @@ Congo は[FontAwesome 6](https://fontawesome.com/icons)のアイコンをサポ | sun | {{< icon sun >}} | | tag | {{< icon tag >}} | | telegram | {{< icon telegram >}} | +| threads | {{< icon threads >}} | | tiktok | {{< icon tiktok >}} | | translate | {{< icon translate >}} | | triangle-exclamation | {{< icon triangle-exclamation >}} | diff --git a/exampleSite/content/samples/icons/index.md b/exampleSite/content/samples/icons/index.md index 8f13a24d0..80cc51900 100644 --- a/exampleSite/content/samples/icons/index.md +++ b/exampleSite/content/samples/icons/index.md @@ -71,6 +71,7 @@ The full list of built-in icons and their corresponding names can referenced bel | sun | {{< icon sun >}} | | tag | {{< icon tag >}} | | telegram | {{< icon telegram >}} | +| threads | {{< icon threads >}} | | tiktok | {{< icon tiktok >}} | | translate | {{< icon translate >}} | | triangle-exclamation | {{< icon triangle-exclamation >}} | diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index d0d013aea..e8799b1a9 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -1,5 +1,5 @@ -{{ $link := .Destination }} -{{ $isRemote := strings.HasPrefix $link "http" }} +{{- $link := .Destination -}} +{{- $isRemote := strings.HasPrefix $link "http" -}} {{- if not $isRemote }} {{ $url := urls.Parse .Destination }} {{ if $url.Path }} diff --git a/package.json b/package.json index 4c913c4ad..188f7d2d5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hugo-congo-theme", - "version": "2.7.3", + "version": "2.7.4", "description": "Congo theme for Hugo", "scripts": { "preinstall": "rimraf assets/lib",