Skip to content

Commit

Permalink
Merge pull request #116 from zachlasiuk/main
Browse files Browse the repository at this point in the history
workaround 2
  • Loading branch information
zachlasiuk authored Mar 8, 2024
2 parents c2866a9 + 544ffae commit 5ffade5
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
*/}}

{{ $category := .Params.category}}
{{ $group := index .Site.Data.category_data.subcategory_mapping $category | default ""}}
{{ $group := ""}}

{{ if isset .Site.Data.category_data.subcategory_mapping $category }}
{{ $test_group := index .Site.Data.category_data.subcategory_mapping $category }}
{{ if ne $test_group nil }}
{{ $group = $test_group }}
{{end}}
{{ end }}

<u><b>Category:</b> {{ $group }}</u>

0 comments on commit 5ffade5

Please sign in to comment.