diff options
author | Christian Cleberg <hello@cleberg.net> | 2024-05-01 21:45:52 -0500 |
---|---|---|
committer | Christian Cleberg <hello@cleberg.net> | 2024-05-01 21:45:52 -0500 |
commit | dc1261d703ae1e1a14841b030888e3f87ff7c38f (patch) | |
tree | 71139c9021b09704b2d45be3b64d54e2acbae55f /templates | |
parent | ba6b552c8256cc2e071c910ef7821c82443f1f82 (diff) | |
download | cleberg.net-dc1261d703ae1e1a14841b030888e3f87ff7c38f.tar.gz cleberg.net-dc1261d703ae1e1a14841b030888e3f87ff7c38f.tar.bz2 cleberg.net-dc1261d703ae1e1a14841b030888e3f87ff7c38f.zip |
prettier formatting and rewrap lines
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 22 | ||||
-rw-r--r-- | templates/blog.html | 10 | ||||
-rw-r--r-- | templates/index.html | 16 | ||||
-rw-r--r-- | templates/page.html | 18 | ||||
-rw-r--r-- | templates/wiki.html | 6 |
5 files changed, 41 insertions, 31 deletions
diff --git a/templates/base.html b/templates/base.html index e867cb9..140ba9a 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,20 +5,21 @@ <title>cleberg.net</title> {% endblock %} <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <meta name="theme-color" content="#111" media="(prefers-color-scheme: dark)"> - <meta name="theme-color" content="#fff" media="(prefers-color-scheme: light)"> - {% if page %} - {% if page.description %} + <meta name="theme-color" content="#111" media="(prefers-color-scheme: + dark)"> + <meta name="theme-color" content="#fff" media="(prefers-color-scheme: + light)"> + {% if page %} {% if page.description %} <meta name="description" content="{{ page.description }}"> {% elif config.description %} <meta name="description" content="{{ config.description }}"> - {% endif %} - {% elif config.description %} - <meta name="description" content="{{ config.description }}" /> - {% endif %} + {% endif %} {% elif config.description %} + <meta name="description" content="{{ config.description }}" /> {% endif + %} {% block rss %} - <link rel="alternate" type="application/atom+xml" title="RSS" href="{{ get_url(path="atom.xml", trailing_slash=false) }}"> + <link rel="alternate" type="application/atom+xml" title="RSS" href="{{ + get_url(path="atom.xml", trailing_slash=false) }}"> {% endblock %} {% block css %} @@ -41,7 +42,8 @@ <footer> <p>Last build: {{ now() | date(format="%Y-%m-%d %H:%M:%S") }}</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="https://git.cleberg.net/?p=cleberg.net.git;a=summary" + target="_blank" rel="noopener">Source Code</a></p> <p><a href="/atom.xml">Atom RSS Feed</a></p> </footer> </body> diff --git a/templates/blog.html b/templates/blog.html index 184587b..5b1f301 100644 --- a/templates/blog.html +++ b/templates/blog.html @@ -3,15 +3,17 @@ {% block content %} <h1>{{ section.title }}</h1> <p>Use <code>Ctrl + F</code> to search blog post titles for keywords.</p> -<p>You can also add the <a href="/atom.xml">Atom RSS Feed</a> to your feed reader.</p> +<p>You can also add the <a href="/atom.xml">Atom RSS Feed</a> to your feed +reader.</p> {% set post_date = "1970-01-01" | date(format="%Y") %} {% for page in section.pages %} - {% if post_date != page.date | date(format="%Y") %} - {% set_global post_date = page.date | date(format="%Y") %} +{% if post_date != page.date | date(format="%Y") %} +{% set_global post_date = page.date | date(format="%Y") %} <h2>{{ post_date }}</h2> {% endif %} <div class="post"> - <time datetime="{{ page.date | date(format='%Y-%m-%d %H:%M:%S') }}">{{ page.date | date(format='%Y-%m-%d') }}</time> + <time datetime="{{ page.date | date(format='%Y-%m-%d %H:%M:%S') }}">{{ + page.date | date(format='%Y-%m-%d') }}</time> <a href="/blog/{{ page.slug }}/">{{ page.title }}</a> </div> {% endfor %} diff --git a/templates/index.html b/templates/index.html index 5f14396..449a05c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -12,14 +12,14 @@ uid [ultimate] Christian Cleberg <hello@cleberg.net></pre> {% set section = get_section(path="blog/_index.md") %} {% set i = 0 %} {% for page in section.pages %} - {% if i < 3%} - {% set_global i = i + 1%} + {% if i < 3%} + {% set_global i = i + 1%} <div class="post"> - <time datetime="{{ page.date | date(format='%Y-%m-%d %H:%M:%S') }}">{{ page.date | date(format='%Y-%m-%d') }}</time> + <time datetime="{{ page.date | date(format='%Y-%m-%d %H:%M:%S') + }}">{{ page.date | date(format='%Y-%m-%d') }}</time> <a href="/blog/{{ page.slug }}/">{{ page.title }}</a> </div> - {% endif %} - {% endfor %} + {% endif %} {% endfor %} <br> <a href="/blog/">All Posts →</a> </section> @@ -35,8 +35,10 @@ uid [ultimate] Christian Cleberg <hello@cleberg.net></pre> <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/" target="_blank" rel="noopener">Git</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/" target="_blank" + rel="noopener">Git</a></li> </ul> </section> {% endblock content %} diff --git a/templates/page.html b/templates/page.html index b858d1a..a6e3e0e 100644 --- a/templates/page.html +++ b/templates/page.html @@ -5,8 +5,10 @@ {% endblock %} {% block css %} -<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)"> +<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)"> <link rel="stylesheet" href="/styles.css"> {% endblock css %} @@ -14,10 +16,11 @@ <section class="post-metadata"> <h1>{{ page.title }}</h1> {% if page.date %} - <p><time datetime="{{ page.date | date(format='%Y-%m-%d %H:%M:%S') }}">{{ page.date }}</time></p> - {% endif %} - {% if page.updated %} - <p>Last Updated: <time datetime="{{ page.updated | date(format='%Y-%m-%d %H:%M:%S') }}">{{ page.updated }}</time></p> + <p><time datetime="{{ page.date | date(format='%Y-%m-%d %H:%M:%S') }}">{{ + page.date }}</time></p> + {% endif %} {% if page.updated %} + <p>Last Updated: <time datetime="{{ page.updated | date(format='%Y-%m-%d + %H:%M:%S') }}">{{ page.updated }}</time></p> {% endif %} <p>{{ page.word_count }} words; {{ page.reading_time }} minute(s)</p> {% if page.toc %} @@ -32,7 +35,8 @@ <ul> {% for h2 in h1.children %} <li> - <a href="{{ h2.permalink | safe }}">{{ h2.title }}</a> + <a href="{{ h2.permalink | safe }}">{{ + h2.title }}</a> </li> {% endfor %} </ul> diff --git a/templates/wiki.html b/templates/wiki.html index a61d197..28ef97f 100644 --- a/templates/wiki.html +++ b/templates/wiki.html @@ -10,7 +10,7 @@ {% for page in section.pages %} <div class="wiki-post"> <p><a href="/wiki/{{ page.slug }}/">{{ page.title }}</a></p> - <time datetime="{{ page.updated | date(format='%Y-%m-%d %H:%M:%S') }}">{{ page.updated | date(format='%Y-%m-%d')}}</p> + <time datetime="{{ page.updated | date(format='%Y-%m-%d %H:%M:%S') + }}">{{ page.updated | date(format='%Y-%m-%d')}}</p> </div> -{% endfor %} -{% endblock content %} +{% endfor %} {% endblock content %} |