summaryrefslogtreecommitdiff
path: root/mod/web/blog/templates
diff options
context:
space:
mode:
authorKleidi Bujari <mail@4kb.net>2025-04-02 21:59:20 -0400
committerKleidi Bujari <mail@4kb.net>2025-04-02 21:59:20 -0400
commit09c2b6de63a6ff35348fcb2c2eb57b974f0a8a52 (patch)
treebd8f1d3a51f12cd98764ae572b00f0b32de62644 /mod/web/blog/templates
parentb1738c105de3bc0ba7cd27f68c9eb146439a0964 (diff)
downloaddepot-09c2b6de63a6ff35348fcb2c2eb57b974f0a8a52.tar.gz
depot-09c2b6de63a6ff35348fcb2c2eb57b974f0a8a52.tar.bz2
depot-09c2b6de63a6ff35348fcb2c2eb57b974f0a8a52.zip
automate project structure
Diffstat (limited to 'mod/web/blog/templates')
-rw-r--r--mod/web/blog/templates/404.html9
-rw-r--r--mod/web/blog/templates/base.html88
-rw-r--r--mod/web/blog/templates/index.html16
-rw-r--r--mod/web/blog/templates/post.html14
4 files changed, 0 insertions, 127 deletions
diff --git a/mod/web/blog/templates/404.html b/mod/web/blog/templates/404.html
deleted file mode 100644
index a4669df..0000000
--- a/mod/web/blog/templates/404.html
+++ /dev/null
@@ -1,9 +0,0 @@
-{% extends "base.html" %}
-
-{% block content %}
-<head>
- <title>Error 404!</title>
-</head>
-
-404!
-{% endblock content %}
diff --git a/mod/web/blog/templates/base.html b/mod/web/blog/templates/base.html
deleted file mode 100644
index 5a91df5..0000000
--- a/mod/web/blog/templates/base.html
+++ /dev/null
@@ -1,88 +0,0 @@
-<!doctype html>
-<html lang="en">
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>{% block title %}4kb.net{% endblock title %}</title>
- </head>
- <style>
- :root {
- --bg: #181616;
- --fg: #c5c9c5;
- --link: #76946a;
- --linkhover: #98bb6c;
- }
-
- html {
- scroll-behavior: smooth;
- color-scheme: dark;
- }
-
- body {
- font-family: serif;
- padding: 0 0.75em;
- max-width: 42em;
- margin: auto;
- background: var(--bg);
- color: var(--fg);
- }
-
- p {
- line-height: 1.3em;
- }
-
- th,
- td {
- padding: 0.2em 0.4em;
- border: thin solid;
- }
-
- table {
- border: thin solid;
- border-collapse: collapse;
- }
-
- a,
- a:link {
- color: var(--link);
- }
-
- a:hover {
- color: var(--linkhover);
- }
-
- article img {
- display: block;
- margin: 0 auto;
- max-width: 80%;
- height: auto;
- object-fit: contain;
- }
-
- pre {
- padding: 1em;
- overflow-x: scroll;
- }
- </style>
- <body>
- <header
- style="
- margin: 3em 0 3em 0;
- display: flex;
- gap: 8px;
- flex-direction: column;
- font-family: monospace;
- "
- >
- <span
- >Kleidi Bujari <<a href="mailto:mail@4kb.net">mail@4kb.net</a>></span
- >
- <nav style="display: flex; gap: 8px">
- <span><a href="/">4kb.net</a> |</span>
- <a target="_blank" href="https://github.com/kbujari">git</a>
- <a href="/atom.xml">rss</a>
- </nav>
- </header>
- <main>{% block content %} {% endblock %}</main>
- </body>
-</html>
diff --git a/mod/web/blog/templates/index.html b/mod/web/blog/templates/index.html
deleted file mode 100644
index 6e8a2af..0000000
--- a/mod/web/blog/templates/index.html
+++ /dev/null
@@ -1,16 +0,0 @@
-{% extends "base.html" %} {% block content %}
-
-<div>
- {% set section = get_section(path="posts/_index.md") %}
-
- <ul style="list-style: none; padding-left: 0">
- {% for page in section.pages %}
- <li style="display: flex; gap: 1em; margin-bottom: 0.3em">
- <span sty>{{ page.date }}</span>
- <a href="{{ page.permalink | safe }}">{{ page.title }}</a>
- </li>
- {% endfor %}
- </ul>
-
- {% endblock content %}
-</div>
diff --git a/mod/web/blog/templates/post.html b/mod/web/blog/templates/post.html
deleted file mode 100644
index b819520..0000000
--- a/mod/web/blog/templates/post.html
+++ /dev/null
@@ -1,14 +0,0 @@
-{% extends "base.html" %}
-
-{% block title%}
- {{ page.title }} - {{ super() }}
-{% endblock title %}
-
-{% block content %}
-
-<h1 style="text-align: center">{{ page.title }}</h1>
-<article>
- {{ page.content | safe }}
-</article>
-
-{% endblock content %}