Implement article listing.
This commit is contained in:
parent
1c0b69d693
commit
eb1c3084c8
2 changed files with 83 additions and 0 deletions
54
static/article_list.tmpl.html
Normal file
54
static/article_list.tmpl.html
Normal file
|
@ -0,0 +1,54 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Código para llevar</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="../css/style.css" />
|
||||
<link rel="stylesheet" href="../css/light-syntax.css" />
|
||||
<link rel="stylesheet" href="../css/dark-syntax.css" />
|
||||
</head>
|
||||
<body class="blog">
|
||||
<div class="site-header">
|
||||
<h1 class="site-name"><a href="../">Codigo para llevar [blog]</a></h1>
|
||||
<nav class="site-links">
|
||||
<span class="fancy-link">
|
||||
<a href="../../">Home</a>
|
||||
</span>
|
||||
<span class="fancy-link">
|
||||
<a href="../../notes/">Notes</a>
|
||||
</span>
|
||||
<span class="fancy-link">
|
||||
<a href="https://github.com/kenkeiras">GitHub</a>
|
||||
</span>
|
||||
<span class="fancy-link">
|
||||
<a href="https://gitlab.com/kenkeiras">GitLab</a>
|
||||
</span>
|
||||
<span class="fancy-link">
|
||||
<a href="https://programaker.com/users/kenkeiras">PrograMaker</a>
|
||||
</span>
|
||||
</nav>
|
||||
</div>
|
||||
<div class="post-list content">
|
||||
<ul>
|
||||
{% for post in posts %}
|
||||
<li class="post">
|
||||
<div class="post-metadata">
|
||||
<time class="post-publication-date" datetime="{{ post.post_publication_date.date() }}">
|
||||
{{ post.post_publication_date.date() }}
|
||||
</time>
|
||||
</div>
|
||||
<h4 class="post-title"><a href="../{{ post.link }}">{{ post.title }}</a></h4>
|
||||
<div class="post-metadata">
|
||||
<ul class="post-tags">
|
||||
{% for post_tag in post.post_tags %}
|
||||
<li class="post-tag"><a href="../tags/{{ post_tag }}/"</a>{{ post_tag }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue