summaryrefslogtreecommitdiff
path: root/themes/nojs/templates/home.html
blob: 74aeaa5c5a20f788c4324745e8025d2e797b05ac (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
{% extends "base.html" %}
{% block html_lang %}{{ page.lang }}{% endblock %}

{% block title %}{{ SITENAME }} - {{ page.title }}{%endblock%}

{% block head %}
  {{ super() }}

  {% import 'translations.html' as translations with context %}
  {% if translations.entry_hreflang(page) %}
    {{ translations.entry_hreflang(page) }}
  {% endif %}
{% endblock %}

{% block content %}
<section id="home" class="body">
  {% import 'translations.html' as translations with context %}
  {{ translations.translations_for(page) }}

  {{ page.content }}

</section>

<section id="home" class="body blog" style="border-top: 2px solid #CC0000; background: #CC0000;">
  <div>
    <h3>Blog <a href="#banner" title="Topo da Página">^</a></h3>
  </div>
  <div>
    {% for article in articles[:3] %}
    <article>
      <header> <h4><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h4> </header>
      <footer>
        <time class="published" datetime="{{ article.date.isoformat() }}"> {{ article.locale_date }} </time>
        <address class="vcard author">By
        {% for author in article.authors %}
        <a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
        {% endfor %}
        </address>
      </footer><!-- /.post-info -->
      <p> {{ article.summary }} </p><!-- /.entry-content -->
    </article>
    {% endfor %}
  </div><!-- /#posts-list -->
  <div style="text-align: center; padding-bottom: 15px;">
    <a href="/category/blog.html"><button class="button"><b>Leia mais...</b></button></a>
  </div>
</section>

{% endblock %}