Mercurial > libervia-templates
comparison sat_templates/templates/bulma/blog/item.html @ 265:ae365c036a58
bulma (blog/item): title are now clickable like in default theme
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 02 Aug 2020 22:30:31 +0200 |
parents | 80cfec962b1e |
children | ce2fd7a3911d |
comparison
equal
deleted
inserted
replaced
264:2c282c244a3e | 265:ae365c036a58 |
---|---|
23 </div> | 23 </div> |
24 {% endif %} | 24 {% endif %} |
25 {% endif %} | 25 {% endif %} |
26 <div class="media-content"> | 26 <div class="media-content"> |
27 {% set title = item.title_xhtml|safe or item.title%} | 27 {% set title = item.title_xhtml|safe or item.title%} |
28 {% set item_http_uri = items_http_uri.get(item.id) if items_http_uri is defined else none %} | |
28 {% if title %} | 29 {% if title %} |
29 <h4 class="title is-4">{{title}}</h1> | 30 <h4 class="title is-4"> |
31 {% if item_http_uri %} | |
32 <a href="{{item_http_uri}}" class="has-text-black">{{title}}</a> | |
33 {% else %} | |
34 {{title}} | |
35 {% endif %} | |
36 </h4> | |
30 {% endif %} | 37 {% endif %} |
31 <div class="content"> | 38 <div class="content"> |
32 <p class="subtitle is-6 has-text-grey"> | 39 <p class="subtitle is-6 has-text-grey"> |
33 {% set published = item.published|date_fmt(fmt=dates_format) %} | 40 {% set published = item.published|date_fmt(fmt=dates_format) %} |
34 <strong>{{item.author}}</strong> <small>{{published}}</small> | 41 <strong>{{item.author}}</strong> <small>{{published}}</small> |