mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-04 16:25:05 -05:00
Merge pull request #91 from brigham/extra-subdir
Fix extra subdirectories appearing in category links and atom.xml link.
This commit is contained in:
commit
80f95b8b6c
@ -25,8 +25,7 @@
|
||||
<script src="{{ root_url }}/javascripts/modernizr-2.0.js"></script>
|
||||
<script src="http://s3.amazonaws.com/ender-js/jeesh.min.js"></script>
|
||||
<script src="{{ root_url }}/javascripts/octopress.js" type="text/javascript"></script>
|
||||
{% capture rss_url %}{% if site.subscribe_rss contains ':' %}{{ site.subscribe_rss }}{% else %}{{ root_url }}{{ site.subscribe_rss }}{% endif %}{% endcapture %}
|
||||
<link href="{{ rss_url }}" rel="alternate" title="{{site.title}}" type="application/atom+xml"/>
|
||||
<link href="{{ site.subscribe_rss }}" rel="alternate" title="{{site.title}}" type="application/atom+xml"/>
|
||||
{% include google_analytics.html %}
|
||||
{% include google_plus_one.html %}
|
||||
{% include twitter_sharing.html %}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user