fixed an issue with tag pages

This commit is contained in:
2010-02-24 13:15:29 +02:00
parent 4db9a4af64
commit 33d6459ed8
3 changed files with 5 additions and 7 deletions

View File

@@ -63,7 +63,8 @@ namespace :build do
FileUtils.mkdir_p(TAGS_DIR)
tags = @blog.categories
tags.each do |tag, posts|
File.open(File.join(TAGS_DIR, tag + ".html"), "w") do |file|
FileUtils.mkdir_p(File.join(TAGS_DIR, tag))
File.open(File.join(TAGS_DIR, tag, "index.html"), "w") do |file|
generate_index posts, file, "title" => "#{tag}"
end
end

View File

@@ -7,7 +7,7 @@
<a href="/blog{{ page.url }}">{{ page.title }}</a>
<div class="post-title-sub">
by Jim Myhrberg tags:
{% for tag in page.categories %} <a href="/blog/tag/{{tag}}" rel="tag"><i class="hash">#</i>{{tag}}</a>{% if forloop.last != true %},{% endif %}{% endfor %}
{% for tag in page.categories %} <a href="/blog/tag/{{tag}}/" rel="tag"><i class="hash">#</i>{{tag}}</a>{% if forloop.last != true %},{% endif %}{% endfor %}
</div>
</h1>

View File

@@ -23,7 +23,7 @@
{{ page.title }}
<div class="post-title-sub">
by Jim Myhrberg tags:
{% for tag in page.categories %} <a href="/blog/tag/{{tag}}" rel="tag"><i class="hash">#</i>{{tag}}</a>{% if forloop.last != true %},{% endif %}{% endfor %}
{% for tag in page.categories %} <a href="/blog/tag/{{tag}}/" rel="tag"><i class="hash">#</i>{{tag}}</a>{% if forloop.last != true %},{% endif %}{% endfor %}
</div>
</h1>
@@ -39,10 +39,7 @@
{% include sidebar.html %}
<div class="post-paginator">
<a href="/blog/archive/">archive</a><br />
<a href="http://feeds.feedburner.com/jimeh">rss</a>
</div>
{% include paginator-empty.html %}
</div>