Apmannen / MichaelKjellander

Upcoming michaelkjellander.se site. WORK IN PROGRESS. Built with Blazor (.NET/C#), using the Wordpress API to fetch all existing posts and pages from the old (current) site. Tailwind is used for styling.
https://new.michaelkjellander.se/
0 stars 0 forks source link

Can we add meta to categories? #28

Open Apmannen opened 5 months ago

Apmannen commented 5 months ago

Can we add meta to categories? If so, we could have some static types for them rather than ID or slug.

Actually, ID is more static than slug.

Current solution:

public static string GetSlugByType(CategoryType categoryType) { return categoryType switch { CategoryType.GameReview => "tv-spelrecensioner", CategoryType.Game => "spel", CategoryType.Other => "okategoriserade", _ => "" }; }