-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #3233 -- Simple theme classless semantic HTML
- Loading branch information
Paolo Melchiorre
committed
Oct 31, 2023
1 parent
a20cd8d
commit c0e2d4d
Showing
15 changed files
with
68 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,4 @@ samples/output | |
*.pem | ||
*.lock | ||
.pdm-python | ||
.venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,27 @@ | ||
{% extends "base.html" %} | ||
{% block content %} | ||
<section id="content"> | ||
{% block content_title %} | ||
<h2>All articles</h2> | ||
{% endblock %} | ||
|
||
<ol id="post-list"> | ||
|
||
{% for article in articles_page.object_list %} | ||
<li><article class="hentry"> | ||
<header> <h2 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> </header> | ||
<footer class="post-info"> | ||
<time class="published" datetime="{{ article.date.isoformat() }}"> {{ article.locale_date }} </time> | ||
<address class="vcard author">By | ||
<article> | ||
<header> <h2><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> </header> | ||
<section>{{ article.summary }}</section> | ||
<footer> | ||
<p>Published: <time datetime="{{ article.date.isoformat() }}"> {{ article.locale_date }} </time></p> | ||
<address>By | ||
{% for author in article.authors %} | ||
<a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> | ||
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> | ||
{% endfor %} | ||
</address> | ||
</footer><!-- /.post-info --> | ||
<div class="entry-content"> {{ article.summary }} </div><!-- /.entry-content --> | ||
</article></li> | ||
</footer> | ||
</article> | ||
{% endfor %} | ||
</ol><!-- /#posts-list --> | ||
|
||
{% if articles_page.has_other_pages() %} | ||
{% include 'pagination.html' %} | ||
{% endif %} | ||
</section><!-- /#content --> | ||
|
||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
{% if DEFAULT_PAGINATION %} | ||
{% set first_page = articles_paginator.page(1) %} | ||
{% set last_page = articles_paginator.page(articles_paginator.num_pages) %} | ||
<p class="paginator"> | ||
<nav> | ||
<ul> | ||
{% if articles_page.has_previous() %} | ||
<a href="{{ SITEURL }}/{{ first_page.url }}">⇇</a> | ||
<a href="{{ SITEURL }}/{{ articles_previous_page.url }}">«</a> | ||
<li><a href="{{ SITEURL }}/{{ first_page.url }}">⟪</a></li> | ||
<li><a href="{{ SITEURL }}/{{ articles_previous_page.url }}">⟨</a></li> | ||
{% endif %} | ||
Page {{ articles_page.number }} / {{ articles_paginator.num_pages }} | ||
<li>Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}</li> | ||
{% if articles_page.has_next() %} | ||
<a href="{{ SITEURL }}/{{ articles_next_page.url }}">»</a> | ||
<a href="{{ SITEURL }}/{{ last_page.url }}">⇉</a> | ||
<li><a href="{{ SITEURL }}/{{ articles_next_page.url }}">⟩</a></li> | ||
<li><a href="{{ SITEURL }}/{{ last_page.url }}">⟫</a></li> | ||
{% endif %} | ||
</p> | ||
</ul> | ||
</nav> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters