codigocomentado/templates/index.html.tera

40 lines
1.2 KiB
Plaintext

<!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>
{% for post in posts %}
<article>
<span><strong>{ image: </strong></span>
<figure>
<img src="https://files.realpython.com/media/MProc.7cf3be371bbc.png">
</figure>
<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>
<div class="article-info">
<span><strong>Author: </strong>kirbylife <strong>Date: </strong>{{ post.created_at | date(format="%Y-%m-%d") }}<strong> }</strong></span>
</div>
</article>
{% endfor %}
</section>
<footer>
<span>
Hecho con Rust, Rocket y Emacs por <a href="https://kirbylife.gitlab.io">@kirbylife</a>
</span>
</footer>
</body>
</html>