Skip to content

Commit

Permalink
🔖 Release v2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jpanther committed Apr 3, 2022
2 parents 56fc286 + 00ab4d7 commit 265e0ee
Show file tree
Hide file tree
Showing 13 changed files with 262 additions and 162 deletions.
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
16 changes: 7 additions & 9 deletions assets/css/compiled/main.css
Original file line number Diff line number Diff line change
@@ -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 */

Expand Down Expand Up @@ -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%;
}
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion assets/css/main.css
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
1 change: 1 addition & 0 deletions exampleSite/content/docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/content/docs/homepage-layout/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"]`.
3 changes: 3 additions & 0 deletions exampleSite/content/users.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
55 changes: 55 additions & 0 deletions i18n/he.yaml
Original file line number Diff line number Diff line change
@@ -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: "חדשים"
6 changes: 3 additions & 3 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
<h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">
{{ .Title | emojify }}
</h1>
<div class="mt-8 mb-12 text-base text-neutral-500 dark:text-neutral-400">
<div class="mt-8 mb-12 text-base text-neutral-500 dark:text-neutral-400 print:hidden">
{{ partial "article-meta.html" (dict "context" . "scope" "single") }}
</div>
</header>
<section class="flex flex-col max-w-full mt-0 prose lg:flex-row dark:prose-invert">
{{ if and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in .TableOfContents "<ul") }}
<div class="order-first px-0 lg:max-w-xs ltr:lg:pl-8 rtl:lg:pr-8 lg:order-last">
<div class="ltr:pl-5 rtl:pr-5 toc lg:sticky lg:top-10">
<div class="ltr:pl-5 rtl:pr-5 toc lg:sticky lg:top-10 print:hidden">
{{ partial "toc.html" . }}
</div>
</div>
Expand All @@ -23,7 +23,7 @@ <h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">
{{ .Content | emojify }}
</div>
</section>
<footer class="pt-8 max-w-prose">
<footer class="pt-8 max-w-prose print:hidden">
{{ partial "author.html" . }}
{{ partial "sharing-links.html" . }}
{{ partial "article-pagination.html" . }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/breadcrumbs.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ol class="text-sm text-neutral-500 dark:text-neutral-400">
<ol class="text-sm text-neutral-500 dark:text-neutral-400 print:hidden">
{{ template "crumb" (dict "p1" . "p2" .) }}
</ol>
{{ define "crumb" }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<footer class="py-10">
<footer class="py-10 print:hidden">
{{/* Footer menu */}}
{{ if .Site.Menus.footer }}
<nav class="pb-4 text-base font-medium text-neutral-500 dark:text-neutral-400">
<ul class="flex flex-col list-none sm:flex-row">
{{ range .Site.Menus.footer }}
<li class="mb-1 sm:mb-0 sm:mr-7 sm:last:mr-0">
<li class="mb-1 ltr:text-right rtl:text-left sm:mb-0 ltr:sm:mr-7 ltr:sm:last:mr-0 rtl:sm:ml-7 rtl:sm:last:ml-0">
<a
class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
href="{{ .URL }}"
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/header.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<header
class="flex justify-between py-6 font-semibold sm:items-center sm:py-10 text-neutral-900 dark:text-neutral"
class="flex justify-between py-6 font-semibold sm:items-center sm:py-10 text-neutral-900 dark:text-neutral print:hidden"
>
{{/* Site logo/title */}}
<div>
Expand Down
Loading

0 comments on commit 265e0ee

Please sign in to comment.