summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/404.html7
-rw-r--r--templates/base.html16
-rw-r--r--templates/index.html2
3 files changed, 15 insertions, 10 deletions
diff --git a/templates/404.html b/templates/404.html
index 39f9d4d..e0d1ed7 100644
--- a/templates/404.html
+++ b/templates/404.html
@@ -6,5 +6,10 @@
{% block content %}
<h1>404 :(</h1>
-<img src="{{ get_url(path='/imgs/tapwater.png') }}" alt="Can I get you some tapwater?" loading="lazy" decoding="async">
+<img
+ src="/imgs/tapwater.png"
+ alt="Can I get you some tapwater?"
+ loading="lazy"
+ decoding="async"
+>
{% endblock content %}
diff --git a/templates/base.html b/templates/base.html
index 9a2c565..9a5f8de 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -1,7 +1,7 @@
<!doctype html>
<html lang="en">
+ {% block head %}
<head>
- {% block head %}
<meta charset="UTF-8" />
<title>{% block title %}{% endblock title %}</title>
<meta name="viewport" content="width=device-width,initial-scale=1" />
@@ -9,14 +9,14 @@
name="description"
content="{% block description %}{% endblock description %}"
/>
- <link rel="stylesheet" href="{{ get_url(path='main.css') }}" />
- <link rel="sitemap" href="{{ get_url(path="sitemap.xml") }}" />
- {% endblock head %}
+ <link rel="stylesheet" href="/main.css" />
+ <link rel="sitemap" href="/sitemap.xml" />
</head>
+ {% endblock head %}
<body>
<h1><b>getchoo's website 🦀</b></h1>
+ {% block nav %}
<nav>
- {% block nav %}
<div id="nav_links">
{% for link in config.extra.nav_links %}
<a href="{{ link.url }}">{{ link.name }}</a>
@@ -24,13 +24,13 @@
</div>
<hr />
- {% endblock nav %}
</nav>
+ {% endblock nav %}
{% block content %}{% endblock content %}
+ {% block footer %}
<footer>
- {% block footer %}
<a href="{{ config.extra.repository_url }}">source code</a>
- {% endblock footer %}
</footer>
+ {% endblock footer %}
</body>
</html>
diff --git a/templates/index.html b/templates/index.html
index 3617682..db540b6 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -9,7 +9,7 @@
<div id="gifs">
{% for gif in config.extra.gifs %}
- {% set img = '<img src="' ~ get_url(path='/imgs/gifs/' ~ gif.name) ~ '" alt="' ~ gif.alt ~ '" width=88 height=31 loading="lazy" decoding="async">' %}
+ {% set img = '<img src = "/imgs/gifs/' ~ gif.name ~'" alt="' ~ gif.alt ~ '" width=88 height=31 loading="lazy" decoding="async">' %}
{% if gif.href %}
<a href="{{ gif.href }}">{{ img | safe }}</a>
{% else %}