Remove links from tags
This commit is contained in:
parent
6a0b7e51d2
commit
1946a16463
12
Rules
12
Rules
|
@ -9,10 +9,6 @@ Compass.add_project_configuration 'config/compass.rb'
|
|||
preprocess do
|
||||
paginate_articles
|
||||
|
||||
tag_index.add_articles(articles)
|
||||
tag_index.create_tag_feeds(@items)
|
||||
tag_index.create_tag_pages(@items)
|
||||
|
||||
articles.each {|item| item[:page_type] = 'single-post'}
|
||||
@items.each {|item| item[:page_type] ||= 'static-page'}
|
||||
|
||||
|
@ -97,10 +93,6 @@ route '/assets/style/partials/*' do
|
|||
# Don't route
|
||||
end
|
||||
|
||||
route '/blogroll/feeds/' do
|
||||
item.identifier.chop + '.opml'
|
||||
end
|
||||
|
||||
route STATIC_ITEMS do
|
||||
item.identifier.to_s
|
||||
end
|
||||
|
@ -122,10 +114,6 @@ route '/articles/*/', rep: :archive do
|
|||
nil
|
||||
end
|
||||
|
||||
route %r{/(feed|sitemap)/$} do
|
||||
item.identifier.chop + '.xml'
|
||||
end
|
||||
|
||||
route '*' do
|
||||
item.identifier + 'index.html'
|
||||
end
|
||||
|
|
|
@ -193,7 +193,7 @@ ul.post-cats, ul.post-tags {
|
|||
}
|
||||
}
|
||||
|
||||
a.tag {
|
||||
a.tag, span.tag {
|
||||
background: lighten($brand-primary, 50%);
|
||||
border: $brand-primary thin solid;
|
||||
color: $brand-primary;
|
||||
|
|
|
@ -15,7 +15,7 @@ def feed_url_for_tag(tag)
|
|||
end
|
||||
|
||||
def link_for_tag(tag)
|
||||
link_to tag, url_for_tag(tag), class: 'tag'
|
||||
'<span class="tag">' + tag + '</span>'
|
||||
end
|
||||
|
||||
class TagIndex
|
||||
|
|
Loading…
Reference in New Issue