12 Commits

Author SHA1 Message Date
James Panther 29de0a1465 🚸 Prefer using absolute URLs over relative URLs
Closes: #997
2025-06-22 15:33:04 +10:00
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 6415614513 🎨 Code cleanup 2023-12-26 11:22:55 +11:00
James Panther 1a9a76d532 💄 Adopt logical properties for RTL styling 2023-04-05 10:50:15 +10:00
James Panther edd2d7c564 📝 Visual updates to documentation 2023-01-16 11:47:07 +11:00
James Panther 15e67f5903 ♻️ Move home switcher JS to external file 2022-01-27 12:28:32 +11:00
James Panther 586224fc7a 📝 Add colour scheme docs with preview swatches 2021-10-18 14:36:36 +11:00
James Panther 139706895c ♻️ Move homepage recent articles to partial 2021-08-18 14:35:54 +10:00
James Panther 7030022620 💄 Style updates to enhance design consistency 2021-08-18 12:54:18 +10:00
James Panther b1f6b2ed7b 📝 Complete documentation overhaul 2021-08-16 17:19:10 +10:00
James Panther 7285cac334 Add multiple homepage layouts 2021-08-15 18:41:40 +10:00