summaryrefslogtreecommitdiff
path: root/themes/nojs/templates/article.html
diff options
context:
space:
mode:
authorNúbio C. Hott <bio@brigadadigital.tec.br>2026-04-27 21:43:40 -0300
committerNúbio C. Hott <bio@brigadadigital.tec.br>2026-04-27 21:43:40 -0300
commita0190a6ce6cdba78bb67b23c0233de0f32bd39f3 (patch)
tree4384af75256d19430be8178146beb5524ec1baa6 /themes/nojs/templates/article.html
downloadwebsite-a0190a6ce6cdba78bb67b23c0233de0f32bd39f3.tar.gz
website-a0190a6ce6cdba78bb67b23c0233de0f32bd39f3.tar.bz2
website-a0190a6ce6cdba78bb67b23c0233de0f32bd39f3.zip
Início do repositório
Diffstat (limited to 'themes/nojs/templates/article.html')
-rw-r--r--themes/nojs/templates/article.html67
1 files changed, 67 insertions, 0 deletions
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 %}