Skip to content

Commit

Permalink
🔖 Release v1.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jpanther committed Jan 24, 2022
2 parents c49a1b1 + b0ee724 commit d4bbc01
Show file tree
Hide file tree
Showing 22 changed files with 98 additions and 36 deletions.
20 changes: 18 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

## [1.6.4] - 2022-01-24

### Added

- Turkish translation ([#90](https://github.com/jpanther/congo/pull/90))

### Changed

- Article updated date formatting and i18n ([#91](https://github.com/jpanther/congo/pull/91))
- Upgrade to Mermaid v8.13.10

### Fixed

- Article metadata not wrapping at small viewports ([#91](https://github.com/jpanther/congo/pull/91))

## [1.6.3] - 2022-01-19

### Added
Expand All @@ -19,7 +34,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

### Fixed

- Emoji characters in article titles not appearing on list pages and in HTML metadata ([#84](https://github.com/jpanther/congo/pull/82))
- Emoji characters in article titles not appearing on list pages and in HTML metadata ([#84](https://github.com/jpanther/congo/pull/84))

## [1.6.2] - 2022-01-07

Expand Down Expand Up @@ -236,7 +251,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/v1.6.3...HEAD
[unreleased]: https://github.com/jpanther/congo/compare/v1.6.4...HEAD
[1.6.4]: https://github.com/jpanther/congo/compare/v1.6.3...v1.6.4
[1.6.3]: https://github.com/jpanther/congo/compare/v1.6.2...v1.6.3
[1.6.2]: https://github.com/jpanther/congo/compare/v1.6.1...v1.6.2
[1.6.1]: https://github.com/jpanther/congo/compare/v1.6.0...v1.6.1
Expand Down
2 changes: 1 addition & 1 deletion assets/css/compiled/main.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Congo v1.6.3 | MIT License | https://github.com/jpanther/congo */
/*! Congo v1.6.4 | MIT License | https://github.com/jpanther/congo */

/*! tailwindcss v2.2.19 | MIT License | https://tailwindcss.com */

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 v1.6.3 | MIT License | https://github.com/jpanther/congo */
/*! Congo v1.6.4 | MIT License | https://github.com/jpanther/congo */

@tailwind base;
@tailwind components;
Expand Down
2 changes: 1 addition & 1 deletion assets/lib/mermaid/mermaid.min.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ defaultContentLanguage = "en"
title = "Congo"
# copyright = "Copy, _right?_ :thinking_face:"

enableEmoji = true
enableRobotsTXT = true

summaryLength = 0
Expand Down
1 change: 0 additions & 1 deletion exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ theme = "congo"
languageCode = "en-AU"
defaultContentLanguage = "en"
title = "Congo"
enableEmoji = true
summaryLength = 0

[author]
Expand Down
1 change: 0 additions & 1 deletion exampleSite/content/docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ Note that the variable names provided in this table use dot notation to simplify
|`defaultContentLanguage`|string|`"en"`|This value determines the language of theme components."|
|`title`|string|`"Congo"`|The title of the website. This will be displayed in the site header and footer.|
|`copyright`|string|_Not set_|A Markdown string containing the copyright message to be displayed in the site footer. If none is provided, Congo will automatically generate a copyright string using the site `title`.
|`enableEmoji`|boolean|`true`|Whether emoji strings in content should be converted to emoji symbols.|
|`enableRobotsTXT`|boolean|`true`|When enabled a `robots.txt` file will be created in the site root that allows search engines to crawl the entire site. Set to `false` if you wish to provide your own file.|
|`summaryLength`|integer|`0`|The number of words that are used to generate the article summary when one is not provided in the [front matter]({{< ref "front-matter" >}}). A value of `0` will use the first sentence. This value has no effect when summaries are hidden.|
|`author.name`|string|_Not set_|The author's name. This will be displayed in article footers, and on the homepage when the profile layout is used.|
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/content/samples/emoji.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Emoji is supported throughout Congo by default. Emoji can be used in titles, men
**Note:** The rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack.
{{< /alert >}}

Emoji replacements are controlled via the `enableEmoji` parameter in your [site configuration]({{< ref "configuration#site-configuration" >}}). Set it to `true` and then you can type Emoji shorthand codes directly in content files.
Emoji replacements are automatic throughout Congo, so you can use shorthand codes in your content and front matter and they will be converted to their corresponding symbols at build time.

**Example:** `see_no_evil` :see_no_evil:, `hear_no_evil` :hear_no_evil:, `speak_no_evil` :speak_no_evil:.

Expand Down
2 changes: 2 additions & 0 deletions exampleSite/content/samples/placeholder-text.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
---
title: "Placeholder Text"
date: "2019-03-09"
lastmod: "2022-01-24"
draft: true
description: "Lorem Ipsum Dolor Si Amet"
tags: ["markdown", "text", "sample", "latin"]
showDateUpdated: true
xml: false
---

Expand Down
1 change: 1 addition & 0 deletions i18n/de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ article:
one: "{{ .Count }} min"
other: "{{ .Count }} min"
reading_time_title: "Lesezeit"
# updated: "Updated"
# word_count:
# one: "{{ .Count }} word"
# other: "{{ .Count }} words"
Expand Down
1 change: 1 addition & 0 deletions i18n/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ article:
one: "{{ .Count }} min"
other: "{{ .Count }} mins"
reading_time_title: "Reading time"
updated: "Updated"
word_count:
one: "{{ .Count }} word"
other: "{{ .Count }} words"
Expand Down
7 changes: 4 additions & 3 deletions i18n/es.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ article:
one: "{{ .Count }} min"
other: "{{ .Count }} mins"
reading_time_title: "Tiempo de lectura"
# word_count:
# one: "{{ .Count }} word"
# other: "{{ .Count }} words"
updated: "Actualizado"
word_count:
one: "{{ .Count }} palabra"
other: "{{ .Count }} palabras"

author:
byline_title: "Autor"
Expand Down
1 change: 1 addition & 0 deletions i18n/fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ article:
one: "{{ .Count }} min"
other: "{{ .Count }} mins"
reading_time_title: "Temps de lecture"
# updated: "Updated"
# word_count:
# one: "{{ .Count }} word"
# other: "{{ .Count }} words"
Expand Down
1 change: 1 addition & 0 deletions i18n/pt-BR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ article:
one: "{{ .Count }} minuto"
other: "{{ .Count }} minutos"
reading_time_title: "Tempo de leitura"
# updated: "Updated"
# word_count:
# one: "{{ .Count }} word"
# other: "{{ .Count }} words"
Expand Down
41 changes: 41 additions & 0 deletions i18n/tr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
article:
anchor_label: "Anchor"
draft: "Taslak"
edit_title: "İçeriği düzenle"
reading_time:
one: "{{ .Count }} dk"
other: "{{ .Count }} dk"
reading_time_title: "Okuma süresi"
# updated: "Updated"
word_count:
one: "{{ .Count }} kelime"
other: "{{ .Count }} kelime"

author:
byline_title: "Yazar"

error:
404_title: "Sayfa Bulunamadı :confused:"
404_error: "Hata 404"
404_description: "Görünüşe göre istediğiniz sayfa mevcut değil."

footer:
dark_appearance: "Koyu görünüme geç"
light_appearance: "Açık görünüme geç"
powered_by: "{{ .Hugo }} &amp; {{ .Congo }} tarafından desteklenmektedir"

list:
externalurl_title: "Harici siteye bağlantı"
no_articles: "Henüz burada listelenecek bir makale yok."

sharing:
email: "Email ile gönder"
facebook: "Facebook'ta paylaş"
linkedin: "LinkedIn'te paylaş"
pinterest: "Pinterest'te pinle"
reddit: "Reddit'te gönder"
twitter: "Twitter'da Tweetle"

shortcode:
recent_articles: "Güncel"
icon_none: "Icon bulunamadı."
1 change: 1 addition & 0 deletions i18n/zh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ article:
reading_time:
other: "{{ .Count }} 分钟"
reading_time_title: "预计阅读"
# updated: "Updated"
word_count:
one: "{{ .Count }} 字"
other: "{{ .Count }} 字"
Expand Down
8 changes: 6 additions & 2 deletions layouts/partials/article-meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@

{{/* Gather partials for this context */}}
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
{{ $meta.Add "partials" (slice (partial "meta/date.html" .)) }}
{{ $meta.Add "partials" (slice (partial "meta/date.html" .Date)) }}
{{ end }}

{{ if .Params.showDateUpdated | default (.Site.Params.article.showDateUpdated | default false) }}
{{ $meta.Add "partials" (slice (partial "meta/date-updated.html" .Lastmod)) }}
{{ end }}

{{ if and (.Params.showWordCount | default (.Site.Params.article.showWordCount | default false)) (ne .WordCount 0) }}
Expand All @@ -29,7 +33,7 @@
{{ end }}


<div class="flex flex-row items-center">
<div class="flex flex-row flex-wrap items-center">
{{/* Output partials */}}
{{ with ($meta.Get "partials") }}
{{ delimit . "<span class=\"px-2 text-primary-500\">&middot;</span>" }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/article-pagination.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
>
<span class="mt-[0.1rem] text-xs text-neutral-500 dark:text-neutral-400">
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
{{ partial "meta/date.html" .NextInSection }}
{{ partial "meta/date.html" .NextInSection.Date }}
{{ end }}
</span>
</span>
Expand All @@ -29,7 +29,7 @@
>
<span class="mt-[0.1rem] text-xs text-neutral-500 dark:text-neutral-400">
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
{{ partial "meta/date.html" .PrevInSection }}
{{ partial "meta/date.html" .PrevInSection.Date }}
{{ end }}
</span>
</span>
Expand Down
3 changes: 3 additions & 0 deletions layouts/partials/meta/date-updated.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{- i18n "article.updated" -}}:&nbsp;
{{ partial "meta/date.html" . }}
{{- /* Trim EOF */ -}}
11 changes: 2 additions & 9 deletions layouts/partials/meta/date.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
<time datetime="{{ .Date }}">
{{- .Date.Format (.Site.Params.article.dateFormat | default "2 January 2006") -}}
<time datetime="{{ . }}">
{{- .Format (site.Params.article.dateFormat | default "2 January 2006") -}}
</time>
{{ if .Params.showDateUpdated | default (.Site.Params.article.showDateUpdated | default false) }}
&nbsp;(Updated:&nbsp;
<time datetime="{{ .Lastmod }}">
{{- .Lastmod.Format (.Site.Params.article.dateFormat | default "2 January 2006") -}}
</time>
)
{{ end }}
{{- /* Trim EOF */ -}}
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hugo-congo-theme",
"version": "1.6.3",
"version": "1.6.4",
"description": "Congo theme for Hugo",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -32,7 +32,7 @@
"@tailwindcss/typography": "^0.4.1",
"chart.js": "^3.6.0",
"katex": "^0.15.2",
"mermaid": "^8.13.9",
"mermaid": "^8.13.10",
"prettier": "^2.3.2",
"prettier-plugin-go-template": "^0.0.11",
"rimraf": "^3.0.2",
Expand Down

0 comments on commit d4bbc01

Please sign in to comment.