@page "/Noticia/{slug}" @using FernandoRibeiroPortal @{ var slug = RouteData.Values["slug"]?.ToString() ?? ""; var noticia = PortalContent.FindNews(Directory.GetCurrentDirectory(), slug); if (noticia is null) { Response.StatusCode = 404; } } @(noticia?.Title ?? "Notícia não encontrada") | Fernando Ribeiro
Fernando Ribeiro Admin
@if (noticia is null) {

Notícia não encontrada

Voltar ao início
} else {
@noticia.Title
@noticia.Category

@noticia.Title

@noticia.Summary

@noticia.Author
@noticia.Body
@if (!string.IsNullOrWhiteSpace(noticia.Source) && noticia.Source != "#") { Ver fonte }
}