diff --git a/CHANGELOG.md b/CHANGELOG.md index dad487e8..c72415e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [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 ### 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 - 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.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 diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index 89b6a391..513badb6 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -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) diff --git a/assets/css/main.css b/assets/css/main.css index c4b39302..816618f5 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -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 components; diff --git a/assets/js/search.js b/assets/js/search.js index 89a0b442..c15de8fe 100644 --- a/assets/js/search.js +++ b/assets/js/search.js @@ -84,6 +84,8 @@ function hideSearch() { if (searchVisible) { document.body.style.overflow = "visible"; wrapper.style.visibility = "hidden"; + input.value = ""; + output.innerHTML = ""; document.activeElement.blur(); searchVisible = false; } diff --git a/i18n/de.yaml b/i18n/de.yaml index e9a2dd53..3136b93b 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -1,24 +1,24 @@ article: anchor_label: "Anker" date: "{{ .Date }}" - # date_updated: "Updated: {{ .Date }}" + date_updated: "Aktualisiert: {{ .Date }}" draft: "Entwurf" edit_title: "Inhalt bearbeiten" reading_time: one: "{{ .Count }} min" other: "{{ .Count }} min" reading_time_title: "Lesezeit" - # table_of_contents: "Table of Contents" - # word_count: - # one: "{{ .Count }} word" - # other: "{{ .Count }} words" + table_of_contents: "Inhaltsverzeichnis" + word_count: + one: "{{ .Count }} Wort" + other: "{{ .Count }} Wörter" author: byline_title: "Autor" -# code: -# copy: "Copy" -# copied: "Copied" +code: + copy: "Kopieren" + copied: "Kopiert" error: 404_title: "Seite nicht gefunden :confused:" @@ -34,14 +34,14 @@ list: externalurl_title: "Link zu einer externen Seite" no_articles: "Es gibt hier noch keine Beiträge." -# nav: -# scroll_to_top_title: "Scroll to top" -# skip_to_main: "Skip to main content" +nav: + scroll_to_top_title: "Zum Anfang scrollen" + skip_to_main: "Zum Hauptinhalt springen" -# search: -# open_button_title: "Search (/)" -# close_button_title: "Close (Esc)" -# input_placeholder: "Search" +search: + open_button_title: "Suche (/)" + close_button_title: "Schließen (Esc)" + input_placeholder: "Suchen" sharing: email: "Per E-Mail teilen" @@ -52,4 +52,4 @@ sharing: twitter: "Auf Twitter teilen" shortcode: - recent_articles: "Kürzlich" + recent_articles: "Neue Beiträge" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index f73c4da0..dd5fd6f7 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -26,7 +26,7 @@ > {{- partial "header.html" . -}} -
+
{{- block "main" . }}{{- end }} {{ if and (.Site.Params.showScrollToTop | default true) (gt .WordCount 200) }}