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/post.html | |
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/post.html')
-rw-r--r-- | theme/templates/post.html | 30 |
1 files changed, 11 insertions, 19 deletions
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 %} |