forked from gluesys/tech-blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
trends.html
34 lines (33 loc) · 1.16 KB
/
trends.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
---
layout: page
title: "시장 동향"
permalink: /trends/
order: 2
---
{% for trend in site.categories.trends %}
<ul class="posts-list">
<li>
<strong>
<a href="{{ trend.url | prepend: site.baseurl }}">{{ trend.title }}</a>
</strong>
<span class="post-date">- {{ trend.date | date_to_long_string }}</span>
<section class="post-excerpt" itemprop="description">
<p>{{ trend.content | strip_html | truncatewords: 50 }}</p>
</section>
<section class="post-meta">
<div class="post-date">{{ trend.date | date: "%B %-d, %Y" }}</div>
<div class="post-categories">
{% if trend.categories.size > 0 %}in {% for cat in trend.categories %}
{% if site.jekyll-archives %}
<a href="{{ site.baseurl }}/{{ cat }}">{{ cat | capitalize }}</a>{% if forloop.last == false %}, {% endif %}
{% else %}
<a href="{{ site.baseurl }}/posts/#{{ cat }}">{{ cat | capitalize }}</a>{% if forloop.last == false %}, {% endif %}
{% endif %}
{% endfor %}{% endif %}
</div>
</section>
</li>
</ul>
{% if forloop.last == false %}<hr>{% endif %}
{% endfor %}
<br>