🔖 Release v2.5.1

pull/775/head v2.5.1
James Panther 2023-01-20 10:20:19 +11:00
commit 73353fa74f
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
11 changed files with 51 additions and 36 deletions

View File

@ -6,6 +6,18 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## [Unreleased]
## [2.5.1] - 2023-01-20
### Changed
- External links are now automatically appended with `rel="noreferrer noopener"` ([#446](https://github.com/jpanther/congo/pull/446))
- Updated Traditional Chinese (Taiwan) translation ([#448](https://github.com/jpanther/congo/pull/448))
- Upgrade to Chart.js v4.2.0 ([#449](https://github.com/jpanther/congo/pull/449))
### Fixed
- Page alignment off-centre when opening hamburger menu at wide viewports ([#445](https://github.com/jpanther/congo/issues/445))
## [2.5.0] - 2023-01-17
### Added
@ -605,7 +617,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.5.0...HEAD
[Unreleased]: https://github.com/jpanther/congo/compare/v2.5.1...HEAD
[2.5.1]: https://github.com/jpanther/congo/compare/v2.5.0...v2.5.1
[2.5.0]: https://github.com/jpanther/congo/compare/v2.4.2...v2.5.0
[2.4.2]: https://github.com/jpanther/congo/compare/v2.4.1...v2.4.2
[2.4.1]: https://github.com/jpanther/congo/compare/v2.4.0...v2.4.1

View File

@ -1,4 +1,4 @@
/*! Congo v2.5.0 | MIT License | https://github.com/jpanther/congo */
/*! Congo v2.5.1 | MIT License | https://github.com/jpanther/congo */
/*! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com */
@ -1020,8 +1020,8 @@ body button {
/* Hamburger menu */
body:has(#menu-controller:checked) {
position: fixed;
overflow-y: hidden;
height: 100vh;
overflow: hidden;
}
#menu-button:has(#menu-controller:checked) {

View File

@ -1,4 +1,4 @@
/*! Congo v2.5.0 | MIT License | https://github.com/jpanther/congo */
/*! Congo v2.5.1 | MIT License | https://github.com/jpanther/congo */
@tailwind base;
@tailwind components;
@ -23,7 +23,7 @@ body button {
/* Hamburger menu */
body:has(#menu-controller:checked) {
@apply fixed overflow-y-hidden;
@apply h-screen overflow-hidden;
}
#menu-button:has(#menu-controller:checked) {
@apply invisible;

File diff suppressed because one or more lines are too long

View File

@ -100,11 +100,11 @@ 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.109.0"
HUGO_VERSION = "0.110.0"
HUGO_ENV = "production"
[context.deploy-preview.environment]
HUGO_VERSION = "0.109.0"
HUGO_VERSION = "0.110.0"
```
This configuration assumes you are deploying Congo as a Hugo module. If you have installed the theme using another method, change the build command to simply `hugo --gc --minify -b $URL`.

View File

@ -48,7 +48,7 @@ The list below is just a handful of the websites that are built using the Congo
| [boyersnet.com](https://boyersnet.com) | Personal site and Blog |
| [major.io](https://major.io) | Personal site and Blog |
| [bayas.dev](https://bayas.dev) | Personal site and Blog |
| [顾宇的博客](https://www.guyu.me/) | Personal Blog (in Chinese) |
| [顾宇的博客](https://www.guyu.me/) | Personal Blog (in Chinese) |
| [cgutierr-zgz.github.io](https://cgutierr-zgz.github.io/) | Personal site and Tech blog |
| [adam.sr](https://adam.sr) | Personal site and Blog |
| [datadi.murgi.org](https://datadi.murgi.org) | Personal site and Blog |
@ -57,5 +57,6 @@ The list below is just a handful of the websites that are built using the Congo
| [pfisterer.dev](https://pfisterer.dev) | Personal site and Blog |
| [davidrothera.me](https://davidrothera.me) | Personal site and Blog |
| [ethantroy.com](https://ethantroy.com) | Personal Site and Blog |
| [sug.bitprism.net](https://sug.bitprism.net) | 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).

View File

@ -5,6 +5,7 @@ article:
draft: "草稿"
edit_title: "編輯內容"
reading_time:
one: "{{ .Count }} 分鐘"
other: "{{ .Count }} 分鐘"
reading_time_title: "預計閱讀時間"
table_of_contents: "目錄"
@ -46,7 +47,7 @@ sharing:
email: "以電子郵件發送"
facebook: "分享到 Facebook"
linkedin: "分享到 LinkedIn"
# mastodon: "Toot on Mastodon"
mastodon: "嘟到 Mastodon"
pinterest: "釘到 Pinterest"
reddit: "發送到 Reddit"
twitter: "推到 Twitter"

View File

@ -1,3 +1,3 @@
<a href="{{ .Destination | safeURL }}" {{ with .Title}} title="{{ . }}"{{ end }} {{ if or (strings.HasPrefix .Destination "http:") (strings.HasPrefix .Destination "https:") }} target="_blank"{{ end }}>
<a href="{{ .Destination | safeURL }}" {{ with .Title}} title="{{ . }}"{{ end }} {{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noreferrer noopener"{{ end }}>
{{- .Text | safeHTML -}}
</a>
</a>

View File

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

32
package-lock.json generated
View File

@ -1,24 +1,24 @@
{
"name": "hugo-congo-theme",
"version": "2.4.2",
"version": "2.5.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "hugo-congo-theme",
"version": "2.4.2",
"version": "2.5.0",
"hasInstallScript": true,
"license": "MIT",
"devDependencies": {
"@tailwindcss/typography": "^0.5.9",
"chart.js": "^4.1.2",
"chart.js": "^4.2.0",
"fuse.js": "^6.6.2",
"katex": "^0.16.4",
"mermaid": "^9.3.0",
"prettier": "^2.8.3",
"prettier-plugin-go-template": "^0.0.13",
"prettier-plugin-tailwindcss": "^0.2.1",
"rimraf": "^4.0.7",
"rimraf": "^4.1.1",
"tailwindcss": "^3.2.4",
"vendor-copy": "^3.0.1"
},
@ -170,9 +170,9 @@
}
},
"node_modules/chart.js": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chart.js/-/chart.js-4.1.2.tgz",
"integrity": "sha512-9L1w6WLPq6ztiWVVOYtDtpo0CUsBKDWPrUEdwChAyzczaikqeSwNKEv3QpJ7EO4ICcLSi6UDVhgvcnUhRJidRA==",
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/chart.js/-/chart.js-4.2.0.tgz",
"integrity": "sha512-wbtcV+QKeH0F7gQZaCJEIpsNriFheacouJQTVIjITi3eQA8bTlIBoknz0+dgV79aeKLNMAX+nDslIVE/nJ3rzA==",
"dev": true,
"dependencies": {
"@kurkle/color": "^0.3.0"
@ -1323,9 +1323,9 @@
}
},
"node_modules/rimraf": {
"version": "4.0.7",
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-4.0.7.tgz",
"integrity": "sha512-CUEDDrZvc0swDgVdXGiv3FcYYQMpJxjvSGt85Amj6yU+MCVWurrLCeLiJDdJPHCzNJnwuebBEdcO//eP11Xa7w==",
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-4.1.1.tgz",
"integrity": "sha512-Z4Y81w8atcvaJuJuBB88VpADRH66okZAuEm+Jtaufa+s7rZmIz+Hik2G53kGaNytE7lsfXyWktTmfVz0H9xuDg==",
"dev": true,
"bin": {
"rimraf": "dist/cjs/src/bin.js"
@ -1634,9 +1634,9 @@
"dev": true
},
"chart.js": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chart.js/-/chart.js-4.1.2.tgz",
"integrity": "sha512-9L1w6WLPq6ztiWVVOYtDtpo0CUsBKDWPrUEdwChAyzczaikqeSwNKEv3QpJ7EO4ICcLSi6UDVhgvcnUhRJidRA==",
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/chart.js/-/chart.js-4.2.0.tgz",
"integrity": "sha512-wbtcV+QKeH0F7gQZaCJEIpsNriFheacouJQTVIjITi3eQA8bTlIBoknz0+dgV79aeKLNMAX+nDslIVE/nJ3rzA==",
"dev": true,
"requires": {
"@kurkle/color": "^0.3.0"
@ -2451,9 +2451,9 @@
"dev": true
},
"rimraf": {
"version": "4.0.7",
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-4.0.7.tgz",
"integrity": "sha512-CUEDDrZvc0swDgVdXGiv3FcYYQMpJxjvSGt85Amj6yU+MCVWurrLCeLiJDdJPHCzNJnwuebBEdcO//eP11Xa7w==",
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-4.1.1.tgz",
"integrity": "sha512-Z4Y81w8atcvaJuJuBB88VpADRH66okZAuEm+Jtaufa+s7rZmIz+Hik2G53kGaNytE7lsfXyWktTmfVz0H9xuDg==",
"dev": true
},
"robust-predicates": {

View File

@ -1,6 +1,6 @@
{
"name": "hugo-congo-theme",
"version": "2.5.0",
"version": "2.5.1",
"description": "Congo theme for Hugo",
"scripts": {
"preinstall": "rimraf assets/lib",
@ -30,14 +30,14 @@
"homepage": "https://github.com/jpanther/congo#readme",
"devDependencies": {
"@tailwindcss/typography": "^0.5.9",
"chart.js": "^4.1.2",
"chart.js": "^4.2.0",
"fuse.js": "^6.6.2",
"katex": "^0.16.4",
"mermaid": "^9.3.0",
"prettier": "^2.8.3",
"prettier-plugin-go-template": "^0.0.13",
"prettier-plugin-tailwindcss": "^0.2.1",
"rimraf": "^4.0.7",
"rimraf": "^4.1.1",
"tailwindcss": "^3.2.4",
"vendor-copy": "^3.0.1"
},