Mercurial > libervia-templates
comparison default/blog/item.html @ 99:609c66552ba0
blog/item: handle new tags_http_uri variable to make tags clickable
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 21 Jan 2018 20:25:24 +0100 |
parents | 94b5806b9e2f |
children | 988a1c0e8419 |
comparison
equal
deleted
inserted
replaced
98:2dd56fd2e9c9 | 99:609c66552ba0 |
---|---|
57 {{- published -}} | 57 {{- published -}} |
58 {% endif %} | 58 {% endif %} |
59 </div> | 59 </div> |
60 {% if item.tags %} | 60 {% if item.tags %} |
61 <div class="labels"> | 61 <div class="labels"> |
62 {% for tag in item.tags %} | 62 {% if tags_http_uri is defined %} |
63 <span>{{tag}}</span> | 63 {% for tag in item.tags %} |
64 {% endfor %} | 64 <a href="{{tags_http_uri[tag]}}"><span>{{tag}}</span></a> |
65 {% endfor %} | |
66 {% else %} | |
67 {% for tag in item.tags %} | |
68 <span>{{tag}}</span> | |
69 {% endfor %} | |
70 {% endif %} | |
65 </div> | 71 </div> |
66 {% endif %} | 72 {% endif %} |
67 {% endblock metadata %} | 73 {% endblock metadata %} |
68 {% endblock header %} | 74 {% endblock header %} |
69 </header> | 75 </header> |