diff options
author | Brigham Brown <me@brighambrown.com> | 2011-08-11 21:30:45 -0700 |
---|---|---|
committer | Brigham Brown <me@brighambrown.com> | 2011-08-11 21:30:45 -0700 |
commit | 648d4cc238ea8cf1aacd7b780f0742c031eae243 (patch) | |
tree | dd3d86b3d9ba033fd0b1ae09bc8092266c4649d9 /plugins | |
parent | 5958810eb286e914777eac6956f56692fd9e2239 (diff) | |
download | my_new_personal_website-648d4cc238ea8cf1aacd7b780f0742c031eae243.tar.xz my_new_personal_website-648d4cc238ea8cf1aacd7b780f0742c031eae243.zip |
Fix extra subdirectories appearing in category links and atom.xml link.
Diffstat (limited to '')
-rw-r--r-- | plugins/category_generator.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/category_generator.rb b/plugins/category_generator.rb index 205022d3..aa1180e1 100644 --- a/plugins/category_generator.rb +++ b/plugins/category_generator.rb @@ -104,9 +104,8 @@ module Jekyll # def category_links(categories) dir = @context.registers[:site].config['category_dir'] - root_url = @context.registers[:site].config['root'].sub(/\/$/, '') categories = categories.sort!.map do |item| - "<a class='category' href='#{root_url}/#{dir}/#{item.gsub(/_|\W/, '-')}/'>#{item}</a>" + "<a class='category' href='/#{dir}/#{item.gsub(/_|\W/, '-')}/'>#{item}</a>" end case categories.length |