-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
85 lines (70 loc) · 2.36 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
---
layout: default
title: Home
cover: false
about: 'about.html'
logo: 'https://www.myget.org/Content/images/myget/logo.png'
---
{% include base_path %}
<div class="row breadcrumbs">
<div class="col-md-12">
<ul class="breadcrumb">
<li><a href="/">Home</a></li>
</ul>
</div>
</div>
<article>
<div class="row">
<div class="col-md-8 order-2 order-md-1">
{% for post in paginator.posts %}
<article>
<header>
<h2 class="post-title"><a href="{{ post.url }}">{{ post.title }}</a></h2>
<section class="post-meta">
{% capture page_tags %}{% for tag in post.tags %}{{ tag | downcase }}#{{ tag }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
{% assign tag_hashes = page_tags | split: ',' | sort:0 %}
{% if tag_hashes %}
<span itemprop="keywords">
{% for hash in tag_hashes %}
{% assign keyValue = hash | split: '#' %}
{% capture tag_word %}{{ keyValue[1] | strip_newlines }}{% endcapture %}
<a href="/tags/#{{ tag_word | slugify }}" class="page__taxonomy-item" rel="tag">{{ tag_word }}</a>{% unless forloop.last %}<span class="sep">, </span>{% endunless %}
<!--{{ tag_word }}{% unless forloop.last %}<span class="sep">, </span>{% endunless %}-->
{% endfor %}
</span>
{% endif %}
{% if post.author %}
<span class="author">{{ post.author }}</span>
{% endif %}
<time class="post-date" datetime="{{ date | date:"%Y-%m-%d" }}">{{ post.date | date_to_string }}</time>
</section>
</header>
<section class="post-content post-excerpt">
{{ post.content | strip_html | truncatewords:75 }}
<div class="text-right">
<a href="{{ post.url }}" class="read-more ml-auto">Read more »</a>
</div>
</section>
<footer class="post-footer">
</footer>
</article>
{% endfor %}
</div>
<div class="col-md-3 offset-md-1 order-1 order-md-2">
<h4>Category</h4>
{% include group-by-array collection=site.posts field="tags" %}
<ul class="tag-list">
{% for tag in group_names %}
{% assign posts = group_items[forloop.index0] %}
<li><a href="/tags/#{{ tag | slugify }}">{{ tag }}</a></li>
{% endfor %}
</ul>
</div>
</div>
</article>
<hr />
<div class="row breadcrumbs">
<div class="col-md-12 text-center">
{% include pagination.html %}
</div>
</div>