diff options
author | Christian Cleberg <hello@cleberg.net> | 2024-04-13 02:49:46 -0500 |
---|---|---|
committer | Christian Cleberg <hello@cleberg.net> | 2024-04-13 02:49:46 -0500 |
commit | 64f5a07bb30fbcf6cc553205dd1a903fbf8c3dfe (patch) | |
tree | 5f058fd4b8f2545bc3a9d8181e7a1d9ec1ef1ce1 /theme/templates | |
parent | 06199bd82fc93ea7bd98212a54774499fcd22856 (diff) | |
download | cleberg.net-64f5a07bb30fbcf6cc553205dd1a903fbf8c3dfe.tar.gz cleberg.net-64f5a07bb30fbcf6cc553205dd1a903fbf8c3dfe.tar.bz2 cleberg.net-64f5a07bb30fbcf6cc553205dd1a903fbf8c3dfe.zip |
minify site
Diffstat (limited to 'theme/templates')
-rw-r--r-- | theme/templates/base.html | 25 | ||||
-rw-r--r-- | theme/templates/blog.html | 19 | ||||
-rw-r--r-- | theme/templates/index.html | 59 | ||||
-rw-r--r-- | theme/templates/page.html | 1 | ||||
-rw-r--r-- | theme/templates/post.html | 30 | ||||
-rw-r--r-- | theme/templates/wiki.html | 11 |
6 files changed, 41 insertions, 104 deletions
diff --git a/theme/templates/base.html b/theme/templates/base.html index 3ba56b6..33197c2 100644 --- a/theme/templates/base.html +++ b/theme/templates/base.html @@ -5,8 +5,8 @@ {% block head %} <meta charset="utf-8"> <title> - {% block subtitle %}{% endblock %} - {% block title %}{{ site_name | default("weblorg website") }}{% endblock %} + {% block subtitle %}{% endblock %} + {% block title %}{{ site_name | default("weblorg website") }}{% endblock %} </title> <meta name="viewport" content="width=device-width, initial-scale=1"> {% if site_owner is defined %}<meta name="author" content="{{ site_owner }}" >{% endif %} @@ -17,25 +17,6 @@ {% endblock %} </head> <body> - {% block nav %} - <nav class="site-nav" aria-label="site-nav" role="navigation"> - <ul> - <li><a href="/">Home</a></li> - <li><a href="/blog/">Blog</a></li> - <li><a href="/services/">Services</a></li> - <li><a href="/wiki/">Wiki</a></li> - </ul> - </nav> - {% endblock %} - - <main>{% block main %}{% endblock %}</main> - - {% block footer %} - <footer> - <p>Last Build: <<time datetime='{{ now() | strftime("%Y-%m-%d %H:%M:%S") }}''>{{ now() | strftime("%Y-%m-%d %a %H:%M:%S") }}</time>></p> - <p><a href="https://git.cleberg.net/?p=cleberg.net.git;a=summary" target="_blank" rel="noopener">Source Code</a></p> - <p><a href="/feed.xml">RSS Feed</a></p> - </footer> - {% endblock %} + <main>{% block main %}{% endblock %}</main> </body> </html> diff --git a/theme/templates/blog.html b/theme/templates/blog.html index b3b3a3f..110043f 100644 --- a/theme/templates/blog.html +++ b/theme/templates/blog.html @@ -2,13 +2,14 @@ {% block subtitle %}Blog | {% endblock %} {% block main %} - <h1>Blog</h1> - <p>Use <code>Ctrl + F</code> to search blog post titles for keywords.</p> - <p>You can also add the <a href="/feed.xml">RSS Feed</a> to your feed reader.</p> - {% for post in posts %} - <div class="post"> - <time datetime="{{ post.date | strftime("%Y-%m-%d") }}"><{{ post.date|strftime("%Y-%m-%d") }}></time> - <a href="{{ url_for("blog", slug=post.slug) }}">{{ post.title }}</a> - </div> - {% endfor %} +<p><a href="/">← home</a></p> +<h1>Blog</h1> +<p>Use <code>Ctrl + F</code> to search blog post titles for keywords.</p> +<p>You can also add the <a href="/feed.xml">RSS Feed</a> to your feed reader.</p> +{% for post in posts %} +<div class="post"> + <time datetime='{{ post.date | strftime("%Y-%m-%d") }}'>{{ post.date|strftime("%Y-%m-%d") }}</time> + <a href='{{ url_for("blog", slug=post.slug) }}'>{{ post.title }}</a> +</div> +{% endfor %} {% endblock %} diff --git a/theme/templates/index.html b/theme/templates/index.html index 7f9e197..4a99aab 100644 --- a/theme/templates/index.html +++ b/theme/templates/index.html @@ -4,52 +4,17 @@ <blockquote> Do AIs dream in electric sheep?<br />He hoped it had nanosecond nightmares. </blockquote> + <a href="https://git.cleberg.net">git</a> + <a href="/gpg.txt">gpg</a> + <a href="https://matrix.to/#/@cyborg:matrix.tchncs.de">matrix</a> + <a href="/feed.xml">rss</a> + <br> + <a href="/blog/">blog</a> + <a href="/salary/">salary</a> + <a href="/services/">services</a> + <a href="/wiki/">wiki</a> </section> -<section> - <h2>Featured Posts</h2> - <div class="post"> - <time datetime="2024-03-29"><2024-03-29></time> - <a href="/blog/org-blog.html">Blogging in Org-Mode</a> - </div> - <div class="post"> - <time datetime="2024-03-14"><2024-03-14></time> - <a href="/blog/doom-emacs-org-mode.html">Doom Emacs & Org-Mode</a> - </div> - <div class="post"> - <time datetime="2023-10-04"><2023-10-04></time> - <a href="/blog/digital-minimalism.html">Digital Minimalism</a> - </div> - <br /> - <a href="/blog/">All Posts →</a> -</section> -<section> - <h2>Everything Else</h2> - <ul> - <li><a href="/salary/">Salary</a></li> - <li><a href="/services/">Services</a></li> - <li><a href="/wiki/">Wiki</a></li> - </ul> -</section> -<section> - <h2>Contact</h2> - <ul> - <li>hello [at] cleberg.net (<a href="/gpg.txt">GPG</a>)</li> - <li> - <a - href="https://matrix.to/#/@cyborg:matrix.tchncs.de" - target="_blank" - rel="noopener" - >@cyborg:@matrix.tchncs.de</a - > - </li> - <li> - <a - href="https://git.cleberg.net/?p=cleberg.net.git;a=summary" - target="_blank" - rel="noopener" - >Git</a - > - </li> - </ul> -</section> +<footer> + <p>Last Build: <<time datetime='{{ now() | strftime("%Y-%m-%d %H:%M:%S") }}'>{{ now() | strftime("%Y-%m-%d %a %H:%M:%S") }}</time>></p> +</footer> {% endblock %} diff --git a/theme/templates/page.html b/theme/templates/page.html index fb7afa9..2e6dada 100644 --- a/theme/templates/page.html +++ b/theme/templates/page.html @@ -4,6 +4,7 @@ {{ post.title }} | {% endblock %} {% block main %} +<p><a href="/">← home</a></p> <article role="article"> <h1>{{ post.title }}</h1> <section>{{ post.html | safe }}</section> diff --git a/theme/templates/post.html b/theme/templates/post.html index d0b76db..0a154f9 100644 --- a/theme/templates/post.html +++ b/theme/templates/post.html @@ -1,30 +1,22 @@ -{% extends "base.html" %} - -{% block subtitle %} - {{ post.title }} | -{% endblock %} +{% extends "base.html" %} {% block subtitle %} {{ post.title }} | {% endblock %} {% block meta %} -<meta property="og:title" content="{{ post.title }}"> -<meta property="og:url" content="{{ post.url }}"> +<meta property="og:title" content="{{ post.title }}" /> +<meta property="og:url" content="{{ post.url }}" /> {% if post.description is defined %} -<meta property="og:description" content="{{ post.description }}"> +<meta property="og:description" content="{{ post.description }}" /> {% elif project_description is defined %} -<meta property="og:description" content="{{ project_description }}"> -{% endif %} -<link rel="stylesheet" href="/syntax-theme-dark.css" media="(prefers-color-scheme: dark)"> -<link rel="stylesheet" href="/syntax-theme-light.css" media="(prefers-color-scheme: light)"> -{% endblock %} - -{% block main %} +<meta property="og:description" content="{{ project_description }}" /> +{% endif %} {% endblock %} {% block main %} +<p><a href="/">← home</a></p> <article role="article"> <section class="post-metadata"> <h1 class="post__title">{{ post.title }}</h1> {% if post.date is defined %} - <time datetime="{{ post.date|strftime("%Y-%m-%d") }}"><{{ post.date|strftime("%Y-%m-%d %a %H:%M:%S") }}></time> + <time datetime='{{ post.date|strftime("%Y-%m-%d") }}' + ><{{ post.date|strftime("%Y-%m-%d %a %H:%M:%S") }}></time + > {% endif %} </section> - <section> - {{ post.html | safe }} - </section> + <section>{{ post.html | safe }}</section> </article> {% endblock %} diff --git a/theme/templates/wiki.html b/theme/templates/wiki.html index 3d8b8fd..3860350 100644 --- a/theme/templates/wiki.html +++ b/theme/templates/wiki.html @@ -2,16 +2,13 @@ {% block subtitle %}Wiki | {% endblock %} {% block main %} +<p><a href="/">← home</a></p> <h1>Wiki</h1> <p>Use <code>Ctrl + F</code> to search wiki pages for keywords.</p> -<div class="wiki-post"> - <p>Wiki Page</p> - <p>Last Updated</p> -</div> {% for post in posts %} - <div class="wiki-post"> - <a href="{{ url_for("wiki", slug=post.slug) }}">{{ post.title }}</a> - <time datetime="{{ post.date | strftime("%Y-%m-%d") }}"><{{ post.date|strftime("%Y-%m-%d") }}></time> + <div class="post"> + <time datetime='{{ post.date | strftime("%Y-%m-%d") }}'>{{ post.date|strftime("%Y-%m-%d") }}</time> + <a href='{{ url_for("wiki", slug=post.slug) }}'>{{ post.title }}</a> </div> {% endfor %} {% endblock %} |