mirror of
https://github.com/seigler/dash-website
synced 2025-07-27 07:16:10 +00:00
Output news posts
This commit is contained in:
parent
78272f8757
commit
21b238f830
1 changed files with 17 additions and 4 deletions
21
index.html
21
index.html
|
@ -146,10 +146,23 @@ description: pages.home.description
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-3">News</div>
|
{% for post in site.posts limit:4 %}
|
||||||
<div class="col-sm-3">News</div>
|
<div class="col-sm-3">
|
||||||
<div class="col-sm-3">News</div>
|
<div class="news-post">
|
||||||
<div class="col-sm-3">News</div>
|
<div class="news-image">
|
||||||
|
{% if post.image %}
|
||||||
|
<img src="{{ post.image }}">
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
<div class="news-title">
|
||||||
|
<h3>{{ post.title }}</h3>
|
||||||
|
</div>
|
||||||
|
<span class="date">{{ post.date | date: "%b %d, %Y" }}</span>
|
||||||
|
<p>{{ post.excerpt | strip_html | truncatewords: 20 }}</p>
|
||||||
|
<a href="{{ post.url }}">Read More...</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row" style="text-align:center;">
|
<div class="row" style="text-align:center;">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue