mirror of
https://github.com/c0de-archive/pelican-mg.git
synced 2024-12-22 08:22:40 +00:00
Fixing tags bullet joiner
This commit is contained in:
parent
e963d49d9b
commit
00defb07c0
@ -174,15 +174,16 @@ a {
|
|||||||
color: #FF6600; }
|
color: #FF6600; }
|
||||||
|
|
||||||
.mg-tags {
|
.mg-tags {
|
||||||
|
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
||||||
text-align: right; }
|
text-align: right; }
|
||||||
.mg-tag {
|
.mg-tag {
|
||||||
margin: 0 .5rem;
|
margin: 0 .5rem;
|
||||||
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
|
||||||
color: #FF6600; }
|
color: #FF6600; }
|
||||||
.mg-tag:hover {
|
.mg-tag:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #FF6600; }
|
color: #FF6600; }
|
||||||
.mg-tag > .uk-icon-tag {
|
.mg-tag > .uk-icon-tag {
|
||||||
|
display: inline; /* so that the icon stick with the tag label */
|
||||||
margin-right: .2rem; }
|
margin-right: .2rem; }
|
||||||
|
|
||||||
.mg-list-title {
|
.mg-list-title {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<article class="uk-article mg-fadeable" itemtype="http://schema.org/BlogPosting" itemscope="itemscope" itemprop="blogPost"
|
<article class="uk-article mg-fadeable" itemtype="http://schema.org/BlogPosting" itemscope="itemscope" itemprop="blogPost"
|
||||||
data-tags='{{ article.tags|map(attribute='name')|list|tojson }}'>
|
data-tags='{{ article.tags|map(attribute="name")|list|tojson }}'>
|
||||||
<div class="mg-article-short">
|
<div class="mg-article-short">
|
||||||
{% if article.featured_image %}
|
{% if article.featured_image %}
|
||||||
<img class="mg-article-image image-process-thumb" src="{{ article.featured_image }}" alt="">
|
<img class="mg-article-image image-process-thumb" src="{{ article.featured_image }}" alt="">
|
||||||
@ -19,4 +19,3 @@
|
|||||||
</div>
|
</div>
|
||||||
<hr class="uk-article-divider">
|
<hr class="uk-article-divider">
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
{% set bullet = joiner(" • ") %}
|
{% set bullet = joiner(" • ") %}
|
||||||
<div class="mg-tags" title="Tags">{% for tag in article.tags %}{{bullet()}}<a class="mg-tag" href="{{tag.url}}"><i class="uk-icon-tag"> {{tag.name}}</i></a>{% endfor %}</div>
|
<div class="mg-tags" title="Tags">
|
||||||
|
{% for tag in article.tags %}
|
||||||
|
{{bullet()}}
|
||||||
|
<a class="mg-tag" href="{{tag.url}}">
|
||||||
|
<i class="uk-icon-tag"></i>{{tag.name}}
|
||||||
|
</a>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user