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
4e4b470915
🐛 Fix for templating changes in Hugo v0.146.0 or later
...
Fixes #1049
2025-06-22 11:10:09 +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
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
68ce84075e
🎨 Tailwind classes cleanup
2023-12-26 11:56:32 +11:00
James Panther
6415614513
🎨 Code cleanup
2023-12-26 11:22:55 +11:00
James Panther
ad8a1b0390
✨ Add new locale picker and related improvements
...
Closes : #583
2023-09-12 09:22:49 +10:00
James Panther
1a9a76d532
💄 Adopt logical properties for RTL styling
2023-04-05 10:50:15 +10:00
James Panther
28a187895f
✨ Allow appearance switcher to be placed in menus
2023-01-17 12:58:04 +11:00
James Panther
73e16a25a2
🎨 Standardise Tailwind CSS class order
2022-08-18 14:59:46 +10:00
James Panther
a8f98205c9
🥅 Add build warning when old theme params found
2022-06-27 13:12:26 +10:00
James Panther
e2b7af1e72
✨ Add header layouts and hamburger menu layout
...
Ref #167 , #88 , #43 , #29
2022-06-27 12:31:15 +10:00
James Panther
efbeceaa4f
💥 Move footer parameters to their own sub-group
2022-06-27 10:30:07 +10:00
James Panther
f007a1f294
🩹 Improve scroll to top link alignment
2022-06-25 13:04:41 +10:00
James Panther
3b3d78afaf
🐛 Fix main content not growing to window height
...
Fixes #201
2022-05-25 13:57:24 +10:00
James Panther
04a44fcd07
🐛 Fix scroll to top link alignment
...
Fixes #172
2022-05-01 10:19:32 +10:00
James Panther
972233063c
🐛 Fix scroll to top link alignment
...
Fixes #172
2022-04-12 09:17:17 +10:00
James Panther
d8c2534762
💄 Fix main not filling screen vertically
2022-02-07 09:37:59 +11:00
James Panther
09d2e410c8
🐛 Stop site appearance taking priority over user
...
Fixes #102
2022-02-05 19:19:47 +11:00
James Panther
53eeda3770
♻️ Change language htmlCode to isoCode
2022-01-27 15:42:05 +11:00
James Panther
d86d1b82be
♻️ Dark mode rewrite
2022-01-27 15:26:18 +11:00
James Panther
0f34dcfa05
💄 Minor style tweaks to improve consistency
2022-01-19 10:25:48 +11:00
James Panther
b99b6a8750
✨ Add scroll to top link
2022-01-18 17:26:46 +11:00
James Panther
adaa7b757e
✨ Add site search powered by Fuse.js
2022-01-13 15:56:30 +11:00
James Panther
e9c8a4a049
♿ ️ Add "skip to main content" links
2022-01-12 15:53:24 +11:00
James Panther
2043921232
💄 Add smooth scrolling behaviour
2022-01-12 00:08:38 +11:00
James Panther
cdf56a1e11
🌐 Add RTL language support
2022-01-11 16:17:49 +11:00
James Panther
9c8601102c
🌐 Add language switcher to header
2022-01-11 12:00:27 +11:00
James Panther
a1006c4f7b
💄 Adopt new Tailwind v3 classes and colour names
2021-12-25 10:53:46 +11:00
James Panther
81824a1a00
🚧 Add config parameters for dark appearance
2021-10-29 12:07:21 +11:00
James Panther
ecfa2d395b
✨ Add multiple colour schemes
2021-08-20 17:02:08 +10:00
James Panther
7285cac334
✨ Add multiple homepage layouts
2021-08-15 18:41:40 +10:00
James Panther
1b1615476d
📱 Reflow some elements at smaller screen sizes
2021-08-14 13:33:45 +10:00
James Panther
a6a3ee761e
🎉 Initial commit
2021-08-11 15:28:33 +10:00