Blog/assets/templates/articles.html

30 lines
992 B
HTML

{% import "article-frontmatter.html" as front_matter_macro %}
<!DOCTYPE html>
<html lang="en">
<head>
<title>Articles</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Listing of Articles" />
<link href="/style/style.css" rel="stylesheet">
<link href="/style/article.css" rel="stylesheet" />
</head>
{% include "nav.html" %}
<body>
<div class="page-info">
<div class="page-title">Articles</div>
<div class="page-detail"><strong>THE LORE</strong></div>
</div>
<div class="articles-container">
<ul>
{% for article in articles | sort(attribute="frontmatter.published") | reverse -%}
<li><a href="/articles/{{ article.link }}">
{{ front_matter_macro::gen(frontmatter=article.frontmatter, link=article.link) }}
</a></li>
{% endfor %}
</ul>
</div>
{% include "footer.html" %}
</body>
</html>