@inherits StatiqRazorPage> @foreach (var post in Model ?? Array.Empty()) {

@post.GetString("Title")

@{ var author = post.GetString("Author"); var published = post.GetDateTime("Published"); var category = post.GetString("Category"); }
Posted @if (published != default(DateTime)) { @published.ToLongDateString() } @if (author != null) { by @author } @if (category != null) { var categoryUrl = @Context.GetLink($"blog/{NormalizedPath.OptimizeFileName(category)}/index.html"); to @category }
@Html.Raw(@post.GetString("Excerpt"))
}