diff --git a/pg-py/themes/cards/archive.html b/pg-py/themes/cards/archive.html
new file mode 100644
index 0000000..4ab694c
--- /dev/null
+++ b/pg-py/themes/cards/archive.html
@@ -0,0 +1,10 @@
+ <main class="list-page">
+ <h1>Archive</h1>
+ <p>This is the archive of all posts. It is an optional page, configurable from pa.py</p>
+
+ <ul class="post-list">
+ {% for post in posts %}
+ <li>{date|format:%d %b %Y} - <a href="{post.url}">{post.title}</a></li>
+ {% endfor %}
+ </ul>
+ </main>
diff --git a/pg-py/themes/cards/footer.html b/pg-py/themes/cards/footer.html
index c20563d..305d761 100644
--- a/pg-py/themes/cards/footer.html
+++ b/pg-py/themes/cards/footer.html
@@ -1,10 +1,6 @@
<footer style="padding:25px 0;">
- <span id="footer-directive">
- <p><small>Subscribe via <a href='/index.xml'>rss</a></small></p>
- </span>
+ <p>Subscribe via <a href='/index.xml'>rss</a></p>
- <span>
- Powered by Page with Py
- </span>
+ <span class="power">Site generated by <a href="https://codeberg.org/cybrkyd/page-with-py" target="_blank" rel="noopener">PaPy</a></span>
</footer>
diff --git a/pg-py/themes/cards/head.html b/pg-py/themes/cards/head.html
index 5976a31..b002ddb 100644
--- a/pg-py/themes/cards/head.html
+++ b/pg-py/themes/cards/head.html
@@ -104,6 +104,10 @@ button {
cursor: pointer;
}
+ .time, .power {
+ font-size: 15px;
+ }
+
main {
line-height: 1.6;
}
@@ -135,28 +139,6 @@ footer {
text-align: center;
}
- .time, .power {
- font-size: 15px;
- }
-
- .card-inside h2 {
- margin-bottom: 0;
- }
-
- .card-link {
- margin-bottom: 2rem;
- }
-
- .continue {
- font-size: 0.88em;
- }
-
- .posted {
- line-height: 0.01;
- font-size: 0.82em;
- color: olive;
- }
-
.title:hover {
text-decoration: none;
}
@@ -196,6 +178,10 @@ ul.blog-posts li a:visited {
color: var(--visited-color);
}
+ .tags:not(:has(a)) .tag-label {
+ display:none
+ }
+
.pager.blog-pager {
display: flex;
justify-content: space-between;
diff --git a/pg-py/themes/cards/header.html b/pg-py/themes/cards/header.html
index bef4242..86435e8 100644
--- a/pg-py/themes/cards/header.html
+++ b/pg-py/themes/cards/header.html
@@ -4,6 +4,6 @@
<h1>My blog</h1>
</a>
<nav>
- <p><a href='/'>Home</a> <a href='/about'>About</a></p>
+ <p><a href='/'>Home</a> <a href='/about'>About</a> <a href='/archive'>Archive</a> <a href='/tags'>Tags</a></p>
</nav>
</header>
diff --git a/pg-py/themes/cards/single.html b/pg-py/themes/cards/single.html
index 8976355..f8633d1 100644
--- a/pg-py/themes/cards/single.html
+++ b/pg-py/themes/cards/single.html
@@ -11,9 +11,12 @@
{% endfor %}
{content}
- {% for tag in tags %}
- <a href="/tags/{tag}/">#{tag}</a>
- {% endfor %}
+ <div class="tags">
+ <span class="tag-label">Tagged in:</span>
+ {% for tag in tags %}
+ <a href="/tags/{tag.url}/">#{tag.label}</a>
+ {% endfor %}
+ </div>
</article>
<hr>
diff --git a/pg-py/themes/cards/tags.html b/pg-py/themes/cards/tags.html
index 9fc5776..1fec170 100644
--- a/pg-py/themes/cards/tags.html
+++ b/pg-py/themes/cards/tags.html
@@ -3,9 +3,7 @@
<ul class="post-list">
{% for post in posts %}
- <li><a href="{post.url}">{post.title}</a> - {post.date}</li>
+ <li><a href="{post.url}">{post.title}</a></li>
{% endfor %}
</ul>
-
- {pagination}
</main>