aboutsummaryrefslogtreecommitdiffstats
path: root/cl-theme/templates/base_info.html
blob: 568dabb96ee5045dc6f5ae92b590d59e20025040 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!-- post footer -->
<footer class="card-content-footer">
    <span class="soumaicon">
        <svg>
            <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#calendar" />
        </svg>
    </span>
    {% set año = article.date|strftime('%Y') %}
    {% set mes = article.date|strftime('%m') %}
    {% set nombre_mes = article.date|strftime('%B') %}
    <time class="entry-date published" itemprop="datePublished"
          datetime="{{ article.date.isoformat() }}">
        <small>
            {{ article.date|strftime('%a %-d') }}
            <a href="{{ SITEURL }}/archives/{{ año }}/{{ mes }}/"
               title="{% trans %}Artículos de {{ nombre_mes }} de {{ año }}{% endtrans %}">
                {{ nombre_mes }}
            </a>
            <a href="{{ SITEURL }}/archives/{{ año }}/"
               title="{% trans %}Artículos de {{ año }}{% endtrans %}">{{ año }}
            </a>
        </small>
    </time>

    {% if article.modified %}
        <p>
            <span class="soumaicon">
                <svg>
                    <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#calendar"></use>
                </svg>
            </span>
            <span class="edit-link" title="{{ _('Fecha de modificación') }}">
                <small class="screen-reader-text">{{ _('Modificado el') }} </small>
                <time class="updated" datetime="{{ article.modified.isoformat() }}" itemprop="dateModified">
                    <small>{{ article.locale_modified }}</small>
                </time>
            </span>
        </p>
    {% endif %}

    {% if not HIDE_AUTHORS and article.authors %}
        {% for author in article.authors %}
            <p itemprop='author' itemscope itemtype="https://schema.org/Person">
                <span class="soumaicon">
                    <svg>
                        <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#user" />
                    </svg>
                </span>
                <small itemprop="name">
                    <a href="{{ SITEURL }}/{{ author.url }}" itemprop="url"
                       title="{% trans %}Autor del artículo{% endtrans %}">{{ author }}</a>{% if not loop.last %}, {% endif %}
                </small>
            </p>
        {% endfor %}
    {% endif %}

    {% import 'translations.html' as translations with context %}
    {% if translations.translations_for(article) %}
        <span class="soumaicon">
            <svg>
                <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#translate" />
            </svg>
        </span>
        <small>
            {{ translations.translations_for(article) }}
        </small>
    {% else %}
    {% endif %}

</footer>
<!-- end of post footer -->
<!-- /.post-info -->