Merge branch 'dev' into patch-canonical-url

This commit is contained in:
James Panther
2025-06-22 11:41:57 +10:00
committed by GitHub
18 changed files with 1082 additions and 1003 deletions
+5 -5
View File
@@ -16,28 +16,28 @@ jobs:
- run: npm install
- run: npm run assets
- name: Commit and push Chart.js changes
uses: stefanzweifel/git-auto-commit-action@v5
uses: stefanzweifel/git-auto-commit-action@v6
with:
branch: "${{ github.head_ref }}"
push_options: "--dry-run"
file_pattern: "assets/lib/chart/*"
commit_message: "📦 Update packaged ChartJS"
- name: Commit Fuse changes
uses: stefanzweifel/git-auto-commit-action@v5
uses: stefanzweifel/git-auto-commit-action@v6
with:
branch: "${{ github.head_ref }}"
push_options: "--dry-run"
file_pattern: "assets/lib/fuse/*"
commit_message: "📦 Update packaged FuseJS"
- name: Commit KaTeX changes
uses: stefanzweifel/git-auto-commit-action@v5
uses: stefanzweifel/git-auto-commit-action@v6
with:
branch: "${{ github.head_ref }}"
push_options: "--dry-run"
file_pattern: "assets/lib/katex/*"
commit_message: "📦 Update packaged KaTeX"
- name: Commit Mermaid changes
uses: stefanzweifel/git-auto-commit-action@v5
uses: stefanzweifel/git-auto-commit-action@v6
with:
branch: "${{ github.head_ref }}"
push_options: "--dry-run"
@@ -45,7 +45,7 @@ jobs:
commit_message: "📦 Update packaged Mermaid"
- run: npm run build
- name: Commit CSS changes
uses: stefanzweifel/git-auto-commit-action@v5
uses: stefanzweifel/git-auto-commit-action@v6
with:
branch: "${{ github.head_ref }}"
push_options: "--dry-run"
+10 -1
View File
@@ -8,11 +8,20 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Added
- `canonicalUrl` parameter for page front matter
- `canonicalUrl` parameter for article front matter ([#1046](https://github.com/jpanther/congo/pull/1046))
### Changed
- ⚠️ Required Hugo version is now 0.146.0 or later
- Upgrade to Mermaid v11.7.0 ([#1035](https://github.com/jpanther/congo/pull/1035), [#1040](https://github.com/jpanther/congo/pull/1040))
- Upgrade to KaTeX v0.16.22 ([#1048](https://github.com/jpanther/congo/pull/1048))
- Upgrade to ChartJS v4.5.0 ([#1052](https://github.com/jpanther/congo/pull/1052), [#1067](https://github.com/jpanther/congo/pull/1067))
### Fixed
- Shortcodes placed after code blocks with line numbers are rendered with incorrect spacing ([#987](https://github.com/jpanther/congo/issues/987))
- Some localised date formats would be incorrectly formatted as Markdown ([#1028](https://github.com/jpanther/congo/pull/1028))
- Error building site due to template system changes in Hugo v0.146.0 or later ([#1049](https://github.com/jpanther/congo/issues/1049))
## [2.11.0] - 2025-02-24
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+666 -344
View File
File diff suppressed because one or more lines are too long
@@ -95,7 +95,7 @@ jobs:
publish = "public"
[build.environment]
HUGO_VERSION = "0.118.2"
HUGO_VERSION = "0.147.8"
NODE_ENV = "production"
GO_VERSION = "1.20"
TZ = "UTC" # Set to preferred timezone
@@ -100,7 +100,7 @@ Then in the root of your site repository, create a `netlify.toml` file:
publish = "public"
[build.environment]
HUGO_VERSION = "0.144.2"
HUGO_VERSION = "0.147.8"
NODE_ENV = "production"
TZ = "UTC" # Set to preferred timezone
@@ -99,7 +99,7 @@ jobs:
publish = "public"
[build.environment]
HUGO_VERSION = "0.118.2"
HUGO_VERSION = "0.147.8"
NODE_ENV = "production"
GO_VERSION = "1.20"
TZ = "UTC" # Set to preferred timezone
+1
View File
@@ -87,5 +87,6 @@ The list below is just a handful of the websites that are built using the Congo
| [bitingbytes.de](https://bitingbytes.de) | Personal Site and Blog |
| [janela.digital](https://janela.digital/) | Personal Blog (in Portuguese) |
| [leavex.eu](https://leavex.eu) | Leave X Campaign Site |
| [andreaceccanti.com](https://andreaceccanti.com) | Personal Site (in Italian) |
**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).
+4 -4
View File
@@ -1,5 +1,5 @@
{{- partial "partials/functions/warnings.html" .Site -}}
{{- partial "partials/functions/init.html" . -}}
{{- partial "functions/warnings.html" .Site -}}
{{- partial "functions/init.html" . -}}
<!doctype html>
<html
lang="{{- site.Language.LanguageCode | default "" -}}"
@@ -20,11 +20,11 @@
>{{ i18n "nav.skip_to_main" }}</a
>
</div>
{{ $header := print "partials/header/" .Site.Params.header.layout ".html" }}
{{ $header := print "header/" .Site.Params.header.layout ".html" }}
{{ if templates.Exists $header }}
{{ partial $header . }}
{{ else }}
{{ partial "partials/header/basic.html" . }}
{{ partial "header/basic.html" . }}
{{ end }}
<div class="relative flex grow flex-col">
<main id="main-content" class="grow">
+2 -2
View File
@@ -1,8 +1,8 @@
{{ define "main" }}
{{ $partial := print "partials/home/" .Site.Params.homepage.layout ".html" }}
{{ $partial := print "home/" .Site.Params.homepage.layout ".html" }}
{{ if templates.Exists $partial }}
{{ partial $partial . }}
{{ else }}
{{ partial "partials/home/page.html" . }}
{{ partial "home/page.html" . }}
{{ end }}
{{ end }}
+1 -1
View File
@@ -1,4 +1,4 @@
<time datetime="{{ . }}">
{{- i18n "article.date_updated" (dict "Date" (partial "functions/date.html" .)) | markdownify | emojify -}}
{{- i18n "article.date_updated" (dict "Date" (partial "functions/date.html" .)) | emojify -}}
</time>
{{- /* Trim EOF */ -}}
+1 -1
View File
@@ -1,4 +1,4 @@
<time datetime="{{ . }}">
{{- i18n "article.date" (dict "Date" (partial "functions/date.html" .)) | markdownify | emojify -}}
{{- i18n "article.date" (dict "Date" (partial "functions/date.html" .)) | emojify -}}
</time>
{{- /* Trim EOF */ -}}
+1 -1
View File
@@ -1,5 +1,5 @@
{{ if .Get "default" }}
{{ template "_internal/shortcodes/figure.html" . }}
{{ template "_shortcodes/figure.html" . }}
{{ else }}
{{ $url := urls.Parse (.Get "src") }}
{{ $altText := .Get "alt" }}
+1 -1
View File
@@ -3,7 +3,7 @@
publish = "exampleSite/public"
[build.environment]
HUGO_VERSION = "0.144.2"
HUGO_VERSION = "0.147.8"
HUGO_THEMESDIR = "../.."
HUGO_THEME = "repo"
TZ = "Australia/Melbourne"
+378 -631
View File
File diff suppressed because it is too large Load Diff
+4 -4
View File
@@ -31,11 +31,11 @@
"homepage": "https://github.com/jpanther/congo#readme",
"devDependencies": {
"@tailwindcss/typography": "^0.5.16",
"chart.js": "^4.4.8",
"chart.js": "^4.5.0",
"fuse.js": "^7.1.0",
"jsdom": "^26.0.0",
"katex": "^0.16.21",
"mermaid": "^11.4.1",
"jsdom": "^26.1.0",
"katex": "^0.16.22",
"mermaid": "^11.7.0",
"prettier": "^3.5.3",
"prettier-plugin-go-template": "^0.0.15",
"prettier-plugin-tailwindcss": "^0.6.11",