Skip to content

Commit c2b95fb

Browse files
committed
fixing news
1 parent d656a91 commit c2b95fb

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

_pages/allnews.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,25 @@ permalink: /allnews.html
88

99
# News
1010

11+
<div class="well">
12+
{% for article in site.data.news %}
13+
<div class="row">
14+
{%- if article.img %}
15+
<div class="col-sm-6 clearfix">
16+
<img src="{{ site.url }}{{ site.baseurl }}/images/news/{{ article.img }}" class="img-responsive" width="22%" style="float: left; margin-right: 10px;" />
17+
<p>{{ article.date }}<br/>
18+
{{ article.headline }}</p>
19+
</div>
20+
{%- else -%}
21+
<div class="col-sm-6">
22+
<p>{{ article.date }}<br/>
23+
{{ article.headline }}</p>
24+
</div>
25+
{%- endif %}
26+
</div>
27+
{% endfor %}
28+
</div>
29+
<!--
1130
<div class="well">
1231
{% for article in site.data.news %}
1332
{%- if article.img %}
@@ -23,3 +42,4 @@ permalink: /allnews.html
2342
{%- endif %}
2443
{% endfor %}
2544
</div>
45+
-->

0 commit comments

Comments
 (0)