about summary refs log tree commit diff
path: root/templates/src/templates.rs
diff options
context:
space:
mode:
Diffstat (limited to 'templates/src/templates.rs')
-rw-r--r--templates/src/templates.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/src/templates.rs b/templates/src/templates.rs
index 9b29fce..986d183 100644
--- a/templates/src/templates.rs
+++ b/templates/src/templates.rs
@@ -3,7 +3,7 @@ use kittybox_util::micropub::Channel;
 use crate::{Feed, VCard};
 
 markup::define! {
-    Template<'a>(title: &'a str, blog_name: &'a str, feeds: Vec<Channel>, user: Option<&'a kittybox_indieauth::ProfileUrl>, content: String) {
+    Template<'a>(title: &'a str, blog_name: &'a str, feeds: Vec<Channel>, user: Option<&'a kittybox_indieauth::ProfileUrl>, content: String, rss_link: Option<&'a str>) {
         @markup::doctype()
         html {
             head {
@@ -22,13 +22,13 @@ markup::define! {
                 // LibreJS-compliant JS licensing info (because TypeScript is a bitch)
                 link[rel="jslicense", href="/.kittybox/static/jslicense.html"];
                 /*@if let Some(endpoints) = endpoints {
-                    @if let Some(webmention) = &endpoints.webmention {
-                        link[rel="webmention", href=&webmention];
-                    }
                     @if let Some(microsub) = &endpoints.microsub {
                         link[rel="microsub", href=&microsub];
                     }
                 }*/
+                @if let Some(rss) = rss_link {
+                    link[rel="alternate", r#type="application/rss+xml", href=rss];
+                }
             }
             body {
                 a[href="#main_content", id="skip-to-content"] { "Skip to content" }