diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-05 08:43:04 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-05 08:43:04 +0200 |
| commit | 880f1ce121434e641c09f63e43ab08a2beaa83d4 (patch) | |
| tree | 09ec0b198d7852d8ca57a8c87d8b430ae44f4690 /layouts/section.html | |
| parent | 474b8f177078cfdc2d4342e9ead4d505afa02d62 (diff) | |
| download | danixxyz-theme-880f1ce121434e641c09f63e43ab08a2beaa83d4.tar.gz danixxyz-theme-880f1ce121434e641c09f63e43ab08a2beaa83d4.zip | |
feat: add filter functionality, archetypes, and sample content
- Create filters.js for post filtering by type (tech, life, quote, link, photo)
- Add article.md and page.md archetypes with appropriate fields
- Update default.md archetype with correct TOML syntax
- Create sample content for home, articles, and about pages
- Fix section.html template resource permalink syntax
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Diffstat (limited to 'layouts/section.html')
| -rw-r--r-- | layouts/section.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/section.html b/layouts/section.html index 4de7628..8b938f3 100644 --- a/layouts/section.html +++ b/layouts/section.html @@ -24,6 +24,7 @@ </div> {{ if eq .Type "articles" }} - <script defer src="{{ resources.Get "js/filters.js" | fingerprint | .RelPermalink }}"></script> + {{ $filters := resources.Get "js/filters.js" | fingerprint }} + <script defer src="{{ $filters.RelPermalink }}"></script> {{ end }} {{ end }} |
