Clean up templates and say if no posts exists

This commit is contained in:
Evie Viau-Chow-Stuart 2023-02-05 04:03:39 -08:00
parent 1fdcd72719
commit b1c8bb797b
Signed by: evie
GPG key ID: 928652CDFCEC8099
3 changed files with 23 additions and 63 deletions

View file

@ -1,42 +0,0 @@
<!doctype html>
<html lang="en-CA">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Evie / eviee / uwueviee</title>
<meta name="description" content="The site of Evie / eviee / uwueviee">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="static/css/sakura-vader.css" type="text/css">
</head>
<body>
<h1>Hewwo???</h1>
<p>hiiiiii im still working on thisss, you can follow the progress over at <a href="https://git.gaycatgirl.sex/evie/personal-site">the gaycatgirl.sex forge</a></p>
<p>basically: am cat girl, i run the gaycatgirl.sex thingymabob, uhhhh and uhhhhhh ummm uhh</p>
<hr />
<p>here r some links to my stuff:</p>
<ul>
<li><a href="https://free.gaycatgirl.sex/evie">fediverse profile</a></li>
<li><a href="https://git.gaycatgirl.sex/evie">forge</a></li>
<li><a href="https://sr.ht/~eviee/">sourcehut</a></li>
</ul>
<p>and some of my less used stuff:</p>
<ul>
<li><a href="https://github.com/uwueviee">github</a></li>
<li><a href="https://gitlab.com/uwueviee">gitlab</a></li>
<li><a href="https://twitter.com/uwueviee">twitter (lol)</a></li>
</ul>
<p>also heres some good ways to contact me:</p>
<ul>
<li><a href="mailto:evie@eviee.gay">email</a></li>
<li><a href="https://matrix.to/#/@evie:gaycatgirl.sex">matrix</a></li>
<li><a href="xmpp:evie@gaycatgirl.sex">xmpp</a></li>
<li>discord: eviee#0475</li>
</ul>
<p>more will be here eventually™</p>
</body>
</html>

View file

@ -49,6 +49,4 @@
{% endfor %}
<br />
<i>Comments are W.I.P</i>
{% endblock %}

View file

@ -7,23 +7,27 @@
{% block content %}
<h1>Posts</h1>
<ul class="post">
{% for post in posts %}
<li>
<div>
<a class="post" href="/post/{{post.slug}}">
<span><b>{{post.title}}</b> — Published: {{post.published}}</span>
{% match post.summary %}
{% when Some with (summary) %}
<p>{{summary}}</p>
{% when None %}
{% endmatch %}
</a>
</div>
{% if !loop.last %}
<div class="post-hr" />
{% endif %}
</li>
{% endfor %}
</ul>
{% if posts.len() == 0 %}
<i>Nothing to see here!</i>
{% else %}
<ul class="post">
{% for post in posts %}
<li>
<div>
<a class="post" href="/post/{{post.slug}}">
<span><b>{{post.title}}</b> — Published: {{post.published}}</span>
{% match post.summary %}
{% when Some with (summary) %}
<p>{{summary}}</p>
{% when None %}
{% endmatch %}
</a>
</div>
{% if !loop.last %}
<div class="post-hr" />
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
{% endblock %}