Skip to content

Commit

Permalink
Serve Atom feed from /feed/; use absolute URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-low committed Oct 23, 2024
1 parent 97041ce commit c5f6bc4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >- # this means to ignore newlines until "baseurl:"
an easy way to find things to improve on OSM, be it in their own town or
city, or anywhere in the world!
baseurl: "" # the subpath of your site, e.g. /blog
url: "" # the base hostname & protocol for your site, e.g. http://example.com
url: "https://blog.maproulette.org" # the base hostname & protocol for your site
permalink: "/:year/:month/:day/:title/"
show_excerpts: true

Expand All @@ -27,7 +27,7 @@ defaults:
layout: "post"

feed:
path: /feed
path: /feed/

picture:
output: assets/
Expand Down
4 changes: 4 additions & 0 deletions _plugins/rename_feed.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Jekyll::Hooks.register :site, :post_write do |site|
dest = site.config["destination"]
File.rename "#{dest}/feed/index", "#{dest}/feed/index.atom"
end

0 comments on commit c5f6bc4

Please sign in to comment.