diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a311934..e08b89f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +## [2.1.1] - 2022-04-03 + +### Added + +- Print styles to hide unnecessary elements when printing ([#155](https://github.com/jpanther/congo/pull/155)) +- Hebrew translation ([#163](https://github.com/jpanther/congo/pull/163)) + +### Fixed + +- Footer menu displays incorrectly in RTL languages ([#165](https://github.com/jpanther/congo/pull/165)) + ## [2.1.0] - 2022-03-14 ### Added @@ -367,7 +378,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.1.0...HEAD +[unreleased]: https://github.com/jpanther/congo/compare/v2.1.1...HEAD +[2.1.1]: https://github.com/jpanther/congo/compare/v2.1.0...v2.1.1 [2.1.0]: https://github.com/jpanther/congo/compare/v2.0.5...v2.1.0 [2.0.5]: https://github.com/jpanther/congo/compare/v2.0.4...v2.0.5 [2.0.4]: https://github.com/jpanther/congo/compare/v2.0.3...v2.0.4 diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index 6e15f544..aedc2346 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -1,4 +1,4 @@ -/*! Congo v2.1.0 | MIT License | https://github.com/jpanther/congo */ +/*! Congo v2.1.1 | MIT License | https://github.com/jpanther/congo */ /*! tailwindcss v3.0.23 | MIT License | https://tailwindcss.com */ @@ -2601,15 +2601,17 @@ body a, body button { color: rgba(var(--color-neutral-700), var(--tw-text-opacity)); } +@media print { + .print\:hidden { + display: none; + } +} + @media (min-width: 640px) { .sm\:mb-0 { margin-bottom: 0px; } - .sm\:mr-7 { - margin-right: 1.75rem; - } - .sm\:w-1\/2 { width: 50%; } @@ -2641,10 +2643,6 @@ body a, body button { line-height: 1.75rem; } - .sm\:last\:mr-0:last-child { - margin-right: 0px; - } - [dir="ltr"] .ltr\:sm\:mr-7 { margin-right: 1.75rem; } diff --git a/assets/css/main.css b/assets/css/main.css index f1d6531b..28cdf32b 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -1,4 +1,4 @@ -/*! Congo v2.1.0 | MIT License | https://github.com/jpanther/congo */ +/*! Congo v2.1.1 | MIT License | https://github.com/jpanther/congo */ @tailwind base; @tailwind components; diff --git a/exampleSite/content/docs/configuration.md b/exampleSite/content/docs/configuration.md index ebc5dd1b..9f5153a2 100644 --- a/exampleSite/content/docs/configuration.md +++ b/exampleSite/content/docs/configuration.md @@ -54,6 +54,7 @@ The theme currently supports the following languages by default: | :cn: Chinese | `zh` | | :fr: French | `fr` | | :de: German | `de` | +| :israel: Hebrew | `he` | | :brazil: Portuguese (Brazil) | `pt-br` | | :portugal: Portuguese (Portugal) | `pt-pt` | | :es: Spanish (Spain) | `es` | diff --git a/exampleSite/content/docs/homepage-layout/index.md b/exampleSite/content/docs/homepage-layout/index.md index a1d09294..e0551be2 100644 --- a/exampleSite/content/docs/homepage-layout/index.md +++ b/exampleSite/content/docs/homepage-layout/index.md @@ -49,4 +49,4 @@ All homepage layouts have the option of displaying recent articles below the mai ![Profile layout with recent articles](home-profile-list.jpg) -The articles listed in this section are derived from the `homepage.mainSections` setting which allows for whatever content types you are using on your website. For instance, if you had content sections for _posts_ and _projects_ you could set this setting to `["posts", "projects"]` and all the articles in these two sections would be used to populate the recent list. The theme expects this setting to be an array so if you only use one section for all your content, you should set this accordingly: `["blog"]`. +The articles listed in this section are derived from the `mainSections` setting which allows for whatever content types you are using on your website. For instance, if you had content sections for _posts_ and _projects_ you could set this setting to `["posts", "projects"]` and all the articles in these two sections would be used to populate the recent list. The theme expects this setting to be an array so if you only use one section for all your content, you should set this accordingly: `["blog"]`. diff --git a/exampleSite/content/users.md b/exampleSite/content/users.md index 625cd61c..94f8986a 100644 --- a/exampleSite/content/users.md +++ b/exampleSite/content/users.md @@ -24,5 +24,8 @@ Real websites that are built with Congo. | [leif.io](https://leif.io/) | Personal site and Tech blog | | [dr460nf1r3.org](https://dr460nf1r3.org/) | Personal site and Blog | | [OCram85.com](https://ocram85.com) | Personal site and Blog | +| [mackiser.github.io](https://mackiser.github.io) | Personal site and Blog | +| [jamesmillner.dev](https://jamesmillner.dev) | Personal site and Blog | +| [jeremic.ca](https://jeremic.ca) | Personal site and Blog | **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/i18n/he.yaml b/i18n/he.yaml new file mode 100644 index 00000000..444084d2 --- /dev/null +++ b/i18n/he.yaml @@ -0,0 +1,55 @@ +article: + anchor_label: "עוגן" + date: "{{ .Date }}" + date_updated: "עודכן: {{ .Date }}" + draft: "טיוטה" + edit_title: "ערוך תוכן" + reading_time: + one: "{{ .Count }} דקה" + other: "{{ .Count }} דקות" + reading_time_title: "זמן קריאה" + table_of_contents: "תוכן עניינים" + word_count: + one: "{{ .Count }} מילה" + other: "{{ .Count }} מילים" + +author: + byline_title: "מחבר" + +code: + copy: "העתק" + copied: "הועתק" + +error: + 404_title: "הדף לא נמצא :confused:" + 404_error: "שגיאה 404" + 404_description: "נראה שהדף שביקשת לא קיים." + +footer: + dark_appearance: "מעבר למצב לילה" + light_appearance: "מעבר למצב יום" + powered_by: "בנוי בעזרת {{ .Hugo }} & {{ .Congo }}" + +list: + externalurl_title: "קישור לאתר חיצוני" + no_articles: "אין כרגע מאמרים ברשימה זו." + +nav: + scroll_to_top_title: "חזרה למעלה" + skip_to_main: "דילוג לתוכן" + +search: + open_button_title: "חיפוש (/)" + close_button_title: "סגירה (Esc)" + input_placeholder: "חיפוש" + +sharing: + email: "שליחת אימייל" + facebook: "שיתוף בפייסבוק" + linkedin: "שיתוף בלינקדאין" + pinterest: "שיתוף בפינטרסט" + reddit: "שליחה לרדיט" + twitter: "ציוץ בטוויטר" + +shortcode: + recent_articles: "חדשים" diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 03e9a9ef..8c58014b 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -7,14 +7,14 @@

{{ .Title | emojify }}

-
+
{{ partial "article-meta.html" (dict "context" . "scope" "single") }}
{{ if and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in .TableOfContents " -
+
{{ partial "toc.html" . }}
@@ -23,7 +23,7 @@ {{ .Content | emojify }}
-