forked from github.com/blag
@@ -3,18 +3,21 @@
|
||||
{% block title %}{{ site.title }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% for entry in archive %}
|
||||
|
||||
{% if entry.title %}
|
||||
<h1><a href="{{entry.dst}}">{{entry.title}}</a></h1>
|
||||
|
||||
{% if entry.description %}
|
||||
<p>— {{ entry.description }}</p>
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
<p>Written on {{ entry.date.date() }}.</p>
|
||||
<article>
|
||||
<header>
|
||||
<time datetime="{{ entry.date }}">{{ entry.date.date() }}</time>
|
||||
<div>
|
||||
<h2><a href="{{ entry.dst }}">{{ entry.title }}</a></h2>
|
||||
{% if entry.description %}
|
||||
<p>— {{ entry.description }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</header>
|
||||
</article>
|
||||
|
||||
{% endfor %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
</p>
|
||||
</aside>
|
||||
|
||||
|
||||
{{ content }}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
@@ -4,12 +4,15 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="color-scheme" content="light dark">
|
||||
<meta name="author" content="{{ site.author }}">
|
||||
{%- if description %}
|
||||
<meta name="description" content="{{ description }}">
|
||||
{%- else %}
|
||||
<meta name="description" content="{{ site.description }}">
|
||||
{%- endif %}
|
||||
<link rel="alternate" href="/atom.xml" type="application/atom+xml">
|
||||
<link rel="stylesheet" href="/style.css" type="text/css">
|
||||
<title>{% block title %}{% endblock %} | {{ site.description }}</title>
|
||||
</head>
|
||||
|
||||
@@ -19,9 +22,10 @@
|
||||
<nav>
|
||||
<h2>{{ site.description }}</h2>
|
||||
<ul>
|
||||
<li><a href="/">Blog</a></li>
|
||||
<li><a href="/tags/">Tags</a></li>
|
||||
<li><a href="/atom.xml">Atom Feed</a></li>
|
||||
<li><h2><a href="/">Blog</a></h2></li>
|
||||
<li><h2><a href="/tags/">Tags</a></h2></li>
|
||||
<li><h2><a href="/about.html">About Me</a></h2></li>
|
||||
<li><h2><a href="/atom.xml">Feed</a></h2></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
@@ -31,7 +35,15 @@
|
||||
{% endblock %}
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<p>This website was built with <a href="https://github.com/venthur/blag">blag</a>.
|
||||
<br>
|
||||
Contact me via
|
||||
<a rel="me" href="TODO">[TODO] Mastodon</a>,
|
||||
<a href="TODO">[TODO] Twitter</a> or
|
||||
<a href="TODO">[TODO] Github</a>.
|
||||
</p>
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
|
||||
@@ -3,5 +3,7 @@
|
||||
{% block title %}{{ title }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{{ content }}
|
||||
|
||||
{{ content }}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,20 +1,25 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Tag {{ tag }}{% endblock %}
|
||||
{% block title %}Tag: {{ tag }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h2>Articles tagged "{{ tag }}"</h2>
|
||||
|
||||
{% for entry in archive %}
|
||||
|
||||
{% if entry.title %}
|
||||
<h1><a href="/{{entry.dst}}">{{entry.title}}</a></h1>
|
||||
|
||||
{% if entry.description %}
|
||||
<p>— {{ entry.description }}</p>
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
<p>Written on {{ entry.date.date() }}.</p>
|
||||
<article>
|
||||
<header>
|
||||
<time datetime="{{ entry.date }}">{{ entry.date.date() }}</time>
|
||||
<div>
|
||||
<h2><a href="../{{ entry.dst }}">{{ entry.title }}</a></h2>
|
||||
{% if entry.description %}
|
||||
<p>— {{ entry.description }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</header>
|
||||
</article>
|
||||
|
||||
{% endfor %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user