mirror of
https://github.com/jimeh/jimeh.me-v3.0.git
synced 2026-02-19 05:46:40 +00:00
fixed an issue with tag pages
This commit is contained in:
3
Rakefile
3
Rakefile
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user