49 lines
1.4 KiB
HTML
49 lines
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>Voyage</title>
|
|
<link rel="stylesheet" type="text/css" href="/static/voyage.css">
|
|
<script type="text/javascript" src="/static/voyage.js"></script>
|
|
<meta name="viewport" content="width=device-width, initial-scale=0.8">
|
|
<meta name="description" content="A quest archive viewer.">
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h1>Voyage</h1>
|
|
</header>
|
|
<main>
|
|
{% for post_id, post in posts.items() %}
|
|
<div id="{{ post.id }}" class="post_container {{ ' '.join(post.tags) }}">
|
|
<div class="header">
|
|
{% if post.subject %}
|
|
<span class="subject">{{ post.subject }}</span>
|
|
{% endif %}
|
|
<span class="name">{{ post.name }}</span>
|
|
{% if post.trip_code %}
|
|
<span class="tripcode">{{ post.trip_code }}</span>
|
|
{% endif %}
|
|
<span class="time">{{ post.time.strftime('%Y-%m-%d %H:%M') }}</span>
|
|
<span class="id">No.{{ post.id }}</span>
|
|
{% if backlinks.get(post.id) %}
|
|
<span class="backlinks">
|
|
{% for link in backlinks[post.id] %}
|
|
<a class="backlink" href="#{{ link }}">>>{{ link }}</a>
|
|
{% endfor %}
|
|
</span>
|
|
{% endif %}
|
|
</div>
|
|
<div class="body">
|
|
{% for line in post.body.splitlines() %}
|
|
{% if line.startswith('>') %}
|
|
<span class="quote">{{ line|quotelink(post) }}</span><br>
|
|
{% else %}
|
|
{{ line|quotelink(post) }}<br>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</main>
|
|
</body>
|
|
</html>
|