@using TIAMWebApp.Shared.Application.Models @using TIAMWebApp.Shared.Application.Services @inject BlogService BlogService

Blog Posts

Discover the hidden gems and breathtaking landscapes of Hungary! Our blog features inspiring destinations, scenic routes, and must-see spots that invite you to explore the natural beauty of this enchanting country. Whether you're planning your next adventure or simply dreaming of a getaway, let these stories guide your journey.

@if (posts == null) {

Loading blog posts...

} else if (posts.Count == 0) {

No blog posts found.

} else { @*
*@
@foreach (var post in posts) {
@if (!string.IsNullOrEmpty(post.CoverImage)) { @post.Title }
@post.Title
@if (!string.IsNullOrEmpty(post.Lead)) {

@post.Lead

} @if (post.Tags?.Count > 0) {

@string.Join(", ", post.Tags)

} Read More
@*

@post.Title

@post.Tags

@post.Lead

@post.Id

by
*@ } @*
*@
} @code { [Parameter] public int PreviewNumber { get; set; } = 4; private List? posts; protected override async Task OnInitializedAsync() { posts = (await BlogService.GetAllPostsAsync()).Take(PreviewNumber).ToList(); } }