summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorlsof <lsof@mailbox.org>2025-09-02 12:03:22 +0200
committerlsof <lsof@mailbox.org>2025-09-02 12:03:22 +0200
commitba7fd8ed5809bb73971a9caf6c382c17782e0f60 (patch)
tree2208034b63b8f23c3122ebcaf659f991e48b25b4 /templates
parent04cdbbb8fd99fa3cb113106f6a83560cc0463a39 (diff)
makeover
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html8
-rw-r--r--templates/blog-page.html8
-rw-r--r--templates/blog.html5
-rw-r--r--templates/index.html37
-rw-r--r--templates/root-page.html11
-rw-r--r--templates/taxonomy_list.html3
-rw-r--r--templates/taxonomy_single.html3
7 files changed, 27 insertions, 48 deletions
diff --git a/templates/base.html b/templates/base.html
index 149831a..5276d29 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -9,11 +9,19 @@
</head>
<body>
+ <h1 class="title">lemon's site</h1>
+ <nav class="navbar">
+ <a href="/">home</a>
+ <a href="/w">blog</a>
+ </nav>
+ <hr>
<section class="section">
<div class="container">
{% block content %} {% endblock %}
</div>
</section>
+ <hr>
+ <br><br>
</body>
</html>
diff --git a/templates/blog-page.html b/templates/blog-page.html
index 51f8aba..8ca5835 100644
--- a/templates/blog-page.html
+++ b/templates/blog-page.html
@@ -4,19 +4,15 @@
{% block content %}
-<nav class="navbar">
- <a href="/">Home</a>
-</nav>
<h1 class="title">
{{ page.title }}
</h1>
-<p class="subtitle">{{ page.date | date(format="%-d %b %Y") }}</p>
<p class="subtitle">
+ {{ page.date | date(format="%-d %b %Y") }}
+ —
{% for tag in page.taxonomies.tags %}
<a href="/tags/{{ tag | safe}}">#{{ tag }}</a>
{% endfor %}
</p>
-
-<hr>
{{ page.content | safe }}
{% endblock content %}
diff --git a/templates/blog.html b/templates/blog.html
index f8f422f..2c0b4cf 100644
--- a/templates/blog.html
+++ b/templates/blog.html
@@ -3,16 +3,13 @@
{% block title %}lemon's site{% endblock title %}
{% block content %}
-<nav class="navbar">
- <a href="/">Home</a>
-</nav>
<h1 class="title">
{{ section.title }}
</h1>
Browse by <a href="/tags">tags</a>
<ul>
{% for page in section.pages %}
- <li><a href="{{ page.permalink | safe }}">{{ page.title }}</a> ({{ page.date }})</li>
+ <li><span class="date">{{ page.date | date(format="%Y-%m-%d") }}</span> <a href="{{ page.permalink | safe }}">{{ page.title }}</a></li>
{% endfor %}
</ul>
{% endblock content %}
diff --git a/templates/index.html b/templates/index.html
index afa923e..6fd3d1c 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -3,40 +3,13 @@
{% block title %}lemon's site{% endblock title %}
{% block content %}
-<h1 class="title">lemon's site</h1>
-<img width="256" src="/asset/moth.png">
+<h1 class="title">
+ {{ section.title }}
+</h1>
-<p>
-I like tool-assisted speedruns, cats, compilers, bugs, ...
-</p>
-
-<h3>links</h3>
-
-<ul>
-<li><a href="/w">writings/blog</a> (last updated on {{ get_section(path="w/_index.md") | get(key="pages") | map(attribute="date") | first }})
-<li><a href="https://git.sr.ht/~lsof/">git</a>
-<li><img src="/asset/link.png" width="18" height="23">
-<li><a href="https://www.youtube.com/channel/UCoZ8JbiXlq_Zh0DGvaGRTDQ">youtube</a>
-<li><a href="https://github.com/lemon32767">github (abandoned)</a>
-</ul>
-
-<h3>projects</h3>
-<ul>
-<li><a href="https://github.com/lemon32767/ccleste/">ccleste</a> - a C source port of the PICO-8 game Celeste
-<li><a href="/mips.html">web MIPS assembler/disassembler</a> (incomplete)
-<li><a href="https://git.sr.ht/~lsof/cff">cff</a> - experimental systems programming language
-<!--li><a href="https://git.sr.ht/~lsof/pez">pez</a> - toy embeddable programming language<--!>
-</ul>
-
-<h3>contact</h3>
-
-<ul>
-<li><code>lemon·#4203</code> on discord
-<li>you can email me to say hi at <code>lsof@mailbox.org</code>
-</ul>
-
-<hr>
+{{ section.content | safe }}
+<br>
<img src="/asset/pommy.png">
<img src="/asset/lynx.png">
<img src="/asset/linux.png">
diff --git a/templates/root-page.html b/templates/root-page.html
new file mode 100644
index 0000000..bf837bd
--- /dev/null
+++ b/templates/root-page.html
@@ -0,0 +1,11 @@
+{% extends "base.html" %}
+
+{% block title %}{{ page.title }}{% endblock title %}
+
+{% block content %}
+
+<h1 class="title">
+ {{ page.title }}
+</h1>
+{{ page.content | safe }}
+{% endblock content %}
diff --git a/templates/taxonomy_list.html b/templates/taxonomy_list.html
index 084e3b5..652f4d7 100644
--- a/templates/taxonomy_list.html
+++ b/templates/taxonomy_list.html
@@ -3,9 +3,6 @@
{% block title %}Browse by {{taxonomy.name}}{% endblock title %}
{% block content %}
-<nav class="navbar">
- <a href="/">Home</a> <!--a href="../">Go Back</a--!>
-</nav>
<h1 class="title">
{{ taxonomy.name }}
</h1>
diff --git a/templates/taxonomy_single.html b/templates/taxonomy_single.html
index 9f93975..497b4cb 100644
--- a/templates/taxonomy_single.html
+++ b/templates/taxonomy_single.html
@@ -3,9 +3,6 @@
{% block title %}#{{ term.name }}{% endblock title %}
{% block content %}
-<nav class="navbar">
- <a href="/">Home</a> <!--a href="../">Go Back</a--!>
-</nav>
<h1 class="title">
#{{ term.name }}
</h1>