Skip to content

Commit

Permalink
parameterize to uniqify before proxying
Browse files Browse the repository at this point in the history
  • Loading branch information
garrett committed Jul 7, 2016
1 parent cca8df4 commit 47dfee5
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,9 @@
proxy '/blog/author.html', 'author.html', ignore: true

# Add blog feeds
blog.tags.each do |tag_name, _tag_data|
next unless tag_name

proxy "/blog/tag/#{tag_name.downcase}.xml",
'feed.xml',
locals: { tag_name: tag_name },
ignore: true
blog.tags.keys.map(&:parameterize).uniq.compact.each do |tag_name|
proxy "/blog/tag/#{tag_name}.xml", "feed.xml", locals: {tag_name: tag_name}, :ignore => true if tag_name
end

proxy '/blog/feed.xml', 'feed.xml', ignore: true
proxy '/blog/tag/index.html', 'tag.html', ignore: true

Expand Down

0 comments on commit 47dfee5

Please sign in to comment.