Skip to content

Commit

Permalink
update the other templates to for the most parts the ones being shipp…
Browse files Browse the repository at this point in the history
…ed with the latest version of quickblog
  • Loading branch information
philippkueng committed Oct 15, 2024
1 parent 1154f27 commit 2e0a8c1
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 53 deletions.
21 changes: 11 additions & 10 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,25 +48,26 @@
<div class="site-header">
<div class="wrapper">
<div class="site-nav">
<a class="page-link" href="{{relative-path | safe}}archive.html">Archive</a>
<a class="page-link" href="{{relative-path | safe}}archive{{page-suffix}}">Archive</a>
<a class="page-link" href="{{relative-path | safe}}tags/index.html">Tags</a>
<a class="page-link" href="{{relative-path | safe}}atom.xml">
{% if discuss-link %}<a class="page-link" href="{{discuss-link}}">Discuss</a>{% endif %}
<a class="page-link" href="{{relative-path | safe}}atom.xml">
Feed
</a>
{% if twitter-handle %}
<a class="page-link" href="https://twitter.com/{{twitter-handle}}">
{% if twitter-handle %}
<a class="page-link" href="https://twitter.com/{{twitter-handle}}">
Twitter
</a>
{% endif %}
{% if about-link %}
<a class="page-link" href="{{about-link}}">About</a>
{% endif %}
{% endif %}
{% if about-link %}
<a class="page-link" href="{{about-link}}">About</a>
{% endif %}
</div>
<div>
<h1 class="site-title">
<a class="page-link" href="{{relative-path | safe}}index.html">{{blog-title}}</a>
</h1>
<p>{{blog-description}}</p>
<p>{{blog-description}}</p>
</div>
</div>
</div>
Expand All @@ -77,7 +78,7 @@ <h1 class="site-title">

{% if not skip-archive %}
<div style="margin-bottom: 20px; float: right;">
<a class="page-link" href="{{relative-path | safe}}archive.html">Archive</a>
<a class="page-link" href="{{relative-path | safe}}archive{{page-suffix}}">Archive</a>
</div>
{% endif %}
</div>
Expand Down
43 changes: 23 additions & 20 deletions templates/index.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
{% for post in posts %}
<div>
<article>
<h1><a href="{{post.post-link}}">{{post.title}}</a></h1>
{{post.body | safe}}
{% if post.truncated %}
<p><a href="{{post.post-link}}">Continue reading</a></p>
{% endif %}
<p><i>Published: {{post.date}}</i></p>
{% if post.tags %}
<p><i>
Tagged:
{% for tag in post.tags %}
<span class="tag">
<a href="tags/{{tag|escape-tag}}.html">{{tag}}</a>
</span>
{% endfor %}
</i></p>
{% endif %}
</article>
</div>
<div>
<article>
<h1><a href="{{post.post-link}}">{{post.title}}</a></h1>
{{post.body | safe}}
{% if post.truncated %}
<p><a href="{{post.post-link}}">Continue reading</a></p>
{% endif %}
{% if post.discuss %}
<p>Discuss this post <a href="{{post.discuss}}">here</a>.</p>
{% endif %}
<p><i>Published: {{post.date}}</i></p>
{% if post.tags %}
<p><i>
Tagged:
{% for tag in post.tags %}
<span class="tag">
<a href="tags/{{tag|escape-tag}}{{page-suffix}}">{{tag}}</a>
</span>
{% endfor %}
</i></p>
{% endif %}
</article>
</div>
{% endfor %}
48 changes: 25 additions & 23 deletions templates/post.html
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
<article>
<h1>
{% if post-link %}
<a href="{{post-link}}">
{% endif %}
{{title}}
{% if post-link %}
</a>
{% endif %}
</h1>

{{body | safe}}
<p><i>Published: {{date}}</i></p>
{% if tags %}
<p>
<i>
Tagged:
{% for tag in tags %}
<span class="tag">
<a href="tags/{{tag|escape-tag}}.html">{{tag}}</a>
</span>
{% endfor %}
</i>
</p>
<h1>
{% if post-link %}
<a href="{{post-link}}">
{% endif %}
{{title}}
{% if post-link %}
</a>
{% endif %}
</h1>
{{body | safe}}
{% if discuss-link %}
<p>Discuss this post <a href="{{discuss}}">here</a>.</p>
{% endif %}
<p><i>Published: {{date}}</i></p>
{% if tags %}
<p>
<i>
Tagged:
{% for tag in tags %}
<span class="tag">
<a href="tags/{{tag|escape-tag}}{{page-suffix}}">{{tag}}</a>
</span>
{% endfor %}
</i>
</p>
{% endif %}
</article>

0 comments on commit 2e0a8c1

Please sign in to comment.