Skip to content

Commit

Permalink
🔖 Release v2.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jpanther committed Mar 9, 2024
2 parents c89d4ac + 4acfb7b commit 237aa85
Show file tree
Hide file tree
Showing 43 changed files with 811 additions and 415 deletions.
18 changes: 17 additions & 1 deletion 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]

## [2.8.1] - 2024-03-09

### Changed

- Upgrade to ChartJS v4.4.2 ([#817](https://github.com/jpanther/congo/pull/817))
- Upgrade to Mermaid v10.9.0 ([#825](https://github.com/jpanther/congo/pull/825))

### Fixed

- Table of Contents missing left border detail ([#794](https://github.com/jpanther/congo/issues/794))
- `x-twitter` option missing when using sharing links ([#809](https://github.com/jpanther/congo/issues/809))
- Chinese default config contains incorrect `author` block name ([#807](https://github.com/jpanther/congo/pull/807))
- Links in articles are prefixed with a blank space ([#813](https://github.com/jpanther/congo/pull/813))
- HTML tables would not fill the container width on desktop ([#826](https://github.com/jpanther/congo/issues/826))

## [2.8.0] - 2024-01-22

### Added
Expand Down Expand Up @@ -841,7 +856,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.8.0...HEAD
[Unreleased]: https://github.com/jpanther/congo/compare/v2.8.1...HEAD
[2.8.1]: https://github.com/jpanther/congo/compare/v2.8.0...v2.8.1
[2.8.0]: https://github.com/jpanther/congo/compare/v2.7.6...v2.8.0
[2.7.6]: https://github.com/jpanther/congo/compare/v2.7.5...v2.7.6
[2.7.5]: https://github.com/jpanther/congo/compare/v2.7.4...v2.7.5
Expand Down
9 changes: 7 additions & 2 deletions assets/css/compiled/main.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Congo v2.8.0 | MIT License | https://github.com/jpanther/congo */
/*! Congo v2.8.1 | MIT License | https://github.com/jpanther/congo */

/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com */

Expand Down Expand Up @@ -1254,13 +1254,18 @@ table {
overflow: auto;
}

@media (min-width: 768px) {
table {
display: table;
}
}

/* Fix long inline code sections breaking out of article on mobile */

code {
word-wrap: break-word;
/* All browsers since IE 5.5+ */
overflow-wrap: break-word;
/* Renamed property in CSS3 draft spec */
}

/* -- Chroma Highlight -- */
Expand Down
7 changes: 3 additions & 4 deletions assets/css/main.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Congo v2.8.0 | MIT License | https://github.com/jpanther/congo */
/*! Congo v2.8.1 | MIT License | https://github.com/jpanther/congo */

@tailwind base;
@tailwind components;
Expand Down Expand Up @@ -109,14 +109,13 @@ body:has(#menu-controller:checked) {

/* Fix long tables breaking out of article on mobile */
table {
display: block;
overflow: auto;
@apply block overflow-auto md:table;
}

/* Fix long inline code sections breaking out of article on mobile */
code {
word-wrap: break-word; /* All browsers since IE 5.5+ */
overflow-wrap: break-word; /* Renamed property in CSS3 draft spec */
@apply break-words;
}

/* -- Chroma Highlight -- */
Expand Down
6 changes: 3 additions & 3 deletions assets/lib/chart/chart.umd.js

Large diffs are not rendered by default.

981 changes: 684 additions & 297 deletions assets/lib/mermaid/mermaid.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fingerprintAlgorithm = "sha256"
showTaxonomies = false
showWordCount = false
showComments = false
# sharingLinks = ["facebook", "twitter", "mastodon", "pinterest", "reddit", "linkedin", "email", "telegram", "line", "weibo"]
# sharingLinks = ["facebook", "x-twitter", "mastodon", "pinterest", "reddit", "linkedin", "email", "telegram", "line", "weibo"]

[list]
showBreadcrumbs = false
Expand Down
5 changes: 5 additions & 0 deletions data/sharing.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
"title": "sharing.twitter",
"url": "https://twitter.com/intent/tweet/?url=%s&text=%s"
},
"x-twitter": {
"icon": "x-twitter",
"title": "sharing.x-twitter",
"url": "https://x.com/intent/tweet/?url=%s&text=%s"
},
"telegram": {
"icon": "telegram",
"title": "sharing.telegram",
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/config/_default/languages.zh-CN.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ copyright = "© 2023 Congo contributors"
mainSections = ["samples"]
description = "一款基于Tailwindcss的强大且轻量的Hugo主题"

[author]
[params.author]
name = "Congo"
image = "img/author.jpg"
headline = "非凡的主题!"
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/content/docs/configuration/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Many of the article defaults here can be overridden on a per article basis by sp
|`article.showTaxonomies`|`false`|Whether or not the taxonomies related to this article are displayed.|
|`article.showWordCount`|`false`|Whether or not article word counts are displayed.|
|`article.showComments`|`false`|Whether or not the [comments partial]({{< ref "partials#comments" >}}) is included after the article footer.|
|`article.sharingLinks`|_Not set_|An array of sharing links to display at the end of each article. Valid options include `facebook`, `twitter`, `mastodon`, `pinterest`, `reddit`, `linkedin`, `email`, `telegram` and `line`. When not provided, or set to `false`, no links will be displayed.|
|`article.sharingLinks`|_Not set_|An array of sharing links to display at the end of each article. Valid options include `facebook`, `x-twitter`, `mastodon`, `pinterest`, `reddit`, `linkedin`, `email`, `telegram` and `line`. When not provided, or set to `false`, no links will be displayed.|
|`list.showBreadcrumbs`|`false`|Whether or not breadcrumbs are displayed in the header on list pages.|
|`list.showTableOfContents`|`false`|Whether or not the table of contents is displayed on list pages.|
|`list.showTaxonomies`|`false`|Whether or not the taxonomies related to this article are displayed on list pages.|
Expand Down
2 changes: 2 additions & 0 deletions exampleSite/content/users/index.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,7 @@ La lista a continuación es solo un puñado de sitios web creados con el tema Co
| [stupidjoey.net](https://stupidjoey.net) | Personal Site and Tech blog |
| [aminelch.github.io](https://aminelch.github.io) | Personal Site and Blog |
| [robertboscacci.com](https://robertboscacci.com) | Personal Site and Blog |
| [gorbe.io](https://www.gorbe.io) | Business Site and Blog |
| [techwolf12.nl](https://techwolf12.nl) | Personal Site and Tech Blog |

**¿Usuaria de congo?** Para agregar tu sitio a esta lista, [haz un pull request](https://github.com/jpanther/congo/blob/dev/exampleSite/content/users/index.md).
2 changes: 2 additions & 0 deletions exampleSite/content/users/index.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,7 @@ Congoを使用して構築された実際のウェブサイト。
| [stupidjoey.net](https://stupidjoey.net) | Personal Site and Tech blog |
| [aminelch.github.io](https://aminelch.github.io) | Personal Site and Blog |
| [robertboscacci.com](https://robertboscacci.com) | Personal Site and Blog |
| [gorbe.io](https://www.gorbe.io) | Business Site and Blog |
| [techwolf12.nl](https://techwolf12.nl) | Personal Site and Tech Blog |

**Congoを使っていますか?** あなたのウェブサイトを加えるために[Pull Request](https://github.com/jpanther/congo/blob/dev/exampleSite/content/users/index.md)を投げてください。
2 changes: 2 additions & 0 deletions exampleSite/content/users/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,7 @@ The list below is just a handful of the websites that are built using the Congo
| [stupidjoey.net](https://stupidjoey.net) | Personal Site and Tech blog |
| [aminelch.github.io](https://aminelch.github.io) | Personal Site and Blog |
| [robertboscacci.com](https://robertboscacci.com) | Personal Site and Blog |
| [gorbe.io](https://www.gorbe.io) | Business Site and Blog |
| [techwolf12.nl](https://techwolf12.nl) | Personal Site and Tech Blog |

**Congo user?** To add your site to this list, [submit a pull request](https://github.com/jpanther/congo/blob/dev/exampleSite/content/users/index.md).
2 changes: 2 additions & 0 deletions exampleSite/content/users/index.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,7 @@ showEdit: false
| [stupidjoey.net](https://stupidjoey.net) | Personal Site and Tech blog |
| [aminelch.github.io](https://aminelch.github.io) | Personal Site and Blog |
| [robertboscacci.com](https://robertboscacci.com) | Personal Site and Blog |
| [gorbe.io](https://www.gorbe.io) | Business Site and Blog |
| [techwolf12.nl](https://techwolf12.nl) | Personal Site and Tech Blog |

**想成为Congo的用户?** 要将您的网站添加到此列表中,请提交[Pull Request](https://github.com/jpanther/congo/blob/dev/exampleSite/content/users/index.md)来添加。
1 change: 1 addition & 0 deletions i18n/ar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ sharing:
telegram: "شارك على تيليجرام"
line: "شارك على لاين"
# weibo: "Share on Weibo"
# x-twitter: "Post on X"

shortcode:
recent_articles: "حديثًا"
1 change: 1 addition & 0 deletions i18n/bg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ sharing:
telegram: "Споделете в Telegram"
line: "Споделете в LINE"
weibo: "Споделете в Weibo"
# x-twitter: "Post on X"

shortcode:
recent_articles: "Последни"
1 change: 1 addition & 0 deletions i18n/bn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ sharing:
telegram: "টেলিগ্রামে শেয়ার করুন"
line: "লাইনে শেয়ার করুন"
# weibo: "Share on Weibo"
# x-twitter: "Post on X"

shortcode:
recent_articles: "সাম্প্রতিক"
1 change: 1 addition & 0 deletions i18n/cs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ sharing:
telegram: "Sdílejte na Telegram"
line: "Sdílejte na LINE"
weibo: "Sdílejte na Weibo"
# x-twitter: "Post on X"

shortcode:
recent_articles: "Nedávné"
1 change: 1 addition & 0 deletions i18n/de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ sharing:
telegram: "Auf Telegram teilen"
line: "Auf LINE teilen"
weibo: "Auf Weibo teilen"
# x-twitter: "Post on X"

shortcode:
recent_articles: "Neue Beiträge"
1 change: 1 addition & 0 deletions i18n/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ sharing:
telegram: "Share on Telegram"
line: "Share on LINE"
weibo: "Share on Weibo"
x-twitter: "Post on X"

shortcode:
recent_articles: "Recent"
1 change: 1 addition & 0 deletions i18n/es.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ sharing:
telegram: "Compartir en Telegram"
line: "Compartir en LINE"
weibo: "Compartir en Weibo"
# x-twitter: "Post on X"

shortcode:
recent_articles: "Reciente"
1 change: 1 addition & 0 deletions i18n/fi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ sharing:
telegram: "Jaa Telegramissa"
line: "Jaa LINEssä"
weibo: "Jaa Weibossä"
# x-twitter: "Post on X"

shortcode:
recent_articles: "Viimeaikaiset"
1 change: 1 addition & 0 deletions i18n/fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ sharing:
telegram: "Partager sur Telegram"
line: "Partager sur LINE"
weibo: "Partager sur Weibo"
# x-twitter: "Post on X"

shortcode:
recent_articles: "Articles récents"
1 change: 1 addition & 0 deletions i18n/he.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ sharing:
telegram: "שיתוף בטלגרם"
line: "שיתוף בליין"
# weibo: "Share on Weibo"
# x-twitter: "Post on X"

shortcode:
recent_articles: "חדשים"
1 change: 1 addition & 0 deletions i18n/hu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ sharing:
telegram: "Megosztás a Telegramon"
line: "Megosztás a LINE-on"
weibo: "Megosztás a Weibo-on"
# x-twitter: "Post on X"

shortcode:
recent_articles: "Friss"
1 change: 1 addition & 0 deletions i18n/id.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ sharing:
telegram: "Bagikan ke Telegram"
line: "Bagikan ke LINE"
weibo: "Bagikan ke Weibo"
# x-twitter: "Post on X"

shortcode:
recent_articles: "Terbaru"
1 change: 1 addition & 0 deletions i18n/it.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ sharing:
telegram: "Condividi su Telegram"
line: "Condividi su LINE"
weibo: "Condividi su Weibo"
# x-twitter: "Post on X"

shortcode:
recent_articles: "Recenti"
1 change: 1 addition & 0 deletions i18n/ja.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ sharing:
telegram: "Telegramでシェアする"
line: "LINEでシェアする"
weibo: "Weiboでシェアする"
# x-twitter: "Post on X"

shortcode:
recent_articles: "最近の記事"
1 change: 1 addition & 0 deletions i18n/ko.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ sharing:
telegram: "Telegram에 공유하기"
line: "LINE에 공유하기"
weibo: "Weibo에 공유하기"
# x-twitter: "Post on X"

shortcode:
recent_articles: "최신 글"
1 change: 1 addition & 0 deletions i18n/nl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ sharing:
telegram: "Deel op Telegram"
line: "Deel op LINE"
weibo: "Deel op Weibo"
# x-twitter: "Post on X"

shortcode:
recent_articles: "Recent"
1 change: 1 addition & 0 deletions i18n/pl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ sharing:
telegram: "Udostępnij na Telegram"
line: "Udostępnij na LINE"
weibo: "Udostępnij na Weibo"
# x-twitter: "Post on X"

shortcode:
recent_articles: "Ostatnie"
1 change: 1 addition & 0 deletions i18n/pt-BR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ sharing:
telegram: "Compartilhar pelo Telegram"
line: "Compartilhar pelo LINE"
weibo: "Compartilhar pelo weibo"
# x-twitter: "Post on X"

shortcode:
recent_articles: "Recente"
1 change: 1 addition & 0 deletions i18n/pt-PT.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ sharing:
telegram: "Partilhar pelo Telegram"
line: "Partilhar pelo LINE"
weibo: "Partilhar pelo Weibo"
# x-twitter: "Post on X"

shortcode:
recent_articles: "Recente"
1 change: 1 addition & 0 deletions i18n/ro.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ sharing:
telegram: "Trimite pe Telegram"
line: "Trimite pe LINE"
weibo: "Trimite pe Weibo"
# x-twitter: "Post on X"

shortcode:
recent_articles: "Cele mai noi"
1 change: 1 addition & 0 deletions i18n/ru.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ sharing:
telegram: "Поделиться на Telegram"
line: "Поделиться на LINE"
weibo: "Поделиться на Weibo"
# x-twitter: "Post on X"

shortcode:
recent_articles: "Последние"
1 change: 1 addition & 0 deletions i18n/sk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ sharing:
telegram: "Zdieľaj na Telegram"
line: "Zdieľaj na LINE"
weibo: "Zdieľaj na Weibo"
# x-twitter: "Post on X"

shortcode:
recent_articles: "Nedávne"
1 change: 1 addition & 0 deletions i18n/tr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ sharing:
telegram: "Telegram'da paylaş"
line: "LINE'da paylaş"
weibo: "Weibo'da paylaş"
# x-twitter: "Post on X"

shortcode:
recent_articles: "Güncel"
Expand Down
1 change: 1 addition & 0 deletions i18n/uk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ sharing:
telegram: "Поширити на Telegram"
line: "Поширити на LINE"
weibo: "Поширити на Weibo"
# x-twitter: "Post on X"

shortcode:
recent_articles: "Недавні дописи"
1 change: 1 addition & 0 deletions i18n/zh-CN.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ sharing:
telegram: "分享到 Telegram"
line: "分享到 LINE"
weibo: "分享到 微博"
# x-twitter: "Post on X"

shortcode:
recent_articles: "最近的文章"
1 change: 1 addition & 0 deletions i18n/zh-TW.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ sharing:
telegram: "分享到 Telegram"
line: "分享到 LINE"
weibo: "分享到 微博"
# x-twitter: "Post on X"

shortcode:
recent_articles: "最近的文章"
7 changes: 3 additions & 4 deletions layouts/_default/_markup/render-link.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{{- $link := .Destination -}}
{{- $isRemote := strings.HasPrefix $link "http" -}}
{{- if not $isRemote }}
{{ $url := urls.Parse .Destination }}
{{- $url := urls.Parse .Destination -}}
{{- if $url.Path }}
{{ $fragment := "" }}
{{- $fragment := "" }}
{{- with $url.Fragment }}{{ $fragment = printf "#%s" . }}{{ end -}}
{{- with .Page.GetPage $url.Path }}
{{ $link = printf "%s%s" .RelPermalink $fragment }}
Expand All @@ -14,5 +14,4 @@
{{ end -}}
{{ end -}}
{{ end -}}
<!-- prettier-ignore -->
<a href="{{ $link | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}{{ if $isRemote }} target="_blank" rel="noreferrer"{{ end }}>{{- .Text | safeHTML -}}</a>
<!-- prettier-ignore --><a href="{{ $link | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}{{ if $isRemote }} target="_blank" rel="noreferrer"{{ end }}>{{- .Text | safeHTML -}}</a>
4 changes: 2 additions & 2 deletions layouts/partials/toc.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<details open class="-ms-5 mt-0 overflow-hidden rounded-lg ps-5">
<summary
class="-ms-5 block cursor-pointer bg-neutral-100 py-1 ps-5 text-lg font-semibold text-neutral-800 lg:hidden dark:bg-neutral-700 dark:text-neutral-100"
class="block cursor-pointer bg-neutral-100 py-1 ps-5 text-lg font-semibold text-neutral-800 dark:bg-neutral-700 dark:text-neutral-100 lg:hidden"
>
{{ i18n "article.table_of_contents" }}
</summary>
<div class="-ms-5 border-s border-dotted border-neutral-300 py-2 ps-5 dark:border-neutral-600">
<div class="border-s border-dotted border-neutral-300 py-2 ps-5 dark:border-neutral-600">
{{ .TableOfContents | emojify }}
</div>
</details>
Loading

0 comments on commit 237aa85

Please sign in to comment.