🔖 Release v2.2.2

pull/775/head v2.2.2
James Panther 2022-06-16 11:27:22 +10:00
commit 782850dbd9
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
20 changed files with 135 additions and 63 deletions

View File

@ -6,6 +6,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## [Unreleased]
## [2.2.2] - 2022-06-16
### Added
- Breadcrumb display can now be can now be specificed in front matter for articles and list pages
- Italian translation ([#209](https://github.com/jpanther/congo/pull/209))
### Changed
- Upgrade to Chart.js v3.8.0 ([#204](https://github.com/jpanther/congo/pull/204))
- Upgrade to KaTeX v0.16.0 ([#208](https://github.com/jpanther/congo/pull/208))
- Upgrade to Mermaid v9.1.2 ([#214](https://github.com/jpanther/congo/pull/214))
## [2.2.1] - 2022-05-25
### Changed
@ -433,7 +446,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.2.1...HEAD
[unreleased]: https://github.com/jpanther/congo/compare/v2.2.2...HEAD
[2.2.2]: https://github.com/jpanther/congo/compare/v2.2.1...v2.2.2
[2.2.1]: https://github.com/jpanther/congo/compare/v2.2.0...v2.2.1
[2.2.0]: https://github.com/jpanther/congo/compare/v2.1.3...v2.2.0
[2.1.3]: https://github.com/jpanther/congo/compare/v2.1.2...v2.1.3

View File

@ -1,4 +1,4 @@
/*! Congo v2.2.1 | MIT License | https://github.com/jpanther/congo */
/*! Congo v2.2.2 | MIT License | https://github.com/jpanther/congo */
/*! tailwindcss v3.0.24 | MIT License | https://tailwindcss.com */

View File

@ -1,4 +1,4 @@
/*! Congo v2.2.1 | MIT License | https://github.com/jpanther/congo */
/*! Congo v2.2.2 | MIT License | https://github.com/jpanther/congo */
@tailwind base;
@tailwind components;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -57,6 +57,7 @@ The theme currently supports the following languages by default:
| :de: German | `de` |
| :israel: Hebrew | `he` |
| :hungary: Hungarian | `hu` |
| :it: Italian | `it` |
| :brazil: Portuguese (Brazil) | `pt-br` |
| :portugal: Portuguese (Portugal) | `pt-pt` |
| :romania: Romanian | `ro` |

View File

@ -24,6 +24,7 @@ Front matter parameter default values are inherited from the theme's [base confi
|`robots`|_Not set_|String that indicates how robots should handle this article. If set, it will be output in the page head. Refer to [Google's docs](https://developers.google.com/search/docs/advanced/robots/robots_meta_tag#directives) for valid values.|
|`sharingLinks`|`article.sharingLinks`|Which sharing links to display at the end of this article. When not provided, or set to `false` no links will be displayed.|
|`showAuthor`|`article.showAuthor`|Whether or not the author box is displayed in the article footer.|
|`showBreadcrumbs`|`article.showBreadcrumbs` or `list.showBreadcrumbs`|Whether the breadcrumbs are displayed in the article or list header.|
|`showDate`|`article.showDate`|Whether or not the article date is displayed. The date is set using the `date` parameter.|
|`showDateUpdated`|`article.showDateUpdated`|Whether or not the date the article was updated is displayed. The date is set using the `lastmod` parameter.|
|`showEdit`|`article.showEdit`|Whether or not the link to edit the article content should be displayed.|

View File

@ -98,7 +98,7 @@ Then in the root of your site repository, create a `netlify.toml` file:
TZ = "UTC" # Set to preferred timezone
[context.production.environment]
HUGO_VERSION = "0.96.0"
HUGO_VERSION = "0.100.2"
HUGO_ENV = "production"
```

View File

@ -29,6 +29,7 @@ Real websites that are built with Congo.
| [rohn.tech](https://rohn.tech) | Personal site |
| [klimafreundlicher-kochen.de](https://www.klimafreundlicher-kochen.de) | Food blog (in German) |
| [seyslee.github.io](https://seyslee.github.io) | Tech blog (in Korean) |
| [datanalyze.be/](https://datanalyze.be/) | Professional site |
| [datanalyze.be](https://datanalyze.be/) | Professional site |
| [sneaky-potato.github.io](https://sneaky-potato.github.io/) | Professional 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
i18n/it.yaml 100644
View File

@ -0,0 +1,55 @@
article:
anchor_label: "Ancora"
date: "{{ .Date }}"
date_updated: "Aggiornato: {{ .Date }}"
draft: "Bozza"
edit_title: "Modifica i contenuti"
reading_time:
one: "{{ .Count }} minuto"
other: "{{ .Count }} minuti"
reading_time_title: "Tempo di lettura"
table_of_contents: "Indice dei contenuti"
word_count:
one: "{{ .Count }} parola"
other: "{{ .Count }} parole"
author:
byline_title: "Autore"
code:
copy: "Copia"
copied: "Copiato"
error:
404_title: "Pagina non trovata :confused:"
404_error: "Errore 404"
404_description: "Sembra che la pagina che hai richiesto non esista."
footer:
dark_appearance: "Passa all'aspetto scuro"
light_appearance: "Passa all'aspetto chiaro"
powered_by: "Creato con {{ .Hugo }} & {{ .Congo }}"
list:
externalurl_title: "Link a sito esterno"
no_articles: "Non ci sono ancora articoli da elencare"
nav:
scroll_to_top_title: "Torna in cima"
skip_to_main: "Salta al contenuto principale"
search:
open_button_title: "Cerca (/)"
close_button_title: "Chiudi (Esc)"
input_placeholder: "Cerca"
sharing:
email: "Invia tramite email"
facebook: "Condividi su Facebook"
linkedin: "Condividi su LinkedIn"
pinterest: "Pinna su Pinterest"
reddit: "Invia a Reddit"
twitter: "Tweetta su Twitter"
shortcode:
recent_articles: "Recenti"

View File

@ -1,7 +1,7 @@
{{ define "main" }}
{{ $toc := and (.Params.showTableOfContents | default (.Site.Params.list.showTableOfContents | default false)) (in .TableOfContents "<ul") }}
<header>
{{ if .Site.Params.list.showBreadcrumbs | default false }}
{{ if .Params.showBreadcrumbs | default (.Site.Params.list.showBreadcrumbs | default false) }}
{{ partial "breadcrumbs.html" . }}
{{ end }}
<h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">{{ .Title }}</h1>

View File

@ -1,7 +1,7 @@
{{ define "main" }}
<article class="max-w-full">
<header>
{{ if .Site.Params.article.showBreadcrumbs | default false }}
{{ if .Params.showBreadcrumbs | default (.Site.Params.article.showBreadcrumbs | default false) }}
{{ partial "breadcrumbs.html" . }}
{{ end }}
<h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">

View File

@ -1,7 +1,7 @@
{{ define "main" }}
<article>
<header class="max-w-prose">
{{ if .Site.Params.article.showBreadcrumbs | default false }}
{{ if .Params.showBreadcrumbs | default (.Site.Params.article.showBreadcrumbs | default false) }}
{{ partial "breadcrumbs.html" . }}
{{ end }}
<h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">

View File

@ -1,6 +1,6 @@
{{ define "main" }}
<header>
{{ if .Site.Params.list.showBreadcrumbs | default false }}
{{ if .Params.showBreadcrumbs | default (.Site.Params.list.showBreadcrumbs | default false) }}
{{ partial "breadcrumbs.html" . }}
{{ end }}
<h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">{{ .Title }}</h1>

View File

@ -1,6 +1,6 @@
{{ define "main" }}
<header>
{{ if .Site.Params.list.showBreadcrumbs | default false }}
{{ if .Params.showBreadcrumbs | default (.Site.Params.list.showBreadcrumbs | default false) }}
{{ partial "breadcrumbs.html" . }}
{{ end }}
<h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">{{ .Title }}</h1>

View File

@ -8,17 +8,17 @@ HUGO_THEME = "repo"
TZ = "Australia/Melbourne"
[context.production.environment]
HUGO_VERSION = "0.96.0"
HUGO_VERSION = "0.100.2"
HUGO_ENV = "production"
[context.deploy-preview]
command = "cd exampleSite && hugo --gc --minify -D -b $DEPLOY_PRIME_URL"
[context.deploy-preview.environment]
HUGO_VERSION = "0.96.0"
HUGO_VERSION = "0.100.2"
[context.branch-deploy]
command = "cd exampleSite && hugo --gc --minify -D -b $DEPLOY_PRIME_URL"
[context.branch-deploy.environment]
HUGO_VERSION = "0.96.0"
HUGO_VERSION = "0.100.2"

76
package-lock.json generated
View File

@ -1,21 +1,21 @@
{
"name": "hugo-congo-theme",
"version": "2.2.0",
"version": "2.2.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "hugo-congo-theme",
"version": "2.2.0",
"version": "2.2.1",
"hasInstallScript": true,
"license": "MIT",
"devDependencies": {
"@tailwindcss/typography": "^0.5.2",
"chart.js": "^3.7.1",
"chart.js": "^3.8.0",
"fuse.js": "^6.6.2",
"katex": "^0.15.6",
"mermaid": "^9.1.1",
"prettier": "^2.6.2",
"katex": "^0.16.0",
"mermaid": "^9.1.2",
"prettier": "^2.7.0",
"prettier-plugin-go-template": "^0.0.13",
"rimraf": "^3.0.2",
"tailwindcss": "^3.0.24",
@ -175,9 +175,9 @@
}
},
"node_modules/chart.js": {
"version": "3.7.1",
"resolved": "https://registry.npmjs.org/chart.js/-/chart.js-3.7.1.tgz",
"integrity": "sha512-8knRegQLFnPQAheZV8MjxIXc5gQEfDFD897BJgv/klO/vtIyFFmgMXrNfgrXpbTr/XbTturxRgxIXx/Y+ASJBA==",
"version": "3.8.0",
"resolved": "https://registry.npmjs.org/chart.js/-/chart.js-3.8.0.tgz",
"integrity": "sha512-cr8xhrXjLIXVLOBZPkBZVF6NDeiVIrPLHcMhnON7UufudL+CNeRrD+wpYanswlm8NpudMdrt3CHoLMQMxJhHRg==",
"dev": true
},
"node_modules/chokidar": {
@ -1048,9 +1048,9 @@
"dev": true
},
"node_modules/dompurify": {
"version": "2.3.6",
"resolved": "https://registry.npmjs.org/dompurify/-/dompurify-2.3.6.tgz",
"integrity": "sha512-OFP2u/3T1R5CEgWCEONuJ1a5+MFKnOYpkywpUSxv/dj1LeBT1erK+JwM7zK0ROy2BRhqVCf0LRw/kHqKuMkVGg==",
"version": "2.3.8",
"resolved": "https://registry.npmjs.org/dompurify/-/dompurify-2.3.8.tgz",
"integrity": "sha512-eVhaWoVibIzqdGYjwsBWodIQIaXFSB+cKDf4cfxLMsK0xiud6SE+/WCVx/Xw/UwQsa4cS3T2eITcdtmTg2UKcw==",
"dev": true
},
"node_modules/fast-glob": {
@ -1282,9 +1282,9 @@
}
},
"node_modules/katex": {
"version": "0.15.6",
"resolved": "https://registry.npmjs.org/katex/-/katex-0.15.6.tgz",
"integrity": "sha512-UpzJy4yrnqnhXvRPhjEuLA4lcPn6eRngixW7Q3TJErjg3Aw2PuLFBzTkdUb89UtumxjhHTqL3a5GDGETMSwgJA==",
"version": "0.16.0",
"resolved": "https://registry.npmjs.org/katex/-/katex-0.16.0.tgz",
"integrity": "sha512-wPRB4iUPysfH97wTgG5/tRLYxmKVq6Q4jRAWRVOUxXB1dsiv4cvcNjqabHkrOvJHM1Bpk3WrgmllSO1vIvP24w==",
"dev": true,
"funding": [
"https://opencollective.com/katex",
@ -1346,16 +1346,16 @@
}
},
"node_modules/mermaid": {
"version": "9.1.1",
"resolved": "https://registry.npmjs.org/mermaid/-/mermaid-9.1.1.tgz",
"integrity": "sha512-2RVD+WkzZ4VDyO9gQvQAuQ/ux2gLigJtKDTlbwjYqOR/NwsVzTSfGm/kx648/qWJsg6Sv04tE9BWCO8s6a+pFA==",
"version": "9.1.2",
"resolved": "https://registry.npmjs.org/mermaid/-/mermaid-9.1.2.tgz",
"integrity": "sha512-RVf3hBKqiMfyORHboCaEjOAK1TomLO50hYRPvlTrZCXlCniM5pRpe8UlkHBjjpaLtioZnbdYv/vEVj7iKnwkJQ==",
"dev": true,
"dependencies": {
"@braintree/sanitize-url": "^6.0.0",
"d3": "^7.0.0",
"dagre": "^0.8.5",
"dagre-d3": "^0.6.4",
"dompurify": "2.3.6",
"dompurify": "2.3.8",
"graphlib": "^2.1.8",
"khroma": "^2.0.0",
"moment-mini": "^2.24.0",
@ -1591,9 +1591,9 @@
"dev": true
},
"node_modules/prettier": {
"version": "2.6.2",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.2.tgz",
"integrity": "sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==",
"version": "2.7.0",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.0.tgz",
"integrity": "sha512-nwoX4GMFgxoPC6diHvSwmK/4yU8FFH3V8XWtLQrbj4IBsK2pkYhG4kf/ljF/haaZ/aii+wNJqISrCDPgxGWDVQ==",
"dev": true,
"bin": {
"prettier": "bin-prettier.js"
@ -2009,9 +2009,9 @@
"dev": true
},
"chart.js": {
"version": "3.7.1",
"resolved": "https://registry.npmjs.org/chart.js/-/chart.js-3.7.1.tgz",
"integrity": "sha512-8knRegQLFnPQAheZV8MjxIXc5gQEfDFD897BJgv/klO/vtIyFFmgMXrNfgrXpbTr/XbTturxRgxIXx/Y+ASJBA==",
"version": "3.8.0",
"resolved": "https://registry.npmjs.org/chart.js/-/chart.js-3.8.0.tgz",
"integrity": "sha512-cr8xhrXjLIXVLOBZPkBZVF6NDeiVIrPLHcMhnON7UufudL+CNeRrD+wpYanswlm8NpudMdrt3CHoLMQMxJhHRg==",
"dev": true
},
"chokidar": {
@ -2735,9 +2735,9 @@
"dev": true
},
"dompurify": {
"version": "2.3.6",
"resolved": "https://registry.npmjs.org/dompurify/-/dompurify-2.3.6.tgz",
"integrity": "sha512-OFP2u/3T1R5CEgWCEONuJ1a5+MFKnOYpkywpUSxv/dj1LeBT1erK+JwM7zK0ROy2BRhqVCf0LRw/kHqKuMkVGg==",
"version": "2.3.8",
"resolved": "https://registry.npmjs.org/dompurify/-/dompurify-2.3.8.tgz",
"integrity": "sha512-eVhaWoVibIzqdGYjwsBWodIQIaXFSB+cKDf4cfxLMsK0xiud6SE+/WCVx/Xw/UwQsa4cS3T2eITcdtmTg2UKcw==",
"dev": true
},
"fast-glob": {
@ -2919,9 +2919,9 @@
"dev": true
},
"katex": {
"version": "0.15.6",
"resolved": "https://registry.npmjs.org/katex/-/katex-0.15.6.tgz",
"integrity": "sha512-UpzJy4yrnqnhXvRPhjEuLA4lcPn6eRngixW7Q3TJErjg3Aw2PuLFBzTkdUb89UtumxjhHTqL3a5GDGETMSwgJA==",
"version": "0.16.0",
"resolved": "https://registry.npmjs.org/katex/-/katex-0.16.0.tgz",
"integrity": "sha512-wPRB4iUPysfH97wTgG5/tRLYxmKVq6Q4jRAWRVOUxXB1dsiv4cvcNjqabHkrOvJHM1Bpk3WrgmllSO1vIvP24w==",
"dev": true,
"requires": {
"commander": "^8.0.0"
@ -2970,16 +2970,16 @@
"dev": true
},
"mermaid": {
"version": "9.1.1",
"resolved": "https://registry.npmjs.org/mermaid/-/mermaid-9.1.1.tgz",
"integrity": "sha512-2RVD+WkzZ4VDyO9gQvQAuQ/ux2gLigJtKDTlbwjYqOR/NwsVzTSfGm/kx648/qWJsg6Sv04tE9BWCO8s6a+pFA==",
"version": "9.1.2",
"resolved": "https://registry.npmjs.org/mermaid/-/mermaid-9.1.2.tgz",
"integrity": "sha512-RVf3hBKqiMfyORHboCaEjOAK1TomLO50hYRPvlTrZCXlCniM5pRpe8UlkHBjjpaLtioZnbdYv/vEVj7iKnwkJQ==",
"dev": true,
"requires": {
"@braintree/sanitize-url": "^6.0.0",
"d3": "^7.0.0",
"dagre": "^0.8.5",
"dagre-d3": "^0.6.4",
"dompurify": "2.3.6",
"dompurify": "2.3.8",
"graphlib": "^2.1.8",
"khroma": "^2.0.0",
"moment-mini": "^2.24.0",
@ -3130,9 +3130,9 @@
"dev": true
},
"prettier": {
"version": "2.6.2",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.2.tgz",
"integrity": "sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==",
"version": "2.7.0",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.0.tgz",
"integrity": "sha512-nwoX4GMFgxoPC6diHvSwmK/4yU8FFH3V8XWtLQrbj4IBsK2pkYhG4kf/ljF/haaZ/aii+wNJqISrCDPgxGWDVQ==",
"dev": true
},
"prettier-plugin-go-template": {

View File

@ -1,6 +1,6 @@
{
"name": "hugo-congo-theme",
"version": "2.2.1",
"version": "2.2.2",
"description": "Congo theme for Hugo",
"main": "index.js",
"scripts": {
@ -30,11 +30,11 @@
"homepage": "https://github.com/jpanther/congo#readme",
"devDependencies": {
"@tailwindcss/typography": "^0.5.2",
"chart.js": "^3.7.1",
"chart.js": "^3.8.0",
"fuse.js": "^6.6.2",
"katex": "^0.15.6",
"mermaid": "^9.1.1",
"prettier": "^2.6.2",
"katex": "^0.16.0",
"mermaid": "^9.1.2",
"prettier": "^2.7.0",
"prettier-plugin-go-template": "^0.0.13",
"rimraf": "^3.0.2",
"tailwindcss": "^3.0.24",