aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/404.html9
-rw-r--r--templates/base.html10
2 files changed, 14 insertions, 5 deletions
diff --git a/templates/404.html b/templates/404.html
new file mode 100644
index 0000000..a56acbf
--- /dev/null
+++ b/templates/404.html
@@ -0,0 +1,9 @@
+{% extends "base.html" %}
+
+{% block content %}
+<div>
+ <h1>404 unlucky 🥀</h1>
+ <p>get better smh</p>
+ <p><a href="/">try again</a></p>
+</div>
+{% endblock content %}
diff --git a/templates/base.html b/templates/base.html
index 8487e14..c8706b5 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -15,11 +15,11 @@
<a href="/"><span class="pink">arslaan</span><span class="white">@</span><span class="yellow">thinkpad-e16-void</span><span class="white">:</span><span class="green bold">~{% if section and section.extra.header_title %}/{{ section.extra.header_title }}{% elif page and page.extra.header_title %}/{{ page.extra.header_title }}{% endif %}</span>
</div>
<nav>
- <a href="/" class="{% if current_path == '/' %}active{% else %}purple{% endif %}">home</a>
- <a href="/projects" class="{% if current_path is starting_with(pat='/projects') %}active{% else %}purple{% endif %}">projects</a>
- <a href="/blog" class="{% if current_path is starting_with(pat='/blog') %}active{% else %}purple{% endif %}">blog</a>
- <a href="/licenses" class="{% if current_path is starting_with(pat='/licenses') %}active{% else %}purple{% endif %}">licenses</a>
- <a href="/pgp" class="{% if current_path is starting_with(pat='/pgp') %}active{% else %}purple{% endif %}">pgp</a>
+ <a href="/" class="{% if current_path and current_path == '/' %}active{% else %}purple{% endif %}">home</a>
+ <a href="/projects" class="{% if current_path and current_path is starting_with(pat='/projects') %}active{% else %}purple{% endif %}">projects</a>
+ <a href="/blog" class="{% if current_path and current_path is starting_with(pat='/blog') %}active{% else %}purple{% endif %}">blog</a>
+ <a href="/licenses" class="{% if current_path and current_path is starting_with(pat='/licenses') %}active{% else %}purple{% endif %}">licenses</a>
+ <a href="/pgp" class="{% if current_path and current_path is starting_with(pat='/pgp') %}active{% else %}purple{% endif %}">pgp</a>
</nav>
</div>
</header>