Skip to content

Commit

Permalink
Format templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Siecje committed Feb 3, 2024
1 parent 98b66c0 commit f0aab68
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion htmd/example_site/templates/_layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>{% block title %}{% endblock title %} | {{SITE_NAME}}</title>
<title>{% block title %}{% endblock title %} | {{ SITE_NAME }}</title>
{% block meta_tags %}
{% if SITE_NAME %}
<meta property="og:site_name" content="{{ SITE_NAME }}">
Expand Down
2 changes: 1 addition & 1 deletion htmd/example_site/templates/all_tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h1>All Tags</h1>
{% for tag, count in tags.items() %}
<div class="post-preview">
<a href="{{ url_for('tag', tag=tag) }}">
<h2 class="post-title" style="font-size: {{1+0.1*count}}em">
<h2 class="post-title" style="font-size: {{ 1+0.1*count }}em">
{{ tag }}
</h2>
</a>
Expand Down
4 changes: 2 additions & 2 deletions htmd/example_site/templates/author.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{% extends "_layout.html" %}

{% block title %}{{author}}{% endblock title %}
{% block title %}{{ author }}{% endblock title %}

{% block content %}
<article>
<h1>Posts by {{author}}</h1>
<h1>Posts by {{ author }}</h1>
<hr class="small">
{% for post in posts %}
{% with show_text=False %}
Expand Down
4 changes: 2 additions & 2 deletions htmd/example_site/templates/day.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{% extends "_layout.html" %}

{% block title %}{{month_string}} {{day}}, {{year}}{% endblock title %}
{% block title %}{{ month_string }} {{ day }}, {{ year }}{% endblock title %}

{% block content %}
<article>
<h1>Posts from {{month_string}}, {{day}} {{year}}</h1>
<h1>Posts from {{ month_string }}, {{ day }} {{ year }}</h1>
<hr class="small">
{% for post in posts %}
{% with show_text=False %}
Expand Down
4 changes: 2 additions & 2 deletions htmd/example_site/templates/month.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{% extends "_layout.html" %}

{% block title %}{{month_string}} {{year}}{% endblock title %}
{% block title %}{{ month_string }} {{ year }}{% endblock title %}

{% block content %}
<article>
<h1>Posts from {{month_string}} {{year}}</h1>
<h1>Posts from {{ month_string }} {{year}}</h1>
<hr class="small">
{% for post in posts %}
{% with show_text=False %}
Expand Down
2 changes: 1 addition & 1 deletion htmd/example_site/templates/post.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "_layout.html" %}

{% block title %}{{post.title}}{% endblock title %}
{% block title %}{{ post.title }}{% endblock title %}

{% block meta_tags %}
{{ super() }}
Expand Down
2 changes: 1 addition & 1 deletion htmd/example_site/templates/tag.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "_layout.html" %}

{% block title %}{{tag}}{% endblock title %}
{% block title %}{{ tag }}{% endblock title %}

{% block content %}
<article>
Expand Down
4 changes: 2 additions & 2 deletions htmd/example_site/templates/year.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{% extends "_layout.html" %}

{% block title %}{{year}}{% endblock title %}
{% block title %}{{ year }}{% endblock title %}

{% block content %}
<article>
<h1>Posts from {{year}}</h1>
<h1>Posts from {{ year }}</h1>
<hr class="small">
{% for post in posts %}
{% with show_text=False %}
Expand Down

0 comments on commit f0aab68

Please sign in to comment.