fabledsword_com/_layouts/default.html
Bryan Van Deusen 3f2cec5cb9 first commit
2025-11-10 19:03:13 -05:00

33 lines
No EOL
906 B
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Fabled Sword - {{ page.title }}</title>
<link rel="stylesheet" href="/assets/css/styles.css">
</head>
<body>
{% include navigation.html %}
<div class="main-view">
<aside class="sidebar">
<h2>News</h2>
<ul class="news-list">
{% assign news_posts = site.posts
| where_exp: "p", "p.tags contains 'news'"
| sort: "date" | reverse %}
{% for post in news_posts limit:10 %}
<a href="{{ post.url | relative_url }}">
<li class="sidebar-item">
{{ post.title }}
<small>{{ post.date | date: "%b %e, %Y" }}</small>
</li>
</a>
{% endfor %}
</ul>
</aside>
<main class="main">
{{ content }}
</main>
</div>
</body>
</html>