mirror of
https://github.com/seigler/dash-website
synced 2025-07-27 07:16:10 +00:00
Blog section
The blog is driven by the _posts directory nested in each language.
This commit is contained in:
parent
8374114bc0
commit
01c297d5e7
18 changed files with 166 additions and 11 deletions
36
blog/index.html
Normal file
36
blog/index.html
Normal file
|
@ -0,0 +1,36 @@
|
|||
---
|
||||
layout: default
|
||||
title: pages.blog.title
|
||||
description: pages.blog.description
|
||||
---
|
||||
|
||||
{% tf blog/header.html %}
|
||||
|
||||
<div class="content post">
|
||||
<div class="single-col">
|
||||
|
||||
{% include pagination_navigation_all.html %}
|
||||
|
||||
{% for post in paginator.posts %}
|
||||
<!-- limit:4 -->
|
||||
<div class="feature">
|
||||
{% if post.image %}
|
||||
<img src="{{ post.image }}" class="preview">
|
||||
{% endif %}
|
||||
|
||||
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
|
||||
|
||||
<p><em>{{ post.date | date: "%b %d, %Y" }}</em><br />{{ post.excerpt | strip_html | truncatewords: 50 }}</p>
|
||||
|
||||
</div>
|
||||
<span class="clear"></span>
|
||||
|
||||
<div class="divider">
|
||||
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
{% include pagination_navigation_all.html %}
|
||||
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue