diff options
| author | 2024-01-30 16:16:05 +0000 | |
|---|---|---|
| committer | 2024-01-30 16:16:05 +0000 | |
| commit | f00159f53b3774601500ec65345791311ff6efa1 (patch) | |
| tree | cc65a487e71a056126e1935108a494c7851863f9 /templates/latestposts.html | |
| parent | 8c03d9a53f4bc2f70fb5c1e0487bc74fe0137fcb (diff) | |
| download | blossom-f00159f53b3774601500ec65345791311ff6efa1.tar.gz blossom-f00159f53b3774601500ec65345791311ff6efa1.tar.bz2 blossom-f00159f53b3774601500ec65345791311ff6efa1.zip | |
migrate to poem and askama
Diffstat (limited to '')
| -rw-r--r-- | templates/latestposts.html | 13 | ||||
| -rw-r--r-- | templates/latestposts.html.tera | 10 | 
2 files changed, 13 insertions, 10 deletions
| diff --git a/templates/latestposts.html b/templates/latestposts.html new file mode 100644 index 0000000..e2dfa9f --- /dev/null +++ b/templates/latestposts.html @@ -0,0 +1,13 @@ +<div class="panel" id="posts"> +  <h2>latest posts <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("untitled") +          }}<span class="post-date">{{ +            blogpost.published_at()|mytruncate(10) }}</span></a></td> +    </tr> +    {% endfor %} +  </table> +</div>
\ No newline at end of file diff --git a/templates/latestposts.html.tera b/templates/latestposts.html.tera deleted file mode 100644 index 11528a4..0000000 --- a/templates/latestposts.html.tera +++ /dev/null @@ -1,10 +0,0 @@ -<div class="panel" id="posts"> -  <h2>latest posts <a class="small-badge" href="/feed"><img class="small-badge" src="/atombadge.png" alt="atom newsfeed"></a></h2> -  <table id="post-list"> -    {% for blogpost in blogposts %} -    <tr> -      <td><a class="post-entry" href="/blog/{{ blogpost.data.name }}">{{ blogpost.subject }}<span class="post-date">{{ blogpost.created_at | truncate(length=10, end="") }}</span></a></td> -    </tr> -    {% endfor %} -  </table> -</div>
\ No newline at end of file | 
