mirror of https://github.com/jpanther/congo.git
commit
d4bbc01d83
20
CHANGELOG.md
20
CHANGELOG.md
|
@ -6,6 +6,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
|
|
||||||
## [Unreleased]
|
## [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
|
## [1.6.3] - 2022-01-19
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@ -19,7 +34,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
|
|
||||||
### Fixed
|
### 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
|
## [1.6.2] - 2022-01-07
|
||||||
|
|
||||||
|
@ -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
|
- Advanced customisation using simple Tailwind colour definitions and styles
|
||||||
- Fully documented
|
- 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.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.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
|
[1.6.1]: https://github.com/jpanther/congo/compare/v1.6.0...v1.6.1
|
||||||
|
|
|
@ -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 */
|
/*! tailwindcss v2.2.19 | MIT License | https://tailwindcss.com */
|
||||||
|
|
||||||
|
|
|
@ -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 base;
|
||||||
@tailwind components;
|
@tailwind components;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -9,7 +9,6 @@ defaultContentLanguage = "en"
|
||||||
title = "Congo"
|
title = "Congo"
|
||||||
# copyright = "Copy, _right?_ :thinking_face:"
|
# copyright = "Copy, _right?_ :thinking_face:"
|
||||||
|
|
||||||
enableEmoji = true
|
|
||||||
enableRobotsTXT = true
|
enableRobotsTXT = true
|
||||||
|
|
||||||
summaryLength = 0
|
summaryLength = 0
|
||||||
|
|
|
@ -11,7 +11,6 @@ theme = "congo"
|
||||||
languageCode = "en-AU"
|
languageCode = "en-AU"
|
||||||
defaultContentLanguage = "en"
|
defaultContentLanguage = "en"
|
||||||
title = "Congo"
|
title = "Congo"
|
||||||
enableEmoji = true
|
|
||||||
summaryLength = 0
|
summaryLength = 0
|
||||||
|
|
||||||
[author]
|
[author]
|
||||||
|
|
|
@ -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."|
|
|`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.|
|
|`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`.
|
|`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.|
|
|`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.|
|
|`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.|
|
|`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.|
|
||||||
|
|
|
@ -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.
|
**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 >}}
|
{{< /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:.
|
**Example:** `see_no_evil` :see_no_evil:, `hear_no_evil` :hear_no_evil:, `speak_no_evil` :speak_no_evil:.
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
---
|
---
|
||||||
title: "Placeholder Text"
|
title: "Placeholder Text"
|
||||||
date: "2019-03-09"
|
date: "2019-03-09"
|
||||||
|
lastmod: "2022-01-24"
|
||||||
draft: true
|
draft: true
|
||||||
description: "Lorem Ipsum Dolor Si Amet"
|
description: "Lorem Ipsum Dolor Si Amet"
|
||||||
tags: ["markdown", "text", "sample", "latin"]
|
tags: ["markdown", "text", "sample", "latin"]
|
||||||
|
showDateUpdated: true
|
||||||
xml: false
|
xml: false
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@ article:
|
||||||
one: "{{ .Count }} min"
|
one: "{{ .Count }} min"
|
||||||
other: "{{ .Count }} min"
|
other: "{{ .Count }} min"
|
||||||
reading_time_title: "Lesezeit"
|
reading_time_title: "Lesezeit"
|
||||||
|
# updated: "Updated"
|
||||||
# word_count:
|
# word_count:
|
||||||
# one: "{{ .Count }} word"
|
# one: "{{ .Count }} word"
|
||||||
# other: "{{ .Count }} words"
|
# other: "{{ .Count }} words"
|
||||||
|
|
|
@ -6,6 +6,7 @@ article:
|
||||||
one: "{{ .Count }} min"
|
one: "{{ .Count }} min"
|
||||||
other: "{{ .Count }} mins"
|
other: "{{ .Count }} mins"
|
||||||
reading_time_title: "Reading time"
|
reading_time_title: "Reading time"
|
||||||
|
updated: "Updated"
|
||||||
word_count:
|
word_count:
|
||||||
one: "{{ .Count }} word"
|
one: "{{ .Count }} word"
|
||||||
other: "{{ .Count }} words"
|
other: "{{ .Count }} words"
|
||||||
|
|
|
@ -6,9 +6,10 @@ article:
|
||||||
one: "{{ .Count }} min"
|
one: "{{ .Count }} min"
|
||||||
other: "{{ .Count }} mins"
|
other: "{{ .Count }} mins"
|
||||||
reading_time_title: "Tiempo de lectura"
|
reading_time_title: "Tiempo de lectura"
|
||||||
# word_count:
|
updated: "Actualizado"
|
||||||
# one: "{{ .Count }} word"
|
word_count:
|
||||||
# other: "{{ .Count }} words"
|
one: "{{ .Count }} palabra"
|
||||||
|
other: "{{ .Count }} palabras"
|
||||||
|
|
||||||
author:
|
author:
|
||||||
byline_title: "Autor"
|
byline_title: "Autor"
|
||||||
|
|
|
@ -6,6 +6,7 @@ article:
|
||||||
one: "{{ .Count }} min"
|
one: "{{ .Count }} min"
|
||||||
other: "{{ .Count }} mins"
|
other: "{{ .Count }} mins"
|
||||||
reading_time_title: "Temps de lecture"
|
reading_time_title: "Temps de lecture"
|
||||||
|
# updated: "Updated"
|
||||||
# word_count:
|
# word_count:
|
||||||
# one: "{{ .Count }} word"
|
# one: "{{ .Count }} word"
|
||||||
# other: "{{ .Count }} words"
|
# other: "{{ .Count }} words"
|
||||||
|
|
|
@ -6,6 +6,7 @@ article:
|
||||||
one: "{{ .Count }} minuto"
|
one: "{{ .Count }} minuto"
|
||||||
other: "{{ .Count }} minutos"
|
other: "{{ .Count }} minutos"
|
||||||
reading_time_title: "Tempo de leitura"
|
reading_time_title: "Tempo de leitura"
|
||||||
|
# updated: "Updated"
|
||||||
# word_count:
|
# word_count:
|
||||||
# one: "{{ .Count }} word"
|
# one: "{{ .Count }} word"
|
||||||
# other: "{{ .Count }} words"
|
# other: "{{ .Count }} words"
|
||||||
|
|
|
@ -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 }} & {{ .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ı."
|
|
@ -5,6 +5,7 @@ article:
|
||||||
reading_time:
|
reading_time:
|
||||||
other: "{{ .Count }} 分钟"
|
other: "{{ .Count }} 分钟"
|
||||||
reading_time_title: "预计阅读"
|
reading_time_title: "预计阅读"
|
||||||
|
# updated: "Updated"
|
||||||
word_count:
|
word_count:
|
||||||
one: "{{ .Count }} 字"
|
one: "{{ .Count }} 字"
|
||||||
other: "{{ .Count }} 字"
|
other: "{{ .Count }} 字"
|
||||||
|
|
|
@ -13,7 +13,11 @@
|
||||||
|
|
||||||
{{/* Gather partials for this context */}}
|
{{/* Gather partials for this context */}}
|
||||||
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
|
{{ 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 }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if and (.Params.showWordCount | default (.Site.Params.article.showWordCount | default false)) (ne .WordCount 0) }}
|
{{ if and (.Params.showWordCount | default (.Site.Params.article.showWordCount | default false)) (ne .WordCount 0) }}
|
||||||
|
@ -29,7 +33,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
<div class="flex flex-row items-center">
|
<div class="flex flex-row flex-wrap items-center">
|
||||||
{{/* Output partials */}}
|
{{/* Output partials */}}
|
||||||
{{ with ($meta.Get "partials") }}
|
{{ with ($meta.Get "partials") }}
|
||||||
{{ delimit . "<span class=\"px-2 text-primary-500\">·</span>" }}
|
{{ delimit . "<span class=\"px-2 text-primary-500\">·</span>" }}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
>
|
>
|
||||||
<span class="mt-[0.1rem] text-xs text-neutral-500 dark:text-neutral-400">
|
<span class="mt-[0.1rem] text-xs text-neutral-500 dark:text-neutral-400">
|
||||||
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
|
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
|
||||||
{{ partial "meta/date.html" .NextInSection }}
|
{{ partial "meta/date.html" .NextInSection.Date }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
>
|
>
|
||||||
<span class="mt-[0.1rem] text-xs text-neutral-500 dark:text-neutral-400">
|
<span class="mt-[0.1rem] text-xs text-neutral-500 dark:text-neutral-400">
|
||||||
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
|
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
|
||||||
{{ partial "meta/date.html" .PrevInSection }}
|
{{ partial "meta/date.html" .PrevInSection.Date }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
{{- i18n "article.updated" -}}:
|
||||||
|
{{ partial "meta/date.html" . }}
|
||||||
|
{{- /* Trim EOF */ -}}
|
|
@ -1,11 +1,4 @@
|
||||||
<time datetime="{{ .Date }}">
|
<time datetime="{{ . }}">
|
||||||
{{- .Date.Format (.Site.Params.article.dateFormat | default "2 January 2006") -}}
|
{{- .Format (site.Params.article.dateFormat | default "2 January 2006") -}}
|
||||||
</time>
|
</time>
|
||||||
{{ if .Params.showDateUpdated | default (.Site.Params.article.showDateUpdated | default false) }}
|
|
||||||
(Updated:
|
|
||||||
<time datetime="{{ .Lastmod }}">
|
|
||||||
{{- .Lastmod.Format (.Site.Params.article.dateFormat | default "2 January 2006") -}}
|
|
||||||
</time>
|
|
||||||
)
|
|
||||||
{{ end }}
|
|
||||||
{{- /* Trim EOF */ -}}
|
{{- /* Trim EOF */ -}}
|
||||||
|
|
|
@ -1,19 +1,19 @@
|
||||||
{
|
{
|
||||||
"name": "hugo-congo-theme",
|
"name": "hugo-congo-theme",
|
||||||
"version": "1.6.2",
|
"version": "1.6.3",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "hugo-congo-theme",
|
"name": "hugo-congo-theme",
|
||||||
"version": "1.6.2",
|
"version": "1.6.3",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/typography": "^0.4.1",
|
"@tailwindcss/typography": "^0.4.1",
|
||||||
"chart.js": "^3.6.0",
|
"chart.js": "^3.6.0",
|
||||||
"katex": "^0.15.2",
|
"katex": "^0.15.2",
|
||||||
"mermaid": "^8.13.9",
|
"mermaid": "^8.13.10",
|
||||||
"prettier": "^2.3.2",
|
"prettier": "^2.3.2",
|
||||||
"prettier-plugin-go-template": "^0.0.11",
|
"prettier-plugin-go-template": "^0.0.11",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
|
@ -1799,9 +1799,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/mermaid": {
|
"node_modules/mermaid": {
|
||||||
"version": "8.13.9",
|
"version": "8.13.10",
|
||||||
"resolved": "https://registry.npmjs.org/mermaid/-/mermaid-8.13.9.tgz",
|
"resolved": "https://registry.npmjs.org/mermaid/-/mermaid-8.13.10.tgz",
|
||||||
"integrity": "sha512-kMH676xEomSe/gzxMpDx91L+z9L+9iB3lvtPFA8aeOPRNNrfd3ZDvDCGFnuqQaJvPRCxs3Me2JDaVVNOZjojrg==",
|
"integrity": "sha512-2ANep359uML87+wiYaWSu83eg9Qc0xCLnNJdCh100m4v0orS3fp8SScsZLcDSElRGHi+1zuVJsEEVEWH05+COQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@braintree/sanitize-url": "^3.1.0",
|
"@braintree/sanitize-url": "^3.1.0",
|
||||||
|
@ -3963,9 +3963,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"mermaid": {
|
"mermaid": {
|
||||||
"version": "8.13.9",
|
"version": "8.13.10",
|
||||||
"resolved": "https://registry.npmjs.org/mermaid/-/mermaid-8.13.9.tgz",
|
"resolved": "https://registry.npmjs.org/mermaid/-/mermaid-8.13.10.tgz",
|
||||||
"integrity": "sha512-kMH676xEomSe/gzxMpDx91L+z9L+9iB3lvtPFA8aeOPRNNrfd3ZDvDCGFnuqQaJvPRCxs3Me2JDaVVNOZjojrg==",
|
"integrity": "sha512-2ANep359uML87+wiYaWSu83eg9Qc0xCLnNJdCh100m4v0orS3fp8SScsZLcDSElRGHi+1zuVJsEEVEWH05+COQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@braintree/sanitize-url": "^3.1.0",
|
"@braintree/sanitize-url": "^3.1.0",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hugo-congo-theme",
|
"name": "hugo-congo-theme",
|
||||||
"version": "1.6.3",
|
"version": "1.6.4",
|
||||||
"description": "Congo theme for Hugo",
|
"description": "Congo theme for Hugo",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
"@tailwindcss/typography": "^0.4.1",
|
"@tailwindcss/typography": "^0.4.1",
|
||||||
"chart.js": "^3.6.0",
|
"chart.js": "^3.6.0",
|
||||||
"katex": "^0.15.2",
|
"katex": "^0.15.2",
|
||||||
"mermaid": "^8.13.9",
|
"mermaid": "^8.13.10",
|
||||||
"prettier": "^2.3.2",
|
"prettier": "^2.3.2",
|
||||||
"prettier-plugin-go-template": "^0.0.11",
|
"prettier-plugin-go-template": "^0.0.11",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
|
|
Loading…
Reference in New Issue