aboutsummaryrefslogtreecommitdiffstats
path: root/templates/latestposts.html
blob: b2ed2c55ad12c9e0f7bb09ff63dcd57ab6b32e0e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<div class="panel" id="posts">
  <h2>{{ locale.text("latest-blogposts").unwrap() }} <a class="small-badge" href="/feed"><img class="small-badge"
        src="/static/atombadge.png" alt="atom newsfeed"></a></h2>
  <table id="post-list">
    {% for blogpost in blogposts %}
    <tr>
      <td><a class="post-entry" href="/blog/{{ blogpost.file_name() }}">{{
          blogpost.subject().unwrap_or(locale.text("untitled").unwrap().as_str())
          }}<span class="post-date">{{
            blogpost.published_at()|mytruncate(10) }}</span></a></td>
    </tr>
    {% endfor %}
  </table>
</div>