🔖 Release v2.0.4

pull/155/head v2.0.4
James Panther 2022-02-09 10:22:10 +11:00
commit 3930c5bc4f
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
9 changed files with 81 additions and 58 deletions

View File

@ -6,6 +6,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## [Unreleased] ## [Unreleased]
## [2.0.4] - 2022-02-09
### Changed
- Updated German translation ([#110](https://github.com/jpanther/congo/pull/110))
- Upgrade to Tailwind v3.0.19
### Fixed
- Main content area not growing to fill screen vertically
- Search results not cleared when search is dismissed ([#109](https://github.com/jpanther/congo/pull/109))
- Emoji strings not displaying in search results
## [2.0.3] - 2022-02-07 ## [2.0.3] - 2022-02-07
### Changed ### Changed
@ -312,7 +325,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.0.3...HEAD [unreleased]: https://github.com/jpanther/congo/compare/v2.0.4...HEAD
[2.0.4]: https://github.com/jpanther/congo/compare/v2.0.3...v2.0.4
[2.0.3]: https://github.com/jpanther/congo/compare/v2.0.2...v2.0.3 [2.0.3]: https://github.com/jpanther/congo/compare/v2.0.2...v2.0.3
[2.0.2]: https://github.com/jpanther/congo/compare/v2.0.1...v2.0.2 [2.0.2]: https://github.com/jpanther/congo/compare/v2.0.1...v2.0.2
[2.0.1]: https://github.com/jpanther/congo/compare/v2.0.0...v2.0.1 [2.0.1]: https://github.com/jpanther/congo/compare/v2.0.0...v2.0.1

View File

@ -1,6 +1,6 @@
/*! Congo v2.0.3 | MIT License | https://github.com/jpanther/congo */ /*! Congo v2.0.4 | MIT License | https://github.com/jpanther/congo */
/*! tailwindcss v3.0.18 | MIT License | https://tailwindcss.com */ /*! tailwindcss v3.0.19 | MIT License | https://tailwindcss.com */
/* /*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)

View File

@ -1,4 +1,4 @@
/*! Congo v2.0.3 | MIT License | https://github.com/jpanther/congo */ /*! Congo v2.0.4 | MIT License | https://github.com/jpanther/congo */
@tailwind base; @tailwind base;
@tailwind components; @tailwind components;

View File

@ -84,6 +84,8 @@ function hideSearch() {
if (searchVisible) { if (searchVisible) {
document.body.style.overflow = "visible"; document.body.style.overflow = "visible";
wrapper.style.visibility = "hidden"; wrapper.style.visibility = "hidden";
input.value = "";
output.innerHTML = "";
document.activeElement.blur(); document.activeElement.blur();
searchVisible = false; searchVisible = false;
} }

View File

@ -1,24 +1,24 @@
article: article:
anchor_label: "Anker" anchor_label: "Anker"
date: "{{ .Date }}" date: "{{ .Date }}"
# date_updated: "Updated: {{ .Date }}" date_updated: "Aktualisiert: {{ .Date }}"
draft: "Entwurf" draft: "Entwurf"
edit_title: "Inhalt bearbeiten" edit_title: "Inhalt bearbeiten"
reading_time: reading_time:
one: "{{ .Count }} min" one: "{{ .Count }} min"
other: "{{ .Count }} min" other: "{{ .Count }} min"
reading_time_title: "Lesezeit" reading_time_title: "Lesezeit"
# table_of_contents: "Table of Contents" table_of_contents: "Inhaltsverzeichnis"
# word_count: word_count:
# one: "{{ .Count }} word" one: "{{ .Count }} Wort"
# other: "{{ .Count }} words" other: "{{ .Count }} Wörter"
author: author:
byline_title: "Autor" byline_title: "Autor"
# code: code:
# copy: "Copy" copy: "Kopieren"
# copied: "Copied" copied: "Kopiert"
error: error:
404_title: "Seite nicht gefunden :confused:" 404_title: "Seite nicht gefunden :confused:"
@ -34,14 +34,14 @@ list:
externalurl_title: "Link zu einer externen Seite" externalurl_title: "Link zu einer externen Seite"
no_articles: "Es gibt hier noch keine Beiträge." no_articles: "Es gibt hier noch keine Beiträge."
# nav: nav:
# scroll_to_top_title: "Scroll to top" scroll_to_top_title: "Zum Anfang scrollen"
# skip_to_main: "Skip to main content" skip_to_main: "Zum Hauptinhalt springen"
# search: search:
# open_button_title: "Search (/)" open_button_title: "Suche (/)"
# close_button_title: "Close (Esc)" close_button_title: "Schließen (Esc)"
# input_placeholder: "Search" input_placeholder: "Suchen"
sharing: sharing:
email: "Per E-Mail teilen" email: "Per E-Mail teilen"
@ -52,4 +52,4 @@ sharing:
twitter: "Auf Twitter teilen" twitter: "Auf Twitter teilen"
shortcode: shortcode:
recent_articles: "Kürzlich" recent_articles: "Neue Beiträge"

View File

@ -26,7 +26,7 @@
> >
</div> </div>
{{- partial "header.html" . -}} {{- partial "header.html" . -}}
<main id="main-content" class="relative"> <main id="main-content" class="relative grow">
{{- block "main" . }}{{- end }} {{- block "main" . }}{{- end }}
{{ if and (.Site.Params.showScrollToTop | default true) (gt .WordCount 200) }} {{ if and (.Site.Params.showScrollToTop | default true) (gt .WordCount 200) }}
<div <div

View File

@ -1,6 +1,13 @@
{{- $index := slice -}} {{- $index := slice -}}
{{- range .Site.RegularPages -}} {{- range .Site.RegularPages -}}
{{ $section := .Site.GetPage "section" .Section }} {{- $section := .Site.GetPage "section" .Section -}}
{{- $index = $index | append (dict "date" (.Date | time.Format (.Site.Language.Params.dateFormat | default ":date_long")) "title" .Title "section" $section.Title "summary" .Summary "content" (.Plain | safeJS) "permalink" .RelPermalink) -}} {{- $index = $index | append (dict
"date" (.Date | time.Format (.Site.Language.Params.dateFormat | default ":date_long"))
"title" (.Title | emojify | safeJS)
"section" ($section.Title | emojify | safeJS)
"summary" (.Summary | emojify | safeJS)
"content" (.Plain | emojify | safeJS)
"permalink" .RelPermalink
) -}}
{{- end -}} {{- end -}}
{{- $index | jsonify -}} {{- $index | jsonify -}}

68
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "hugo-congo-theme", "name": "hugo-congo-theme",
"version": "2.0.0", "version": "2.0.3",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "hugo-congo-theme", "name": "hugo-congo-theme",
"version": "2.0.0", "version": "2.0.3",
"hasInstallScript": true, "hasInstallScript": true,
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
@ -354,9 +354,9 @@
} }
}, },
"node_modules/caniuse-lite": { "node_modules/caniuse-lite": {
"version": "1.0.30001305", "version": "1.0.30001309",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001305.tgz", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001309.tgz",
"integrity": "sha512-p7d9YQMji8haf0f+5rbcv9WlQ+N5jMPfRAnUmZRlNxsNeBO3Yr7RYG6M2uTY1h9tCVdlkJg6YNNc4kiAiBLdWA==", "integrity": "sha512-Pl8vfigmBXXq+/yUz1jUwULeq9xhMJznzdc/xwl4WclDAuebcTHVefpz8lE/bMI+UN7TOkSSe7B7RnZd6+dzjA==",
"dev": true, "dev": true,
"peer": true, "peer": true,
"funding": { "funding": {
@ -1294,9 +1294,9 @@
"dev": true "dev": true
}, },
"node_modules/electron-to-chromium": { "node_modules/electron-to-chromium": {
"version": "1.4.63", "version": "1.4.66",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.63.tgz", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.66.tgz",
"integrity": "sha512-e0PX/LRJPFRU4kzJKLvTobxyFdnANCvcoDCe8XcyTqP58nTWIwdsHvXLIl1RkB39X5yaosLaroMASWB0oIsgCA==", "integrity": "sha512-f1RXFMsvwufWLwYUxTiP7HmjprKXrqEWHiQkjAYa9DJeVIlZk5v8gBGcaV+FhtXLly6C1OTVzQY+2UQrACiLlg==",
"dev": true, "dev": true,
"peer": true "peer": true
}, },
@ -1378,9 +1378,9 @@
} }
}, },
"node_modules/fraction.js": { "node_modules/fraction.js": {
"version": "4.1.2", "version": "4.1.3",
"resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.1.2.tgz", "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.1.3.tgz",
"integrity": "sha512-o2RiJQ6DZaR/5+Si0qJUIy637QMRudSi9kU/FFzx9EZazrIdnBgpU+3sEWCxAVhH2RtxW2Oz+T4p2o8uOPVcgA==", "integrity": "sha512-pUHWWt6vHzZZiQJcM6S/0PXfS+g6FM4BF5rj9wZyreivhQPdsh5PpE25VtSNxq80wHS5RfY51Ii+8Z0Zl/pmzg==",
"dev": true, "dev": true,
"peer": true, "peer": true,
"engines": { "engines": {
@ -1714,9 +1714,9 @@
} }
}, },
"node_modules/minimatch": { "node_modules/minimatch": {
"version": "3.0.4", "version": "3.0.5",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.5.tgz",
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "integrity": "sha512-tUpxzX0VAzJHjLu0xUfFv1gwVp9ba3IOuRAVH2EGuRW8a5emA2FlACLqiT/lDVtS1W+TGNwqz3sWaNyLgDJWuw==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"brace-expansion": "^1.1.7" "brace-expansion": "^1.1.7"
@ -2181,9 +2181,9 @@
} }
}, },
"node_modules/tailwindcss": { "node_modules/tailwindcss": {
"version": "3.0.18", "version": "3.0.19",
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.0.18.tgz", "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.0.19.tgz",
"integrity": "sha512-ihPTpEyA5ANgZbwKlgrbfnzOp9R5vDHFWmqxB1PT8NwOGCOFVVMl+Ps1cQQ369acaqqf1BEF77roCwK0lvNmTw==", "integrity": "sha512-rjsdfz/qZya5xQ0OVynEMETgWq1CacmftgMYeXXh6bRM5vxsNwRSbMJsCCIjq/w67om9VP/AFMolOwiE+5VKig==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"arg": "^5.0.1", "arg": "^5.0.1",
@ -2205,7 +2205,7 @@
"postcss-selector-parser": "^6.0.9", "postcss-selector-parser": "^6.0.9",
"postcss-value-parser": "^4.2.0", "postcss-value-parser": "^4.2.0",
"quick-lru": "^5.1.1", "quick-lru": "^5.1.1",
"resolve": "^1.21.0" "resolve": "^1.22.0"
}, },
"bin": { "bin": {
"tailwind": "lib/cli.js", "tailwind": "lib/cli.js",
@ -2535,9 +2535,9 @@
"dev": true "dev": true
}, },
"caniuse-lite": { "caniuse-lite": {
"version": "1.0.30001305", "version": "1.0.30001309",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001305.tgz", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001309.tgz",
"integrity": "sha512-p7d9YQMji8haf0f+5rbcv9WlQ+N5jMPfRAnUmZRlNxsNeBO3Yr7RYG6M2uTY1h9tCVdlkJg6YNNc4kiAiBLdWA==", "integrity": "sha512-Pl8vfigmBXXq+/yUz1jUwULeq9xhMJznzdc/xwl4WclDAuebcTHVefpz8lE/bMI+UN7TOkSSe7B7RnZd6+dzjA==",
"dev": true, "dev": true,
"peer": true "peer": true
}, },
@ -3312,9 +3312,9 @@
"dev": true "dev": true
}, },
"electron-to-chromium": { "electron-to-chromium": {
"version": "1.4.63", "version": "1.4.66",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.63.tgz", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.66.tgz",
"integrity": "sha512-e0PX/LRJPFRU4kzJKLvTobxyFdnANCvcoDCe8XcyTqP58nTWIwdsHvXLIl1RkB39X5yaosLaroMASWB0oIsgCA==", "integrity": "sha512-f1RXFMsvwufWLwYUxTiP7HmjprKXrqEWHiQkjAYa9DJeVIlZk5v8gBGcaV+FhtXLly6C1OTVzQY+2UQrACiLlg==",
"dev": true, "dev": true,
"peer": true "peer": true
}, },
@ -3383,9 +3383,9 @@
} }
}, },
"fraction.js": { "fraction.js": {
"version": "4.1.2", "version": "4.1.3",
"resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.1.2.tgz", "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.1.3.tgz",
"integrity": "sha512-o2RiJQ6DZaR/5+Si0qJUIy637QMRudSi9kU/FFzx9EZazrIdnBgpU+3sEWCxAVhH2RtxW2Oz+T4p2o8uOPVcgA==", "integrity": "sha512-pUHWWt6vHzZZiQJcM6S/0PXfS+g6FM4BF5rj9wZyreivhQPdsh5PpE25VtSNxq80wHS5RfY51Ii+8Z0Zl/pmzg==",
"dev": true, "dev": true,
"peer": true "peer": true
}, },
@ -3644,9 +3644,9 @@
} }
}, },
"minimatch": { "minimatch": {
"version": "3.0.4", "version": "3.0.5",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.5.tgz",
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "integrity": "sha512-tUpxzX0VAzJHjLu0xUfFv1gwVp9ba3IOuRAVH2EGuRW8a5emA2FlACLqiT/lDVtS1W+TGNwqz3sWaNyLgDJWuw==",
"dev": true, "dev": true,
"requires": { "requires": {
"brace-expansion": "^1.1.7" "brace-expansion": "^1.1.7"
@ -3944,9 +3944,9 @@
"dev": true "dev": true
}, },
"tailwindcss": { "tailwindcss": {
"version": "3.0.18", "version": "3.0.19",
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.0.18.tgz", "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.0.19.tgz",
"integrity": "sha512-ihPTpEyA5ANgZbwKlgrbfnzOp9R5vDHFWmqxB1PT8NwOGCOFVVMl+Ps1cQQ369acaqqf1BEF77roCwK0lvNmTw==", "integrity": "sha512-rjsdfz/qZya5xQ0OVynEMETgWq1CacmftgMYeXXh6bRM5vxsNwRSbMJsCCIjq/w67om9VP/AFMolOwiE+5VKig==",
"dev": true, "dev": true,
"requires": { "requires": {
"arg": "^5.0.1", "arg": "^5.0.1",
@ -3968,7 +3968,7 @@
"postcss-selector-parser": "^6.0.9", "postcss-selector-parser": "^6.0.9",
"postcss-value-parser": "^4.2.0", "postcss-value-parser": "^4.2.0",
"quick-lru": "^5.1.1", "quick-lru": "^5.1.1",
"resolve": "^1.21.0" "resolve": "^1.22.0"
} }
}, },
"to-regex-range": { "to-regex-range": {

View File

@ -1,6 +1,6 @@
{ {
"name": "hugo-congo-theme", "name": "hugo-congo-theme",
"version": "2.0.3", "version": "2.0.4",
"description": "Congo theme for Hugo", "description": "Congo theme for Hugo",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {