<!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>