-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathblog.html
More file actions
72 lines (71 loc) · 2.38 KB
/
Copy pathblog.html
File metadata and controls
72 lines (71 loc) · 2.38 KB
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
---
layout: default
---
<section class="jumbotron jumbotron-fluid site-small-jumbo">
<div class="container-fluid">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<h1 class="display-4">{{ site.blog.title }}</h1>
<h5>{{ site.blog.header }}</h5>
<ul class="blog-tags-list">
{% for tag in site.tag_pages %}
<li class="blog-tag">
<a href="{{ tag.url }}">{{ tag.name }}:</a>
<p>{{ tag.content }}</p>
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
</section>
<section class="blogpage-section">
<ul class="container-fluid post-list">
{% for post in site.posts %}
<li class="post-item row text-xs-left" style="background-color:{{post.background_color}}">
<div class="col-md-2 col-md-offset-2">
<h6 class="card-subtitle post-date">{{ post.date | date: "%b %-d, %Y" }}</h6>
<ul class="post-tags-list">
{% for tag in post.tags %}
{% assign tag_url = site.tag_pages | where: "name", tag %}
<li class="post-tag"><a href="{{ tag_url[0].url }}" style="background-color: {{tag_url[0].bk-color}}; color: {{ tag_url[0].txt-color }}">{{ tag }}</a></li>
{% endfor %}
</ul>
</div>
<div class="col-md-6">
<h2 class="card-title post-title">
<a href="{{ post.url | prepend: site.baseurl }}">
{{ post.title }}
</a>
</h2>
<p class="card-text post-excerpt">{{ post.excerpt | truncatewords: 45 }}</p>
</div>
</li>
{% endfor %}
</ul>
<!-- <div class="row">
<div class="col-md-12">
</div>
<div class="col-lg-3 hidden-md-down">
<ul class="post-time-list">
{% assign years = site.posts | group_by: "year" %}
{% for year in years %}
<li><em>{{ year.name }}</em>
{% assign months = year.items | group_by: "month" %}
<ul>
{% for month in months %}
<li><em>{{ month.name }}</em>
<ul>
{% for post in month.items %}
<li><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</div>
</div> -->
</section>