|
Revision 32302, 1.3 kB
(checked in by everes, 4 years ago)
|
|
html出力時にkeywordとかtitleとかが素敵に出るように調整した。
|
| Line | |
|---|
| 1 | {% extends 'everes_core/base.html' %} |
|---|
| 2 | {% block keyword %}{{ block.super }}{% for obj in object_list %}{{ obj.title }},{% for t in obj.tags.all %}{{ t.name }}{% if not forloop.last %},{% endif %}{% endfor %}{% endfor %}{% if obj.tags.all %},{% endif %}{% endblock %} |
|---|
| 3 | |
|---|
| 4 | {% block title %}{% spaceless %} |
|---|
| 5 | {% if month %} |
|---|
| 6 | {{ block.super }} - Archives {{ month.year }}/{{ month.month }} |
|---|
| 7 | {% endif %} |
|---|
| 8 | {% if day %} |
|---|
| 9 | {{ block.super }} - Archives {{ day.year }}/{{ day.month }}/{{ day.day }} |
|---|
| 10 | {% endif %} |
|---|
| 11 | {% if filtered_tag %} |
|---|
| 12 | {{ block.super }} - Tagged {{ filtered_tag }} |
|---|
| 13 | {% endif %} |
|---|
| 14 | {% endspaceless %}{% endblock %} |
|---|
| 15 | |
|---|
| 16 | {% block additional_link %} |
|---|
| 17 | {% if filtered_app %}<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://{{ current_site.domain }}{% url everes_feed filtered_app %}" />{% endif %} |
|---|
| 18 | {% if filtered_tag %}<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://{{ current_site.domain }}{% url everes_tag_feed "all",filtered_tag %}" />{% endif %} |
|---|
| 19 | {% if filtered_app and filtered_tag %}<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://{{ current_site.domain }}{% url everes_tag_feed app=filtered_app,tag=filtered_tag %}" />{% endif %} |
|---|
| 20 | {% endblock %} |
|---|
| 21 | |
|---|
| 22 | {% block contents %} |
|---|
| 23 | {% for obj in object_list %} |
|---|
| 24 | {{ obj.render_as_list }} |
|---|
| 25 | {% endfor %} |
|---|
| 26 | {% endblock contents %} |
|---|