/
index.html
69 lines (66 loc) · 2.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
layout: default
title: .NET software development, Brewers baseball, pop culture, etc.
---
{% assign index = true %}
<section class="post-list" itemscope="" itemtype="http://schema.org/Blog">
{% for post in paginator.posts %}
{% assign content = post.content %}
<article itemscope="" itemtype="http://schema.org/BlogPosting" role="article" class="post-item post">
<header class="post-item-header">
<h2 itemprop="name" class="post-item-title">
<a href="{{ post.url }}">{{ post.title }}</a>
</h2>
</header>
{% if post.categories and post.categories.size > 0 %}
<div class="meta">
<div class="tags">
<i class="fa-solid fa-tag"></i>
{% for category in post.categories %}
<span class="badge">
<a href="{{ site.baseurl }}/categories/#{{ category | slugify }}">{{ category }}</a>
</span>
{% endfor %}
</div>
</div>
{% endif %}
<section itemprop="description" class="post-item-exceprt text-justify">
<div class="row">
<div class="col">
<p class="excerpt">
<a class="excerpt" href="{{ post.url }}">{{- post.excerpt | strip_html -}}</a>
</p>
</div>
{% if post.image and post.image.size > 0 %}
<div class="col-3">
<a class="excerpt" class="link-light link-underline-light" href="{{ post.url }}">
<img src="/{{ post.image }}" class="img-thumbnail rounded" alt="{{ post.title }}" />
</a>
</div>
{% endif %}
</div>
</section>
<footer class="post-item-footer">
<ul class="post-item-meta-list list-inline">
<li class="post-item-meta-item text-secondary">
<em>{{ post.date | date_to_string }}</em>
</li>
</ul>
</footer>
</article>
{% endfor %}
</section>
{% if paginator.total_pages > 1 %}
<ul class="pagination">
{% if paginator.next_page %}
<li class="page-item">
<a class="page-link" href="{{ paginator.next_page_path }}">« Older Posts</a>
</li>
{% endif %}
{% if paginator.previous_page %}
<li class="page-item">
<a class="page-link" href="{{ paginator.previous_page_path }}">Newer Posts »</a>
</li>
{% endif %}
</ul>
{% endif %}