this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

✨ Allow searching by year

+4 -2
+2 -1
components/gallery.templ
··· 38 38 })) 39 39 40 40 document.searcher = new Fuse(works.map(w => Object.assign({}, w.dataset)), { 41 - keys: ['work', 'title', 'tags'], 41 + keys: ['work', 'title', 'tags','year'], 42 42 threshold: 0.4, 43 + useExtendedSearch: true, 43 44 }) 44 45 45 46 console.log(`Indexed ${works.length} works`)
+2 -1
components/work_card.templ
··· 98 98 } 99 99 </style> 100 100 <article 101 - i18n-attrs 101 + i18n-attrs 102 102 data-work={ work.ID } 103 103 data-title={ work.Content[language].Title.String() } 104 104 i18n:commas:data-tags={ strings.Join(work.Metadata.Tags, ",") } 105 + data-year={ shared.FormatDate(work.Metadata.CreatedAt(), "2006", language) } 105 106 class={ "work", card() } 106 107 data-no-thumb?={ ThumbPath(work, language) == "http://localhost:8080/" } 107 108 data-primary={ shared.Color(work.Colors(language).Primary) }