diff options
author | Karl Hallsby <karl@hallsby.com> | 2021-10-03 00:35:46 -0500 |
---|---|---|
committer | Karl Hallsby <karl@hallsby.com> | 2021-10-03 02:16:55 -0500 |
commit | e2c06d2681e18946ab6c3e3e6075aed92a4d13be (patch) | |
tree | b30dce94387f4717394277932f691519e0281c44 /_includes/news.html | |
parent | a10ad0a99ba6e44a35253c3bcaff80c90e99348e (diff) |
Change to al-folio theme
Theme at: https://github.com/alshedivat/al-folio
Diffstat (limited to '_includes/news.html')
-rw-r--r-- | _includes/news.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/_includes/news.html b/_includes/news.html new file mode 100644 index 0000000..e1fc80b --- /dev/null +++ b/_includes/news.html @@ -0,0 +1,24 @@ +<div class="news"> + <h2>news</h2> + {% if site.news %} + <div class="table-responsive"> + <table class="table table-sm table-borderless"> + {% assign news = site.news | reverse %} + {% for item in news limit: site.news_limit %} + <tr> + <th scope="row">{{ item.date | date: "%b %-d, %Y" }}</th> + <td> + {% if item.inline %} + {{ item.content | remove: '<p>' | remove: '</p>' | emojify }} + {% else %} + <a class="news-title" href="{{ item.url | relative_url }}">{{ item.title }}</a> + {% endif %} + </td> + </tr> + {% endfor %} + </table> + </div> + {% else %} + <p>No news so far...</p> + {% endif %} +</div> |