Skip to content

Commit

Permalink
Merge pull request #446 from pyladies-brazil/ajusta_template
Browse files Browse the repository at this point in the history
compatibiliza template com pelican 4.8
  • Loading branch information
giovana-morais authored Oct 16, 2023
2 parents 4dc4cc3 + c1ade22 commit 16fc544
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions themes/default/templates/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,21 @@
<div class="small-12 columns">
<div class="notepad-post-meta-simple">
<h1>{{ article.title }}</h1>
<p>by <a target="blank" href="{{article.author_url}}">{{ article.author }}</a> &#8212; {% set tagsize = article.tags.size %}{% if tagsize != 0 %}on {% for tag in article.tags %}<a href="{{ SITEURL }}/tags/index.html#{{ tag }}" data-toggle="tooltip" title="Posts tagged with {{ tag }}" rel="tag">{{ tag }}</a>{% if not loop.last %}&nbsp;&comma;&nbsp;{% endif %}{% endfor %}{% endif %} <strong><time datetime="{{ article.date.isoformat() }}">{{ article.date.strftime("%d/%b/%Y") }}</time></strong></p>
<p>by <a target="blank" href="{{article.author_url}}">{{ article.author }}</a> &#8212;
<!-- TODO: consertar isso aqui e remover esse primeiro if -->
{% if article.tags %}
{% set tagsize = article.tags.size %}
{% if tagsize != 0 %}
on
{% for tag in article.tags %}
<a href="{{ SITEURL }}/tags/index.html#{{ tag }}" data-toggle="tooltip" title="Posts tagged with {{ tag }}" rel="tag">{{ tag }}</a>
{% if not loop.last %}
&nbsp;&comma;&nbsp;
{% endif %}
{% endfor %}
{% endif %}
<strong><time datetime="{{ article.date.isoformat() }}">{{ article.date.strftime("%d/%b/%Y") }}</time></strong></p>
{% endif %}
</div>
</div>
</div>
Expand All @@ -51,4 +65,4 @@ <h1 class="notepad-comments-header">Comments</h1>
</section>
{% endif %}
</article>
{% endblock %}
{% endblock %}

0 comments on commit 16fc544

Please sign in to comment.