Skip to content

Commit 56a02b4

Browse files
authored
Cambios en la estrutura del html article.html (#84)
1 parent 0d7fa98 commit 56a02b4

2 files changed

Lines changed: 20 additions & 13 deletions

File tree

pelicanconf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
AUTHOR_FEED_ATOM = None
2828
AUTHOR_FEED_RSS = None
2929

30-
DATE_FORMATS = { "es": "%Y-%m-%d"}
30+
DATE_FORMATS = { "es": "%d-%m-%Y"}
3131

3232
MENUELEMENTS = {
3333
"home": {"title": "Home", "url": "index.html", "children": None},

pycltheme/templates/article.html

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,15 @@
2424
{% block content %}
2525
<section id="content" class="body">
2626
<header>
27-
<time class="published" datetime="{{ article.date.isoformat() }}">
28-
{{ article.locale_date }}
29-
</time>
3027
<h2 class="entry-title">{{ article.title }}</h2>
3128
{% if article.subtitle %}
3229
<h3 class="entry-subtitle">{{ article.subtitle }}</h3>
3330
{% endif %}
3431
{% import 'translations.html' as translations with context %}
3532
{{ translations.translations_for(article) }}
3633
</header>
37-
<footer class="post-info">
34+
35+
<section class="post-info">
3836
{% if article.modified %}
3937
<time class="modified" datetime="{{ article.modified.isoformat() }}">
4038
{{ article.locale_modified }}
@@ -43,36 +41,45 @@ <h3 class="entry-subtitle">{{ article.subtitle }}</h3>
4341
{% if article.authors %}
4442
<div class="text-right">
4543
<address class="vcard author">
46-
por {% for author in article.authors %}
44+
Por {% for author in article.authors %}
4745
<a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
4846
{% endfor %}
47+
<time datetime="{{ article.date.isoformat() }}">
48+
Publicado {{ article.locale_date }}
49+
</time>
4950
</address>
5051
</div>
5152
{% endif %}
5253
<hr/>
54+
</section>
55+
56+
<article class="entry-content">
57+
{{ article.content }}
58+
</article>
59+
<hr/>
60+
61+
</footer>
62+
5363
<div class="row justify-content-start">
5464
<div class="col-4">
5565
{% if article.category %}
5666
<div class="category">
57-
categoría: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
67+
Categoría: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
5868
</div>
5969
{% endif %}
6070
</div>
6171
<div class="col-4">
6272
{% if article.tags %}
6373
<div class="tags">
64-
tags:
74+
Tags:
6575
{% for tag in article.tags %}
6676
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
6777
{% endfor %}
6878
</div>
6979
{% endif %}
7080
</div>
7181
</div>
72-
<hr/>
73-
</footer><!-- /.post-info -->
74-
<div class="entry-content">
75-
{{ article.content }}
76-
</div><!-- /.entry-content -->
82+
</footer>
83+
7784
</section>
7885
{% endblock %}

0 commit comments

Comments
 (0)