commit b2324febab6bd26c56f675631decd61bf2455dfd
parent acda279c91ec5aea2f68a6cc8a6e3bcd736e1ba0
Author: Demonstrandum <samuel@knutsen.co>
Date: Mon, 15 Aug 2022 23:29:30 +0100
Added links to /rss.xml.
Diffstat:
5 files changed, 29 insertions(+), 1 deletion(-)
diff --git a/public/style.css b/public/style.css
@@ -29,6 +29,9 @@ ol > ::marker {
font-variant-numeric: oldstyle-nums;
}
*/
+ol {
+ list-style-type: cjk-ideographic;
+}
ol > ::marker {
content: counter(list-item, cjk-ideographic) "\ff0e";
}
@@ -117,6 +120,8 @@ blockquote > *:last-child {
.titleBar {
background-color: #679dd74d;
+ -webkit-backdrop-filter: blur(2px);
+ backdrop-filter: blur(2px);
border-radius: 5pt;
box-shadow: 0 4pt 22pt #0000003b;
border: 1pt solid #87b1dd;
diff --git a/shiimoe/templates/blogindex.html b/shiimoe/templates/blogindex.html
@@ -25,12 +25,33 @@
.blog-listing .published {
opacity: 0.4;
}
+ #atomfeed {
+ text-align: right;
+ margin: .5em 0;
+ }
+ #atomfeed img {
+ vertical-align: middle;
+ margin-left: .25em;
+ }
+ #atomfeed a {
+ text-decoration: none;
+ display: inline-block;
+ padding: .25em .5em;
+ background: rgba(0, 50, 255, 0.07);
+ border-radius: .25em;
+ }
</style>
{% endblock %}
{% block header %}
<a href="/"><h1>{% block title %}Blog List{% endblock %}!!</h1></a>
{% endblock %}
{% block content %}
+ <div id="atomfeed">
+ <a href="/rss.xml">
+ RSS Feed
+ <img src="https://validator.w3.org/feed/images/valid-atom.png" alt="Valid Atom Feed">
+ </a>
+ </div>
<ul class="blog-posts">
{% for post in posts %}
<li class="blog-listing">
diff --git a/shiimoe/templates/index.html b/shiimoe/templates/index.html
@@ -30,5 +30,6 @@
<li>I'll give you kisses</li>
<li>I have a PGP key: <a class="link" href="shiimoe.pgp"><code>A5E16A6FFC9DD158</code></a></li>
<li>My website is <a class="link" href="https://github.com/Shiimoe/shii.moe">open source!</a></li>
+ <li>I have an <a href="/rss.xml">RSS feed!</a></li>
</ol>
{% endblock %}
diff --git a/shiimoe/templates/layout.html b/shiimoe/templates/layout.html
@@ -21,6 +21,7 @@
<link rel="stylesheet" type="text/css" href="/style.css"/>
<link rel="icon" type="image/png" href="/mascots/{{ mascot }}-square.png">
<link rel="preload" as="image" href="/background-300x300.png">
+ <link rel="alternate" type="application/atom+xml" title="RSS/Atom feed for shii.moe" href="/rss.xml">
<title>{% block title %}{% endblock %} – Shiimoe!!</title>
<script src="https://unpkg.com/tex-linebreak2@latest/dist/lib_web.js"></script>
{% endblock %}
diff --git a/shiimoe/templates/rss.xml b/shiimoe/templates/rss.xml
@@ -13,7 +13,7 @@
<category term="blog"/>
<link href="https://shii.moe/rss.xml" rel="self" />
<link href="http://shii.moe/" />
- <id>https://shii.moe</id>
+ <id>https://shii.moe/</id>
<updated>{{ posts[0]['datetime'] }}Z</updated>
{% for post in posts %}