@using global::Shared.DTOs

@inject NavigationManager Navigation
<div class="rc__post mb-20 d-flex">
    <div class="rc__post-thumb fix mr-20">
        <a href="@Navigation.ToAbsoluteUri($"/BlogDetails/{@Item?.ID}")"><img src="img/blog/@Item?.Photo" alt=""></a>
    </div>
    <div class="rc__post-content">
        <h3 class="rc__post-title">
            <a href="@Navigation.ToAbsoluteUri($"/BlogDetails/{@Item?.ID}")">
          @Item?.Title.Split(':')[1]
            </a>
        </h3><a>
            <div class="rc__meta">
                <span>@Item?.Date</span>
            </div>
        </a>
    </div><a>
    </a>
</div><a href="@Navigation.ToAbsoluteUri($"/BlogDetails/{@Item?.ID}")"></a>

@code {
    [Parameter]
    public BlogDto? Item { get; set; }
    
}
