Skip to content

Commit

Permalink
Merge pull request #15 from lsdlab/master
Browse files Browse the repository at this point in the history
fix template tag.html bug
  • Loading branch information
Andrew-liu committed Dec 11, 2015
2 parents 96f14f7 + c2b1b0b commit c39ac86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion my_blog/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
url(r'^(?P<id>\d+)/$', 'article.views.detail', name='detail'),
url(r'^archives/$', 'article.views.archives', name = 'archives'),
url(r'^aboutme/$', 'article.views.about_me', name = 'about_me'),
url(r'^tag(?P<tag>\w+)/$', 'article.views.search_tag', name = 'search_tag'),
url(r'^tag/(?P<tag>\w+)/$', 'article.views.search_tag', name = 'search_tag'),
url(r'^search/$','article.views.blog_search', name = 'search'),
url(r'^feed/$', RSSFeed(), name = "RSS"),
)
Expand Down
5 changes: 2 additions & 3 deletions templates/tag.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
{% for post in post_list %}
<h2 class="blog-post-title"><a href="{% url 'detail' id=post.id %}">{{ post.title }}</a></h2>
<p class="blog-post-meta">
发布:<a class="btn btn-xs btn-info">{{ post.publish_time | date:'Y/m/d' }}</a>&nbsp&nbsp
更新:<a class="btn btn-xs btn-info">{{ post.update_time | date:'Y/m/d' }}</a>&nbsp&nbsp
目录:<a class="btn btn-xs btn-info" href="{% url 'category' post.category %}">{{ post.category | title}}</a>&nbsp&nbsp
发布:<a class="btn btn-xs btn-info">{{ post.date_time | date:'Y/m/d' }}</a>&nbsp&nbsp
目录:<a class="btn btn-xs btn-info" href="{% url 'search_tag' post.category %}">{{ post.category | title}}</a>&nbsp&nbsp
标签:
{% for tag in post.tag.all %}
<a class="btn btn-xs btn-info" href="">{{ tag }}</a></p>
Expand Down

0 comments on commit c39ac86

Please sign in to comment.