{{ define "main" }} {{/* Enable Alpine.js for tag filtering */}} {{ .Store.Set "has_alpine" true }} {{/* Collect all unique tags from slides */}} {{ $allTags := slice }} {{ $featuredPages := slice }} {{ $regularPages := slice }} {{ $search_placeholder := i18n "slides_search_placeholder" | default "Search decks by title..." }} {{ $all_label := i18n "all" | default "All" }} {{ $no_decks_label := i18n "slides_no_decks" | default "No slide decks found" }} {{ $no_matches_label := i18n "slides_no_matches" | default "No decks match your filters" }} {{ $clear_filters_label := i18n "clear_filters" | default "Clear filters" }} {{ range .Pages }} {{ if .Params.tags }} {{ range .Params.tags }} {{ $allTags = $allTags | append . }} {{ end }} {{ end }} {{ if or .Params.featured .Params.pinned }} {{ $featuredPages = $featuredPages | append . }} {{ else }} {{ $regularPages = $regularPages | append . }} {{ end }} {{ end }} {{ $allTags = $allTags | uniq | sort }} {{/* Sort featured by date descending, then regular by date descending */}} {{ $featuredPages = sort $featuredPages ".Date" "desc" }} {{ $regularPages = sort $regularPages ".Date" "desc" }} {{ $sortedPages := $featuredPages | append $regularPages }}
{{ $no_decks_label }}
{{ $no_matches_label }}