File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,11 +26,30 @@ Jump in and <a href="/quickstart"><strong>get started</strong></a>.
2626<hr style =" margin-top :20px " >
2727
2828<div class =" row " >
29- {% for post in site.categories.news limit:3 %}
29+ {% assign loopcount = 1 %}
30+ {% for post in site.posts %}
31+
32+ {% if loopcount < 4 %}
33+
34+ <!-- Parse news-->
35+ {% if post.category == "news" %}
36+ {% assign loopcount = loopcount | plus: 1 %}
3037 <div class =" col-md-4 " >
3138 <h2><a class="post-link" href="{{ post.url | remove: "/" }}">{{ post.title }}</a></h2>
3239 <span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
3340 <p>{{ post.content | truncatewords: 20 | strip_html }}</p>
3441 </div >
42+ {% endif %}
43+
44+ {% if post.category == "releases" %}
45+ {% assign loopcount = loopcount | plus: 1 %}
46+ <div class =" col-md-4 " >
47+ <h2><a class="post-link" href="{{ post.url | remove: "/" }}">{{ post.title }}</a></h2>
48+ <span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
49+ <p>{{ post.content | truncatewords: 20 | strip_html }}</p>
50+ </div >
51+ {% endif %}
52+ {% endif %}
53+
3554 {% endfor %}
3655</div >
Original file line number Diff line number Diff line change 1010< div class ="home ">
1111
1212 < div class ="post-list ">
13- {% for post in site.categories.news limit:10 %}
1413
14+ {% assign loopcount = 1 %}
15+ {% for post in site.posts %}
16+
17+ {% if loopcount < 11 %}
18+
19+ <!-- Parse news-->
20+ {% if post.category == "news " %}
21+ {% assign loopcount = loopcount | plus: 1 %}
22+
23+
24+ < h2 > < a class ="post-link " href ="{{ post.url | remove: "/" }}"> {{ post.title }}</ a > </ h2 >
25+ < span class ="post-meta "> {{ post.date | date: "%b %-d, %Y" }} /
26+ {% for tag in post.tags %}
27+
28+ < a href ="{{ "tag_ " | append: tag | append: ".html"}}"> {{tag}}{{tag}}</ a > {% unless forloop.last %}, {% endunless%}
29+
30+ {% endfor %}</ span >
31+ < p > {% if page.summary %} {{ page.summary | strip_html | strip_newlines | truncate: 160 }} {% else %} {{ post.content | truncatewords: 50 | strip_html }} {% endif %}</ p >
32+
33+
34+ {% endif %}
35+
36+ {% if post.category == "releases" %}
37+ {% assign loopcount = loopcount | plus: 1 %}
1538
1639 < h2 > < a class ="post-link " href ="{{ post.url | remove: "/" }}"> {{ post.title }}</ a > </ h2 >
1740 < span class ="post-meta "> {{ post.date | date: "%b %-d, %Y" }} /
@@ -22,7 +45,10 @@ <h2><a class="post-link" href="{{ post.url | remove: "/" }}">{{ post.title }}</a
2245 {% endfor %}</ span >
2346 < p > {% if page.summary %} {{ page.summary | strip_html | strip_newlines | truncate: 160 }} {% else %} {{ post.content | truncatewords: 50 | strip_html }} {% endif %}</ p >
2447
25- {% endfor %}
48+ {% endif %}
49+ {% endif %}
50+
51+ {% endfor %}
2652
2753 < p > < a href ="feed.xml "" class="btn btn-primary navbar-btn cursorNorm" role="button"> RSS Subscribe{{tag}}</ a > </ p >
2854
Original file line number Diff line number Diff line change 1414
1515 < section id ="archive ">
1616 < h3 > This year's posts</ h3 >
17- {%for post in site.categories.news %}
17+ {% for post in site.categories.news %}
1818 {% unless post.next %}
1919 < ul class ="this ">
2020 {% else %}
You can’t perform that action at this time.
0 commit comments