From dc1261d703ae1e1a14841b030888e3f87ff7c38f Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Wed, 1 May 2024 21:45:52 -0500 Subject: prettier formatting and rewrap lines --- templates/base.html | 22 ++++++++++++---------- templates/blog.html | 10 ++++++---- templates/index.html | 16 +++++++++------- templates/page.html | 18 +++++++++++------- templates/wiki.html | 6 +++--- 5 files changed, 41 insertions(+), 31 deletions(-) (limited to 'templates') 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 @@ cleberg.net {% endblock %} - - - {% if page %} - {% if page.description %} + + + {% if page %} {% if page.description %} {% elif config.description %} - {% endif %} - {% elif config.description %} - - {% endif %} + {% endif %} {% elif config.description %} + {% endif + %} {% block rss %} - + {% endblock %} {% block css %} @@ -41,7 +42,8 @@ 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 %}

{{ section.title }}

Use Ctrl + F to search blog post titles for keywords.

-

You can also add the Atom RSS Feed to your feed reader.

+

You can also add the Atom RSS Feed to your feed +reader.

{% 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") %}

{{ post_date }}

{% endif %}
- + {{ page.title }}
{% 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> {% 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%}
- + {{ page.title }}
- {% endif %} - {% endfor %} + {% endif %} {% endfor %}
All Posts → @@ -35,8 +35,10 @@ uid [ultimate] Christian Cleberg <hello@cleberg.net>

Contact

{% 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 %} - - + + {% endblock css %} @@ -14,10 +16,11 @@

{{ page.title }}

{% if page.date %} -

- {% endif %} - {% if page.updated %} -

Last Updated:

+

+ {% endif %} {% if page.updated %} +

Last Updated:

{% endif %}

{{ page.word_count }} words; {{ page.reading_time }} minute(s)

{% if page.toc %} @@ -32,7 +35,8 @@ 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 %}

{{ page.title }}

-
-{% endfor %} -{% endblock content %} +{% endfor %} {% endblock content %} -- cgit v1.2.3-70-g09d2