Change Atom feed to HTTPS

pull/775/head
Thibaut Courouble 7 years ago
parent e8bb76fe53
commit ca4387cb7d

@ -435,13 +435,13 @@ class App < Sinatra::Application
maker.channel.links.new_link do |link|
link.rel = 'self'
link.href = 'http://devdocs.io/feed.atom'
link.href = 'https://devdocs.io/feed.atom'
link.type = 'application/atom+xml'
end
maker.channel.links.new_link do |link|
link.rel = 'alternate'
link.href = 'http://devdocs.io/'
link.href = 'https://devdocs.io/'
link.type = 'text/html'
end
@ -450,14 +450,14 @@ class App < Sinatra::Application
item.id = "tag:devdocs.io,2014:News/#{settings.news.length - i}"
item.title = news[1].split("\n").first.gsub(/<\/?[^>]*>/, '')
item.description do |desc|
desc.content = news[1..-1].join.gsub("\n", '<br>').gsub('href="/', 'href="http://devdocs.io/')
desc.content = news[1..-1].join.gsub("\n", '<br>').gsub('href="/', 'href="https://devdocs.io/')
desc.type = 'html'
end
item.updated = "#{news.first}T14:00:00Z"
item.published = "#{news.first}T14:00:00Z"
item.links.new_link do |link|
link.rel = 'alternate'
link.href = 'http://devdocs.io/'
link.href = 'https://devdocs.io/'
link.type = 'text/html'
end
end

Loading…
Cancel
Save