]> gitweb.mndrdr.org Git - arelpe.git/commitdiff
Fixed rss canonical url
authorAidan Cornelius-Bell <[email protected]>
Sun, 15 Sep 2024 01:54:40 +0000 (11:24 +0930)
committerAidan Cornelius-Bell <[email protected]>
Sun, 15 Sep 2024 01:54:40 +0000 (11:24 +0930)
app/views/layouts/application.html.erb
app/views/pubview/rss.rss.builder

index b441a45e9a18c87393045a1af1fe5775babd3a9d..ed635920906cb71970bfda489afa2262f5592d8f 100644 (file)
@@ -18,8 +18,8 @@
 
     <%= stylesheet_link_tag "application" %>
     
-    <%= auto_discovery_link_tag(:rss, rss_url, title: "mind reader (bookmarks and dispatch excerpts)") %>
-    <%= auto_discovery_link_tag(:rss, dispatches_rss_url, title: "mind reader (full dispatches)") %>
+    <%= auto_discovery_link_tag(:rss, rss_url, title: "mind reader :: dispatches and bookmarks in summary") %>
+    <%= auto_discovery_link_tag(:rss, dispatches_rss_url, title: "mind reader :: dispatches full text") %>
     
     <% if ['posts', 'pages'].include?(controller.controller_name) %>
     <link rel="stylesheet" href="/simplemde.min.css">
index 6e90f5808aa6652089b5c590b9547b22fbd829bc..c8093a3c3ad4041af8a2dbe1b57d4cc3bb48f4e6 100644 (file)
@@ -5,7 +5,7 @@ if params[:action] == 'dispatches_rss'
   xml.title "mind reader :: dispatches full text"
   xml.description "Posts in full from Aidan’s anti-capitalist posting and sharing project"
 else
-  xml.title "mind reader :: dispatches and bookmarks summary"
+  xml.title "mind reader :: dispatches and bookmarks in summary"
   xml.description "Posts and links in summary from Aidan’s anti-capitalist posting and sharing project"
 end
 xml.link root_url
@@ -23,7 +23,11 @@ xml.language "en-US"
          xml.description post.generate_excerpt
        end
        xml.pubDate post.rss_time
+       if post.post_type == 'bookmark'
+       xml.link post.url
+       else
        xml.link public_post_url(year: post.created_at.year, slug: post.slug)
+       end
        xml.guid public_post_url(year: post.created_at.year, slug: post.slug)
        
        # Add more metadata if needed