summaryrefslogtreecommitdiff
path: root/themes/nojs/templates
diff options
context:
space:
mode:
Diffstat (limited to 'themes/nojs/templates')
-rw-r--r--themes/nojs/templates/archives.html14
-rw-r--r--themes/nojs/templates/article.html67
-rw-r--r--themes/nojs/templates/author.html8
-rw-r--r--themes/nojs/templates/authors.html12
-rw-r--r--themes/nojs/templates/base.html69
-rw-r--r--themes/nojs/templates/categories.html12
-rw-r--r--themes/nojs/templates/category.html8
-rw-r--r--themes/nojs/templates/gosquared.html14
-rw-r--r--themes/nojs/templates/home.html50
-rw-r--r--themes/nojs/templates/home.html~50
-rw-r--r--themes/nojs/templates/index.html28
-rw-r--r--themes/nojs/templates/page.html29
-rw-r--r--themes/nojs/templates/pagination.html11
-rw-r--r--themes/nojs/templates/period_archives.html14
-rw-r--r--themes/nojs/templates/tag.html7
-rw-r--r--themes/nojs/templates/tags.html12
-rw-r--r--themes/nojs/templates/translations.html16
17 files changed, 421 insertions, 0 deletions
diff --git a/themes/nojs/templates/archives.html b/themes/nojs/templates/archives.html
new file mode 100644
index 0000000..cd12950
--- /dev/null
+++ b/themes/nojs/templates/archives.html
@@ -0,0 +1,14 @@
+{% extends "base.html" %}
+
+{% block title %}{{ SITENAME }} - Archives{% endblock %}
+
+{% block content %}
+<h1>Archives for {{ SITENAME }}</h1>
+
+<dl>
+{% for article in dates %}
+ <dt>{{ article.locale_date }}</dt>
+ <dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
+{% endfor %}
+</dl>
+{% endblock %}
diff --git a/themes/nojs/templates/article.html b/themes/nojs/templates/article.html
new file mode 100644
index 0000000..5a1c093
--- /dev/null
+++ b/themes/nojs/templates/article.html
@@ -0,0 +1,67 @@
+{% extends "base.html" %}
+{% block html_lang %}{{ article.lang }}{% endblock %}
+
+{% block title %}{{ SITENAME }} - {{ article.title }}{% endblock %}
+
+{% block head %}
+ {{ super() }}
+
+ {% import 'translations.html' as translations with context %}
+ {% if translations.entry_hreflang(article) %}
+ {{ translations.entry_hreflang(article) }}
+ {% endif %}
+
+ {% if article.description %}
+ <meta name="description" content="{{article.description}}" />
+ {% endif %}
+
+ {% for tag in article.tags %}
+ <meta name="tags" content="{{tag}}" />
+ {% endfor %}
+
+{% endblock %}
+
+{% block content %}
+<section id="content" class="body">
+ <header>
+ <h2 class="entry-title">
+ <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
+ title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
+ {% import 'translations.html' as translations with context %}
+ {{ translations.translations_for(article) }}
+ </header>
+ <footer class="post-info">
+ <time class="published" datetime="{{ article.date.isoformat() }}">
+ {{ article.locale_date }}
+ </time>
+ {% if article.modified %}
+ <time class="modified" datetime="{{ article.modified.isoformat() }}">
+ {{ article.locale_modified }}
+ </time>
+ {% endif %}
+ {% if article.authors %}
+ <address class="vcard author">
+ By {% for author in article.authors %}
+ <a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
+ {% endfor %}
+ </address>
+ {% endif %}
+ {% if article.category %}
+ <div class="category">
+ Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
+ </div>
+ {% endif %}
+ {% if article.tags %}
+ <div class="tags">
+ Tags:
+ {% for tag in article.tags %}
+ <a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
+ {% endfor %}
+ </div>
+ {% endif %}
+ </footer><!-- /.post-info -->
+ <div class="entry-content">
+ {{ article.content }}
+ </div><!-- /.entry-content -->
+</section>
+{% endblock %}
diff --git a/themes/nojs/templates/author.html b/themes/nojs/templates/author.html
new file mode 100644
index 0000000..a190194
--- /dev/null
+++ b/themes/nojs/templates/author.html
@@ -0,0 +1,8 @@
+{% extends "index.html" %}
+
+{% block title %}{{ SITENAME }} - Articles by {{ author }}{% endblock %}
+
+{% block content_title %}
+<h2>Articles by {{ author }}</h2>
+{% endblock %}
+
diff --git a/themes/nojs/templates/authors.html b/themes/nojs/templates/authors.html
new file mode 100644
index 0000000..9aee5db
--- /dev/null
+++ b/themes/nojs/templates/authors.html
@@ -0,0 +1,12 @@
+{% extends "base.html" %}
+
+{% block title %}{{ SITENAME }} - Authors{% endblock %}
+
+{% block content %}
+ <h1>Authors on {{ SITENAME }}</h1>
+ <ul>
+ {% for author, articles in authors|sort %}
+ <li><a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> ({{ articles|count }})</li>
+ {% endfor %}
+ </ul>
+{% endblock %}
diff --git a/themes/nojs/templates/base.html b/themes/nojs/templates/base.html
new file mode 100644
index 0000000..75cb3da
--- /dev/null
+++ b/themes/nojs/templates/base.html
@@ -0,0 +1,69 @@
+<!DOCTYPE html>
+<html lang="{% block html_lang %}{{ DEFAULT_LANG }}{% endblock html_lang %}">
+<head>
+ {% block head %}
+ <title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
+ <meta charset="utf-8" />
+ <link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/{{ CSS_FILE }}" />
+ {% if FEED_ALL_ATOM %}
+ <link href="{{ FEED_DOMAIN }}/{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Full Atom Feed" />
+ {% endif %}
+ {% if FEED_ALL_RSS %}
+ <link href="{{ FEED_DOMAIN }}/{% if FEED_ALL_RSS_URL %}{{ FEED_ALL_RSS_URL }}{% else %}{{ FEED_ALL_RSS }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Full RSS Feed" />
+ {% endif %}
+ {% if FEED_ATOM %}
+ <link href="{{ FEED_DOMAIN }}/{%if FEED_ATOM_URL %}{{ FEED_ATOM_URL }}{% else %}{{ FEED_ATOM }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" />
+ {% endif %}
+ {% if FEED_RSS %}
+ <link href="{{ FEED_DOMAIN }}/{% if FEED_RSS_URL %}{{ FEED_RSS_URL }}{% else %}{{ FEED_RSS }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
+ {% endif %}
+ {% if CATEGORY_FEED_ATOM and category %}
+ <link href="{{ FEED_DOMAIN }}/{% if CATEGORY_FEED_ATOM_URL %}{{ CATEGORY_FEED_ATOM_URL|format(category.slug) }}{% else %}{{ CATEGORY_FEED_ATOM|format(category.slug) }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Categories Atom Feed" />
+ {% endif %}
+ {% if CATEGORY_FEED_RSS and category %}
+ <link href="{{ FEED_DOMAIN }}/{% if CATEGORY_FEED_RSS_URL %}{{ CATEGORY_FEED_RSS_URL|format(category.slug) }}{% else %}{{ CATEGORY_FEED_RSS|format(category.slug) }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Categories RSS Feed" />
+ {% endif %}
+ {% if TAG_FEED_ATOM and tag %}
+ <link href="{{ FEED_DOMAIN }}/{% if TAG_FEED_ATOM_URL %}{{ TAG_FEED_ATOM_URL|format(tag.slug) }}{% else %}{{ TAG_FEED_ATOM|format(tag.slug) }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Tags Atom Feed" />
+ {% endif %}
+ {% if TAG_FEED_RSS and tag %}
+ <link href="{{ FEED_DOMAIN }}/{% if TAG_FEED_RSS_URL %}{{ TAG_FEED_RSS_URL|format(tag.slug) }}{% else %}{{ TAG_FEED_RSS|format(tag.slug) }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Tags RSS Feed" />
+ {% endif %}
+ {% endblock head %}
+</head>
+
+<body id="index" class="home">
+ <header id="banner">
+ <a name="banner" href="{{ SITEURL }}/"><img src="{{ static }}/images/brigadadigital-banner.png" title="Início" alt="Logo Brigada Digital"/></a>
+ </header><!-- /#banner -->
+ <nav id="menu" class="body"><ul>
+ {% for title, link in MENUITEMS %}
+ <li><a href="{{ link }}">{{ title }}</a></li>
+ {% endfor %}
+ {% if DISPLAY_PAGES_ON_MENU %}
+ {% for p in pages %}
+ <li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
+ {% endfor %}
+ {% endif %}
+ {% if DISPLAY_CATEGORIES_ON_MENU %}
+ {% for cat, null in categories %}
+ <li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
+ {% endfor %}
+ {% endif %}
+ </ul></nav><!-- /#menu -->
+ {% block content %}
+ {% endblock %}
+ <footer id="contentinfo" class="body">
+ <a href="{{ SITEURL }}/"><img src="{{ static }}/images/brigadadigital-footer.png" title="Início" alt="Logo Brigada Digital"/></a>
+ <p>Associação sem fins lucrativos, Belo Horizonte, MG, CNPJ 64.479.229/0001-33.</p>
+ <p style="padding: 10px;">Site livre de cookies e javascript, sob a licença <a href="https://creativecommons.org/licenses/by-nd/4.0/deed.pt-br" target="_blank" title="Saiba mais sobre a licença">CC BY-ND 4.0</a>.</p>
+ <address id="about" class="vcard body">
+ Desenvolvido em <a href="http://getpelican.com/" target="_blank" title="Site do projeto Pelican">Pelican</a>,
+ que tira proveito de <a href="http://python.org" target="_blank" title="site do projeto Python">Python</a>.
+ </address><!-- /#about -->
+ {% if FEED_ALL_ATOM %}
+ <p style="padding: 10px;"><a href="{{ FEED_DOMAIN }}/{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}" type="application/atom+xml" target="_blank" rel="alternate" title="Feed completo em Atom">Feed/Atom</a>.</p>
+ {% endif %}
+ </footer><!-- /#contentinfo -->
+</body>
+</html>
diff --git a/themes/nojs/templates/categories.html b/themes/nojs/templates/categories.html
new file mode 100644
index 0000000..7999de4
--- /dev/null
+++ b/themes/nojs/templates/categories.html
@@ -0,0 +1,12 @@
+{% extends "base.html" %}
+
+{% block title %}{{ SITENAME }} - Categories{% endblock %}
+
+{% block content %}
+ <h1>Categories on {{ SITENAME }}</h1>
+ <ul>
+ {% for category, articles in categories|sort %}
+ <li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a> ({{ articles|count }})</li>
+ {% endfor %}
+ </ul>
+{% endblock %}
diff --git a/themes/nojs/templates/category.html b/themes/nojs/templates/category.html
new file mode 100644
index 0000000..a9a105d
--- /dev/null
+++ b/themes/nojs/templates/category.html
@@ -0,0 +1,8 @@
+{% extends "index.html" %}
+
+{% block title %}{{ SITENAME }} - {{ category }} category{% endblock %}
+
+{% block content_title %}
+<h2>{{ category }}</h2>
+{% endblock %}
+
diff --git a/themes/nojs/templates/gosquared.html b/themes/nojs/templates/gosquared.html
new file mode 100644
index 0000000..49ccbbe
--- /dev/null
+++ b/themes/nojs/templates/gosquared.html
@@ -0,0 +1,14 @@
+{% if GOSQUARED_SITENAME %}
+<script type="text/javascript">
+ var GoSquared={};
+ GoSquared.acct = "{{ GOSQUARED_SITENAME }}";
+ (function(w){
+ function gs(){
+ w._gstc_lt=+(new Date); var d=document;
+ var g = d.createElement("script"); g.type = "text/javascript"; g.async = true; g.src = "https://d1l6p2sc9645hc.cloudfront.net/tracker.js";
+ var s = d.getElementsByTagName("script")[0]; s.parentNode.insertBefore(g, s);
+ }
+ w.addEventListener?w.addEventListener("load",gs,false):w.attachEvent("onload",gs);
+ })(window);
+</script>
+{% endif %}
diff --git a/themes/nojs/templates/home.html b/themes/nojs/templates/home.html
new file mode 100644
index 0000000..74aeaa5
--- /dev/null
+++ b/themes/nojs/templates/home.html
@@ -0,0 +1,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 %}
+
diff --git a/themes/nojs/templates/home.html~ b/themes/nojs/templates/home.html~
new file mode 100644
index 0000000..bc13ba1
--- /dev/null
+++ b/themes/nojs/templates/home.html~
@@ -0,0 +1,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" style="color: background: #CC0000;">
+ <div style="background: #CC0000;">
+ <h2>Blog</h2>
+ </div>
+ <ol id="content" class="container" style="background: #CC0000;">
+ {% for article in articles[:4] %}
+ <li><article class="features">
+ <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></li>
+ {% endfor %}
+ </ol><!-- /#posts-list -->
+ <div style="background: #CC0000; text-align: center; padding-bottom: 15px;">
+ <a href="/category/blog.html"><button class="button"><b>Leia mais...</b></button></a>
+ </div>
+</section>
+
+{% endblock %}
+
diff --git a/themes/nojs/templates/index.html b/themes/nojs/templates/index.html
new file mode 100644
index 0000000..d678ba2
--- /dev/null
+++ b/themes/nojs/templates/index.html
@@ -0,0 +1,28 @@
+{% extends "base.html" %}
+{% block content %}
+<section id="content">
+{% block content_title %}
+<h2>Artigos</h2>
+{% endblock %}
+
+<ol id="post-list">
+{% for article in articles_page.object_list %}
+ <li><article class="hentry">
+ <header> <h2 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> </header>
+ <footer class="post-info">
+ <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 -->
+ <div class="entry-content"> {{ article.summary }} </div><!-- /.entry-content -->
+ </article></li>
+{% endfor %}
+</ol><!-- /#posts-list -->
+{% if articles_page.has_other_pages() %}
+ {% include 'pagination.html' %}
+{% endif %}
+</section><!-- /#content -->
+{% endblock content %}
diff --git a/themes/nojs/templates/page.html b/themes/nojs/templates/page.html
new file mode 100644
index 0000000..4570d47
--- /dev/null
+++ b/themes/nojs/templates/page.html
@@ -0,0 +1,29 @@
+{% 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="content" class="body">
+ <h2>{{ page.title }}</h2>
+ {% import 'translations.html' as translations with context %}
+ {{ translations.translations_for(page) }}
+
+ {{ page.content }}
+
+ {% if page.modified %}
+ <p>
+ Last updated: {{ page.locale_modified }}
+ </p>
+ {% endif %}
+</section>
+{% endblock %}
diff --git a/themes/nojs/templates/pagination.html b/themes/nojs/templates/pagination.html
new file mode 100644
index 0000000..4219a5c
--- /dev/null
+++ b/themes/nojs/templates/pagination.html
@@ -0,0 +1,11 @@
+{% if DEFAULT_PAGINATION %}
+<p class="paginator">
+ {% if articles_page.has_previous() %}
+ <a href="{{ SITEURL }}/{{ articles_previous_page.url }}">&laquo;</a>
+ {% endif %}
+ Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}
+ {% if articles_page.has_next() %}
+ <a href="{{ SITEURL }}/{{ articles_next_page.url }}">&raquo;</a>
+ {% endif %}
+</p>
+{% endif %}
diff --git a/themes/nojs/templates/period_archives.html b/themes/nojs/templates/period_archives.html
new file mode 100644
index 0000000..e1ddf62
--- /dev/null
+++ b/themes/nojs/templates/period_archives.html
@@ -0,0 +1,14 @@
+{% extends "base.html" %}
+
+{% block title %}{{ SITENAME }} - {{ period | reverse | join(' ') }} archives{% endblock %}
+
+{% block content %}
+<h1>Archives for {{ period | reverse | join(' ') }}</h1>
+
+<dl>
+{% for article in dates %}
+ <dt>{{ article.locale_date }}</dt>
+ <dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
+{% endfor %}
+</dl>
+{% endblock %}
diff --git a/themes/nojs/templates/tag.html b/themes/nojs/templates/tag.html
new file mode 100644
index 0000000..9c95803
--- /dev/null
+++ b/themes/nojs/templates/tag.html
@@ -0,0 +1,7 @@
+{% extends "index.html" %}
+
+{% block title %}{{ SITENAME }} - {{ tag }} tag{% endblock %}
+
+{% block content_title %}
+<h2>Articles tagged with {{ tag }}</h2>
+{% endblock %}
diff --git a/themes/nojs/templates/tags.html b/themes/nojs/templates/tags.html
new file mode 100644
index 0000000..b90b0ac
--- /dev/null
+++ b/themes/nojs/templates/tags.html
@@ -0,0 +1,12 @@
+{% extends "base.html" %}
+
+{% block title %}{{ SITENAME }} - Tags{% endblock %}
+
+{% block content %}
+ <h1>Tags for {{ SITENAME }}</h1>
+ <ul>
+ {% for tag, articles in tags|sort %}
+ <li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> ({{ articles|count }})</li>
+ {% endfor %}
+ </ul>
+{% endblock %}
diff --git a/themes/nojs/templates/translations.html b/themes/nojs/templates/translations.html
new file mode 100644
index 0000000..f0e2478
--- /dev/null
+++ b/themes/nojs/templates/translations.html
@@ -0,0 +1,16 @@
+{% macro translations_for(article) %}
+{% if article.translations %}
+Translations:
+{% for translation in article.translations %}
+<a href="{{ SITEURL }}/{{ translation.url }}" hreflang="{{ translation.lang }}">{{ translation.lang }}</a>
+{% endfor %}
+{% endif %}
+{% endmacro %}
+
+{% macro entry_hreflang(entry) %}
+{% if entry.translations %}
+ {% for translation in entry.translations %}
+ <link rel="alternate" hreflang="{{ translation.lang }}" href="{{ SITEURL }}/{{ translation.url }}">
+ {% endfor %}
+{% endif %}
+{% endmacro %}