codigocomentado/templates/index.html.tera

40 lines
1.2 KiB
Plaintext
Raw Normal View History

2019-11-13 07:17:15 +00:00
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8"/>
<title>CódigoComentado - blog personal de kirbylife</title>
<link href="/static/css/style.css" rel="stylesheet"/>
</head>
<body>
<header>
<a class="logo">{{ title }}</a>
</header>
<nav>
<a href="">⍉ Item 1</a>
<a href="">⍉ Item 2</a>
<a href="">⍉ Item 3</a>
</ul>
</nav>
<section>
2019-11-14 02:10:42 +00:00
{% for post in posts %}
2019-11-13 07:17:15 +00:00
<article>
<span><strong>{ image: </strong></span>
<figure>
<img src="https://files.realpython.com/media/MProc.7cf3be371bbc.png">
</figure>
2019-11-14 02:10:42 +00:00
<p class="article-title"><strong>title: </strong>{{ post.title }}</p>
<p class="article-body"><strong>Article: </strong>{{ post.content | split(pat=" ") | slice(end=100) | join(sep=" ") }}</p>
2019-11-13 07:17:15 +00:00
<div class="article-info">
2019-11-14 02:10:42 +00:00
<span><strong>Author: </strong>kirbylife <strong>Date: </strong>{{ post.created_at | date(format="%Y-%m-%d") }}<strong> }</strong></span>
2019-11-13 07:17:15 +00:00
</div>
</article>
2019-11-14 02:10:42 +00:00
{% endfor %}
2019-11-13 07:17:15 +00:00
</section>
2019-11-14 02:10:42 +00:00
<footer>
<span>
Hecho con Rust, Rocket y Emacs por <a href="https://kirbylife.gitlab.io">@kirbylife</a>
</span>
</footer>
2019-11-13 07:17:15 +00:00
</body>
</html>