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 /archetypes | |
| 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 'archetypes')
| -rw-r--r-- | archetypes/article.md | 11 | ||||
| -rw-r--r-- | archetypes/default.md | 6 | ||||
| -rw-r--r-- | archetypes/page.md | 8 |
3 files changed, 23 insertions, 2 deletions
diff --git a/archetypes/article.md b/archetypes/article.md new file mode 100644 index 0000000..477a18f --- /dev/null +++ b/archetypes/article.md @@ -0,0 +1,11 @@ ++++ +title = "{{ replace .File.ContentBaseName "-" " " | title }}" +date = {{ .Date }} +draft = true +type = "tech" # Options: tech, life, quote, link, photo +featured = false +image = "" # Optional: image path or URL +description = "Brief description of the article (2 lines max)" ++++ + +Write your article here... diff --git a/archetypes/default.md b/archetypes/default.md index 25b6752..502fd89 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,5 +1,7 @@ +++ -date = '{{ .Date }}' +title = "{{ replace .File.ContentBaseName "-" " " | title }}" +date = {{ .Date }} draft = true -title = '{{ replace .File.ContentBaseName "-" " " | title }}' +++ + +Content here... diff --git a/archetypes/page.md b/archetypes/page.md new file mode 100644 index 0000000..fe37a38 --- /dev/null +++ b/archetypes/page.md @@ -0,0 +1,8 @@ ++++ +title = "{{ replace .File.ContentBaseName "-" " " | title }}" +date = {{ .Date }} +draft = false +type = "page" ++++ + +Write your page content here... |
