first commit

This commit is contained in:
Bryan Van Deusen 2025-11-10 19:03:13 -05:00
commit 3f2cec5cb9
27 changed files with 1159 additions and 0 deletions

33
_layouts/default.html Normal file
View file

@ -0,0 +1,33 @@
<!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>

17
_layouts/post.html Normal file
View file

@ -0,0 +1,17 @@
---
layout: default
---
<h1>{{ page.title }}</h1>
<div class="post-item">
<div class="page-meta">
{{ page.date | date_to_string }} - {{ page.author }}
{% if page.tags and page.tags.size > 0 %}
<ul class="page-tags">
{% for tag in page.tags %}
<li>{{ tag }}</li>
{% endfor %}
</ul>
{% endif %}
</div>
{{ content }}
</div>