Commit Graph

365 Commits

Author SHA1 Message Date
James Panther 99d5cf8b28 🚚 Move files around as per new Hugo layouts directory structure 2025-06-22 14:20:15 +10:00
Matthew Sanabria ab574da6ab layouts: correctly check for template existence
https://github.com/jpanther/congo/commit/4e4b470915171a5855f3f2ea25851995aace8b55
fixed the theme for building with Hugo v0.146.0 or later but it
doesn't correctly check for template existence. That is, if you set
`homepage.layout` to `profile` this theme will still load the `page`
layout.

Hugo's [templates.Exists](https://gohugo.io/functions/templates/exists/)
function tests for the existence of templates relative to the `layouts`
directory. The example code they provide uses `printf` to join the
template name with the `_partials` directory, which would be `partials`
instead for this theme.

```
{{ $partialPath := printf "headers/%s.html" .Type }}
{{ if templates.Exists ( printf "_partials/%s" $partialPath ) }}
  {{ partial $partialPath . }}
{{ else }}
  {{ partial "headers/default.html" . }}
{{ end }}
```
2025-06-21 22:29:16 -04:00
James Panther 228c253944 📝 Update documentation for .canonicalUrl 2025-06-22 11:49:07 +10:00
James Panther 95b556d319 Merge branch 'dev' into patch-canonical-url 2025-06-22 11:41:57 +10:00
James Panther ffa096165d Merge pull request #1028 from davidolrik/no-markdownify-on-dates
fix: Don’t markdownify dates
2025-06-22 11:11:35 +10:00
James Panther 4e4b470915 🐛 Fix for templating changes in Hugo v0.146.0 or later
Fixes #1049
2025-06-22 11:10:09 +10:00
HactarCE bc07e401ad Add canonicalUrl parameter 2025-04-02 11:25:03 -04:00
David Jack Wange Olrik 6f113e5754 fix: Don’t markdownify dates
To prevent “ordered list” markup in languages like Danish and German dates are no longer markdownifed.

Date formates like: `2. January 2006` would be turned into ordered lists because of the period after 2.
2025-03-02 17:53:16 +01:00
James Panther 2fec7c0c97 🐛 Ensure profile partial generates WebP images where requested
Fixes: #993
2025-02-24 13:28:44 +11:00
James Panther 804259f5f9 🐛 Ensure vendor scripts use fingerprintAlgorithm site param
Fixes: #1015
2025-02-24 11:09:55 +11:00
James Panther b6bc820acc 🔀 Merge pull request #990 from shane-yao/dev
🐛 Fix: incorrect translation link in multihost mode #988
2025-02-24 10:54:40 +11:00
James Panther 52663e5ad4 Add gist shortcode 2025-02-24 10:11:02 +11:00
Shane Yao 9ad2fa715e 🐛 Fix: incorrect translation link in multihost mode #988 2025-01-04 01:15:55 +08:00
James Panther 8e58306c9c 🔀 Merge pull request #921 from jneidel/dev
Replace .Site.IsMultiLingual with hugo.IsMultilingual
2024-10-07 10:25:38 +11:00
James Panther 3f7453e9e8 🔀 Merge pull request #806 from Jh123x/fix/772/set-to-top-elem-on-scrollable-height
feat: add js to check height and decide if to top is required
2024-08-29 12:15:52 +10:00
James Panther 249c6fa6ee Merge branch 'dev' of https://github.com/jpanther/congo into dev 2024-08-29 10:35:35 +10:00
James Panther b8a8f96010 Add profile shortcode 2024-08-29 10:35:24 +10:00
Jonathan Neidel 8fd3cfb13d Replace .Site.IsMultiLingual with hugo.IsMultilingual 2024-08-25 13:05:50 +02:00
Holger Huo 24be2a5ed1 🎨 Add breadcrumb to schema data 2024-05-22 11:32:21 +08:00
Wen Junhua fce82b45b2 Merge branch 'dev' into fix/772/set-to-top-elem-on-scrollable-height 2024-05-07 23:45:23 +08:00
James Panther bc416afe0d 🐛 Fix next article pagination link animation is inverted
Fixes: #870
2024-05-03 15:25:28 +10:00
James Panther 791709467f 🎨 Update picture warning message 2024-05-02 08:16:57 +10:00
James Panther 05e5e8b700 🐛 Fix animated GIFs are static when enableImageWebp is set
Fixes: #866
2024-05-01 17:03:04 +10:00
Wen Junhua 86416cbe27 fix: update to also obey site settings 2024-04-30 23:07:58 +08:00
Wen Junhua 65fa14c595 Merge remote-tracking branch 'upstream/dev' into fix/772/set-to-top-elem-on-scrollable-height 2024-04-30 22:35:04 +08:00
James Panther 62a8c979b1 🎨 Code cleanup 2024-04-30 15:18:38 +10:00
James Panther c20e2338a8 🐛 Fix inconsistent picture rendering when using Markdown
Fixes: #828
2024-04-29 16:38:36 +10:00
James Panther 9daf083f46 🐛 Fix featured images overlap page title when metadata hidden
Fixes: #827
2024-04-29 15:36:19 +10:00
James Panther 26159437b7 🔀 Merge pull request #849 from ItsSunnyMonster/add-theme-color
 add defaultThemeColor option
2024-04-17 15:10:10 +10:00
ItsSunnyMonster 4f65d3bf4e add defaultThemeColor option 2024-04-01 19:43:01 +13:00
Francesco Maida 4d5643f861 Added support for Umami Analytics. See #829 for further references. 2024-03-16 17:13:29 +01:00
James Panther 33d34eea0f 🐛 Fix table of contents border missing
Fixes: #794
2024-03-09 15:34:56 +11:00
Wen Junhua 8f39c107eb Merge branch 'dev' into fix/772/set-to-top-elem-on-scrollable-height 2024-03-09 12:10:25 +08:00
Tomy Hsieh 0a6267c171 🛠 fix: Space in rendered link 2024-02-22 21:36:43 -05:00
Wen Junhua 62d4d4112c feat: add js to check height and decide if to top is required 2024-02-06 23:16:47 +08:00
James Panther b2f82274ed 🔀 Merge pull request #778 from Jh123x/feat/use-meta-refresh
feat: use meta tag to redirect externalURLs
2024-01-22 09:17:59 +11:00
James Panther 25f82b2f28 🚧 Remove redundant else block 2024-01-22 09:12:19 +11:00
James Panther bce395070c 🔀 Merge pull request #741 from wolfspyre/author-picture
♻️ Render author image with picture partial
2024-01-21 14:41:56 +11:00
James Panther 9433645cb6 🔀 Merge pull request #785 from pomeloy/fix
Fix picture partial img/source attributes
2024-01-21 14:36:51 +11:00
James Panther c282e97333 🔀 Merge pull request #730 from stereobooster/fix-bug-in-picture
fix bug in picture with params
2024-01-21 14:31:01 +11:00
pomeloy 9285958da9 Do not render article-meta figure if there is nothing to display 2024-01-21 14:25:52 +11:00
James Panther 83d5984a53 🔀 Merge pull request #788 from pomeloy/fix2
Fix vertical offset when using locale switcher
2024-01-21 09:43:59 +11:00
pomeloy c5f342c7f6 Revert "💄 Fix Safari status bar style" 2024-01-20 08:49:12 +01:00
James Panther 900a945d0e 🔀 Merge pull request #789 from janurskremer/safari-fix
💄 Fix Safari status bar style
2024-01-20 10:58:28 +11:00
Jan Kremer 088be03f0b 💄 Fix Safari status bar style
Add status bar style meta tag in head.html, add setting same value in appearance.js
2024-01-19 20:02:44 +01:00
pomeloy 1cf7d8bdd3 Update translations.html 2024-01-19 18:30:51 +01:00
pomeloy 7d1b63b11d Fix vertical offset when using locale switcher 2024-01-19 18:04:00 +01:00
pomeloy 9a341f1724 Fix picture partial img/source attributes
Remove duplicate src attribute from image tag.
Remove not allowed src attribute from source tag.
Add default sizes attributes to img and source tag.
Fix inconsistent srcset width.
2024-01-19 16:17:28 +01:00
Wen Junhua c514283044 feat: use meta tag to redirect externalURLs 2024-01-14 01:39:06 +08:00
Wen Junhua f0757d024a fix: fix extra symbol 2023-12-30 14:26:46 +08:00