Skip to content

Commit 30dd45e

Browse files
committed
trying to fix posts
1 parent b7a6677 commit 30dd45e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

_includes/news.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ <h3>News</h3>
44

55
{% for article in site.data.news limit:9 %}
66
{%- if article.img %}
7+
<div class="row"></div>
78
<div class="col-sm-6 clearfix"></div>
89
<img src="{{ site.url }}{{ site.baseurl }}/images/news/{{ article.img }}" class="img-responsive" width="22%" style="float: left" />
910
{{ article.date }}<br/>
1011
{{ article.headline}}
1112
</div>
13+
</div>
1214
{%- else -%}
1315
<p>
1416
{{ article.date }}<br/>

_pages/allnews.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ permalink: /allnews.html
1111
<div class="well">
1212
{% for article in site.data.news %}
1313
{%- if article.img %}
14+
<div class="row">
1415
<div class="col-sm-6 clearfix">
1516
<img src="{{ site.url }}{{ site.baseurl }}/images/news/{{ article.img }}" class="img-responsive" width="22%" style="float: left" />
1617
{{ article.date }}<br/>
1718
{{ article.headline}}</div>
19+
</div>
1820
{%- else -%}
1921
<p>{{ article.date }}<br/>
2022
{{ article.headline}}</p>

0 commit comments

Comments
 (0)