Skip to content

Commit

Permalink
Correct indentation of template files
Browse files Browse the repository at this point in the history
  • Loading branch information
hayatoito committed Feb 16, 2024
1 parent c261390 commit f494aaa
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
38 changes: 19 additions & 19 deletions template/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,34 @@
<h1 class="site-title">{{ entry.title|striptags }}</h1>
<div class="article-author">
{% if entry.author %}
{{ entry.author }}
{{ entry.author }}
{% else %}
{{ site.author }}
{{ site.author }}
{% endif %}
</div>
{% if not entry.hide_date %}
<div class="article-date">
<time datetime="{{ entry.date }}">
{{ entry.date }}
</time>
</div>
<div class="article-date">
<time datetime="{{ entry.date }}">
{{ entry.date }}
</time>
</div>
{% endif %}
{% if entry.update_date %}
<div class="article-date">
(Last Update:
<time datetime="{{ entry.update_date }}">
{{ entry.update_date }}
</time>
)
</div>
<div class="article-date">
(Last Update:
<time datetime="{{ entry.update_date }}">
{{ entry.update_date }}
</time>
)
</div>
{% endif %}
</header>
{% if entry.toc %}
<h1>Table of Contents</h1>
<div id="toc">
{{ entry.toc_html}}
</div>
<hr>
<h1>Table of Contents</h1>
<div id="toc">
{{ entry.toc_html}}
</div>
<hr>
{% endif %}
{{ entry.content }}
</section>
Expand Down
18 changes: 9 additions & 9 deletions template/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ <h1 class="site-title">{{entry.title|striptags }}</h1>
{{ entry.content }}
<hr>
{% for a in articles_by_year %}
<h1 id="{{ a.year }}" class="site-timeline-year">
<a class="self-link" href="#{{ a.year }}">{{ a.year }}</a>
</h1>
<ul>
{% for article in a.articles %}
<li><a href="{{ site.url }}/{{ article.url }}">{{ article.title|striptags }}</a></li>
{% endfor %}
</ul>
<h1 id="{{ a.year }}" class="site-timeline-year">
<a class="self-link" href="#{{ a.year }}">{{ a.year }}</a>
</h1>
<ul>
{% for article in a.articles %}
<li><a href="{{ site.url }}/{{ article.url }}">{{ article.title|striptags }}</a></li>
{% endfor %}
</ul>
{% endfor %}
{% endblock %}
</section>
{% endblock %}

0 comments on commit f494aaa

Please sign in to comment.