<commit_before>﻿@using Sakura.AspNetCore;
@using Blog.ViewModels
@using Blog.Models
@model Blog.ViewModels.PageViewModel


@section Styles {
    <link rel="stylesheet" href="~/css/BackToTop.css" />
}

@section Scripts {
    <script src="~/js/scrollToTop.js"></script>
}




<div class="row">
    <div class="col-lg-9">

        @if (Model.PostsPerPage.TotalCount != 0)
        {
            @Html.Partial("_Posts", Model)

        }
    </div>
    <div class="col-lg-3">
        <div class="well">
            <h2>Categories</h2>
            <ul class="list-group">
                <li class="list-group-item">Development</li>
                <li class="list-group-item">Managment</li>
                <li class="list-group-item">Design</li>
                <li class="list-group-item">Other</li>
            </ul>
        </div>
        <div class="well">
            <h2>Latest posts</h2>
            <ul class="list-group">
             <li class="list-group-item"></li>
            </ul>
        </div>
    </div>
</div>

<a href="#" class="scrollToTop">Scroll To Top</a>
<div class="container">
    <div class="row">
        @Html.Partial(@"_Pagination", Model)
    </div>
</div><commit_msg>Added latest posts panel<commit_after>﻿@using Sakura.AspNetCore;
@using Blog.ViewModels
@using Blog.Models
@model Blog.ViewModels.PageViewModel


@section Styles {
    <link rel="stylesheet" href="~/css/BackToTop.css" />
}

@section Scripts {
    <script src="~/js/scrollToTop.js"></script>
}


@{ 
    var latestPosts = Model.PostsPerPage.Where(option => option.PostedOn.Date == DateTime.Today);
}

<div class="row">
    <div class="col-lg-9">

        @if (Model.PostsPerPage.TotalCount != 0)
        {
            @Html.Partial("_Posts", Model)

        }
    </div>
    <div class="col-lg-3">
        <div class="well">
            <h2>Categories</h2>
            <ul class="list-group">
                <li class="list-group-item">Development</li>
                <li class="list-group-item">Managment</li>
                <li class="list-group-item">Design</li>
                <li class="list-group-item">Other</li>
            </ul>
        </div>
        <div class="well">
            <h2>Latest posts</h2>
            <ul class="list-group">
                @foreach (var post in latestPosts)
                {
                    <li class="list-group-item"><a asp-controller="Post" asp-action="OpenPost" asp-route-id="@(post.Id)"> @post.Title</a></li>
                }
            </ul>
        </div>
    </div>
</div>

<a href="#" class="scrollToTop">Scroll To Top</a>
<div class="container">
    <div class="row">
        @Html.Partial(@"_Pagination", Model)
    </div>
</div>
{'fraction_non_alphanumeric': 0.17962067683153587, 'fraction_numerical': 0.005206396429899591, 'mean_word_length': 2.049886621315193, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 80, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4311046', 'n_tokens_mistral': 914, 'n_tokens_neox': 867, 'n_words': 154}