diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/404.html | 10 | ||||
| -rw-r--r-- | templates/base.html | 36 | ||||
| -rw-r--r-- | templates/index.html | 20 | ||||
| -rw-r--r-- | templates/page.html | 7 | ||||
| -rw-r--r-- | templates/robots.txt | 3 |
5 files changed, 76 insertions, 0 deletions
diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..39f9d4d --- /dev/null +++ b/templates/404.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} + +{% block title %}404!{% endblock title %} +{% block description %}Can I get you some tapwater?{% endblock description %} + +{% block content %} +<h1>404 :(</h1> + +<img src="{{ get_url(path='/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 new file mode 100644 index 0000000..15e809d --- /dev/null +++ b/templates/base.html @@ -0,0 +1,36 @@ +<!doctype html> +<html lang="en"> + <head> + {% block head %} + <meta charset="UTF-8" /> + <title>{% block title %}{% endblock title %}</title> + <meta name="viewport" content="width=device-width,initial-scale=1" /> + <meta + 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 %} + </head> + <body> + <h1><b>getchoo's website 🚀</b></h1> + <nav> + {% block nav %} + <div id="nav_links"> + {% for link in config.extra.nav_links %} + <a href="{{ link.url }}">{{ link.name }}</a> + {% endfor %} + </div> + + <hr /> + {% endblock nav %} + </nav> + {% block content %}{% endblock content %} + <footer> + {% block footer %} + <a href="{{ config.extra.repository_url }}">source code</a> + {% endblock footer %} + </footer> + </body> +</html> diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..3617682 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,20 @@ +{% extends "base.html" %} + +{% block title %}{{ section.title }}{% endblock title %} +{% block description %}{{ section.description }}{% endblock description %} + +{% block content %} + +{{ section.content | safe }} + +<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">' %} + {% if gif.href %} + <a href="{{ gif.href }}">{{ img | safe }}</a> + {% else %} + {{ img | safe }} + {% endif %} + {% endfor %} +</div> +{% endblock content %} diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..bbe1a2b --- /dev/null +++ b/templates/page.html @@ -0,0 +1,7 @@ +{% extends "base.html" %} + +{% block content %} +<div class="blogpost"> + {{ page.content | safe }} +</div> +{% endblock content %} diff --git a/templates/robots.txt b/templates/robots.txt new file mode 100644 index 0000000..b345a1a --- /dev/null +++ b/templates/robots.txt @@ -0,0 +1,3 @@ +User-agent: * +Allow: / +Sitemap: {{ get_url(path="sitemap.xml") }} |
