aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/about.html21
-rw-r--r--templates/base.html29
-rw-r--r--templates/contact.html11
-rw-r--r--templates/home.html25
-rw-r--r--templates/poem-panel.html2
-rw-r--r--templates/poetry.html2
6 files changed, 52 insertions, 38 deletions
diff --git a/templates/about.html b/templates/about.html
new file mode 100644
index 0000000..e7226a8
--- /dev/null
+++ b/templates/about.html
@@ -0,0 +1,21 @@
+{% extends "base.html" %}
+
+{% block nav_about %}active{% endblock %}
+
+{% block header %}
+
+<header>
+ <div class="panel" id="title">
+ <h1>{{ locale.text("name").unwrap() }}</h1>
+ </div>
+</header>
+
+{% endblock header %}
+
+{% block content %}
+
+<div class="content panel">
+ {{ locale.text("about-content").unwrap()|safe }}
+</div>
+
+{% endblock content %} \ No newline at end of file
diff --git a/templates/base.html b/templates/base.html
index 5d55f5d..6761f83 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -46,28 +46,17 @@
<nav class="panel">
<ul id="nav">
- <li><a class="{% block nav_home %}{% endblock %}" href="/">home</a></li>
+ <li><a class="{% block nav_home %}{% endblock %}" href="/">Home</a></li>
+ <li><a class="{% block nav_about %}{% endblock %}" style="font-family: Sligoil;" href="/about">About</a></li>
<li><a class="{% block nav_contact %}{% endblock %}" style="font-family: 'Compagnon Roman';"
- href="/contact">kontakt</a></li>
- <li><a class="{% block nav_poetry %}{% endblock %}" href="/poetry" style="font-family: Louise">poesia</a></li>
- <li><a class="{% block nav_blog %}{% endblock %}" style="font-family: Sligoil" href="/blog">weblog</a></li>
- <li><a class="{% block nav_projects %}{% endblock %}" style="font-family: 'DeGerm LoCase';"
- href="/projects">projetos</a></li>
- <!--<li><a class="{% block nav_sound %}{% endblock %}" style="font-family: 'kirieji'" href="/sound">音</a></li>-->
+ href="/contact">Kontakt</a></li>
+ <li><a class="{% block nav_poetry %}{% endblock %}" href="/poetry" style="font-family: Louise">Poesia</a></li>
+ <li><a class="{% block nav_blog %}{% endblock %}" style="font-family: Redaction_50" href="/blog">Weblog</a></li>
<li><a class="{% block nav_listens %}{% endblock %}" style="font-family: 'Almendra Display'; font-weight: 900;"
- href="https://listenbrainz.org/user/celblossom">Γ©coute</a></li>
- <li><a href="https://bimbo.video/a/cel" style="font-family: 'Mon Hugo In'">video</a></li>
+ href="https://listenbrainz.org/user/celblossom">Γ‰coute</a></li>
+ <li><a href="https://bimbo.video/a/cel" style="font-family: 'Mon Hugo In'">Video</a></li>
<li><a href="https://weirdstar.stream" style="font-family: id_kana018">πŸ”΄γƒ©γ‚€γƒ–</a></li>
- <!--<li><a class="{% block nav_pix %}{% endblock %}" style="font-family: Minecraftia" href="/pix">pix</a></li>-->
- <!--<li><a class="{% block nav_shodo %}{% endblock %}" href="/shodo">書道</a></li>-->
- <!--<li><a class="{% block nav_cute %}{% endblock %}" style="font-family: 'Darumadrop One'" href="/cute">cute linkz</a></li>-->
- <!--<li><a class="{% block nav_zk %}{% endblock %}" href="https://garden.blos.sm" style="font-family: Louise">zettelkasten</a></li>-->
- <!--<li><a class="{% block nav_read %}{% endblock %}" style="font-family: ukikusa" href="/read">γ‚ˆγ‚€</a></li>-->
- <li><a href="https://bunny.garden/cel">πŸ¦‹πŸŒ·πŸ°πŸŒ»πŸπŸ•·πŸͺ»πŸ‡πŸŒ±</a></li>
- <!--<li><a class="{% block nav_plants %}{% endblock %}" style="font-family: 'Almendra Display'; font-weight: 900;" href="/plants">plantas</a></li>-->
- <li><a style="font-family: Abordage;" href="https://pussy.accountants">pussy</a></li>
- <li class="suscakke"><a href="https://ass-sma.cc"><img src="/static/suscakke.png"></a></li>
- <!--<li><a class="{% block nav_guestbook %}{% endblock %}" style="font-family: Compagnon; font-weight: bold;" href="/guestbook">visitas</a></li>-->
+ <li><a href="https://bunny.garden/~cel">πŸ¦‹πŸŒ·πŸ°πŸŒ»πŸπŸ•·πŸͺ»πŸ‡πŸŒ±</a></li>
</ul>
</nav>
@@ -86,7 +75,7 @@
<footer class="panel">
<a class="badge" href="https://blos.sm"><img src="https://blos.sm/static/badges/cel.png"></a>
- <a class="badge" href="https://skinnyver.se"><img src="/static/badges/badussyflops.png"></a>
+ <img class="badge" src="/static/badges/badussyflops.png">
<img class="badge" src="/static/badges/mothracompat.gif">
<img class="badge" src="/static/badges/flexbox.png">
<img class="badge" src="/static/badges/servinghttps_{{ self::thread_rng().gen_range(1..=7) }}.png">
diff --git a/templates/contact.html b/templates/contact.html
index d6534fd..ecfe9c2 100644
--- a/templates/contact.html
+++ b/templates/contact.html
@@ -18,19 +18,8 @@
<h1 class="p-name">{{ locale.text("name").unwrap() }}</h1>
<ul>
- <li>
- <h3>{{ locale.text("pronouns").unwrap()|safe }}</h3>
- </li>
<li>{{ locale.text("email").unwrap() }}: <a class="u-email" href="mailto:cel@blos.sm">cel@blos.sm</a></li>
<li>{{ locale.text("jabber").unwrap() }}: <a class="u-impp" href="xmpp:cel@blos.sm?message">cel@blos.sm</a></li>
- <li>{{ locale.text("scrobbles").unwrap() }}: <a class="u-url"
- href="https://listenbrainz.org/user/celblossom">listenbrainz/celblossom</a></li>
- <li>{{ locale.text("bandcamp-fan").unwrap() }}: <a class="u-url"
- href="https://bandcamp.com/celblossom">bandcamp/celblossom</a></li>
- <br>
- <li><span class="p-note">{{ locale.text("languages").unwrap() }}</span></li>
- </li>
- <li><span class="p-note">{{ locale.text("programming").unwrap() }}</span></li>
</ul>
</div>
diff --git a/templates/home.html b/templates/home.html
index 3e34cae..ba6615f 100644
--- a/templates/home.html
+++ b/templates/home.html
@@ -28,8 +28,18 @@
{% block content %}
-<div class="panel content">
- {{ locale.text("welcome").unwrap()|safe }}
+{% for post in feed %}
+{% match post %}
+{% when HomeFeedItem::Blogpost(blogpost) %}
+{% include "blogpost-panel.html" %}
+{% when HomeFeedItem::Poem(poem) %}
+{% include "poem-panel.html" %}
+{% endmatch %}
+{% endfor %}
+
+<div class="home-feed-footer">
+ <div class="panel"><a href="/blog">More blogposts...</a></div>
+ <div class="panel"><a href="/poetry">More poetry...</a></div>
</div>
{% endblock content %}
@@ -38,11 +48,16 @@
<aside>
- <div class="panel" style="background-color: #b52f6a; z-index: -1; font-family: 'Terminal Grotesque'; font-size: 2em">
- {{ locale.text("latest-update").unwrap() }}</div>
{% include "latestposts.html" %}
{% include "random-poem.html" %}
+ {% match visits %}
+ {% when Some(visit_count) %}
+ <div class="panel"
+ style="color: #e9cdcf; background-color: #b52f6a; z-index: -1; font-size: 2em; width: fit-content;">
+ {{ visit_count }}{{ locale.text("visits").unwrap() }}</div>
+ {% when None %}
+ {% endmatch %}
</aside>
-{% endblock aside %}
+{% endblock aside %} \ No newline at end of file
diff --git a/templates/poem-panel.html b/templates/poem-panel.html
index e1fb016..17eb8a0 100644
--- a/templates/poem-panel.html
+++ b/templates/poem-panel.html
@@ -1,10 +1,10 @@
<div
style="top: {{ self::thread_rng().gen_range(-jiggle..=jiggle) }}vw; left: {{ self::thread_rng().gen_range(-4..=4) }}vw"
class="panel content poem">
- {% if let Some(title) = poem.title %}<h1 class="title">{{ title }}</h1>{% endif %}
<h2 class="created-at">{{ poem.created_at.date_naive() }} <a href="/poetry/{{ poem.file_name }}">{{
locale.text("permalink").unwrap() }}</a>
</h2>
+ {% if let Some(title) = poem.title %}<h1 class="title">{{ title }}</h1>{% endif %}
<div class="poem-content">
{{ poem.content|safe }}
</div>
diff --git a/templates/poetry.html b/templates/poetry.html
index 8c51cff..f12a5d9 100644
--- a/templates/poetry.html
+++ b/templates/poetry.html
@@ -10,4 +10,4 @@
{% endfor %}
</div>
-{% endblock content %} \ No newline at end of file
+{% endblock content %}