-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.html
96 lines (76 loc) · 2.71 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
layout: default
disqus: false
archive: false
post_class: post-template
---
<!-- Begin Article
================================================== -->
<div class="row">
<!-- Post -->
{% assign first_page = site.posts | reverse | first" %}
<div class="col-sm-8">
<!-- Post Featured Image -->
{% if first_page.image %}<img class="featured-image img-fluid rounded" src="{{ first_page.image }}" alt="{{ first_page.title }}">{% endif %}
<!-- End Featured Image -->
<div class="mainheading">
<!-- Post Categories -->
<div class="after-post-tags">
<ul class="tags">
{% assign sortedCategories = first_page.categories | sort %}
{% for category in sortedCategories %}
<li>
<a href="{{ site.baseurl }}/categories#{{ category | slugify }}">{{ category }}</a>
</li>
{% endfor %}
</ul>
</div>
<!-- End Categories -->
<!-- Post Title -->
<h1 class="posttitle">{{ first_page.title }}</h1>
</div>
<!-- Post Date -->
<p>
<small>
<span class="post-date"><time class="post-date" datetime="{{ first_page.date | date:"%Y年%-m月%-d日" }}">{{ first_page.date | date:"%Y年%-m月%-d日" }}</time></span>
{% if first_page.last_modified_at %}
(Updated: <time datetime="{{ first_page.last_modified_at | date_to_xmlschema }}" itemprop="dateModified">{{ first_page.last_modified_at | date: "%b %-d, %Y" }}</time>)
{% endif %}
</small>
</p>
<!-- Post Content -->
<div class="article-post serif-font">
{{first_page.content}}
<div class="clearfix"></div>
</div>
<!-- Prev/Next -->
<div class="row PageNavigation mt-4 prevnextlinks d-flex justify-content-between">
<!-- {% if first_page.previous.url %}
<div class="col-md-6 rightborder pl-0">
<a class="thepostlink" href="{{first_page.previous.url | absolute_url}}">« {{first_page.previous.title}}</a>
</div>
{% endif %}
{% if first_page.next.url %}
<div class="col-md-6 text-right pr-0">
<a class="thepostlink" href="{{first_page.next.url | absolute_url}}">{{first_page.next.title}} »</a>
</div>
{% endif %} -->
{% for post in site.posts %}
{% unless forloop.last %}
<div class="col-md-6 text-right pr-0">
<a class="thepostlink" href="{{post.url | absolute_url}}">{{post.title}} »</a>
<span>({{ post.date | date: "%Y-%m-%d" }})</span>
</div>
{% endunless %}
{% endfor %}
</div>
<!-- End Prev/Next -->
</div>
<!-- End Post -->
<!-- Sidebar -->
<div class="col-sm-4">
{% include sidebar.html %}
</div>
</div>
<!-- End Article
================================================== -->