summaryrefslogtreecommitdiff
path: root/themes/elenq/templates
diff options
context:
space:
mode:
Diffstat (limited to 'themes/elenq/templates')
-rw-r--r--themes/elenq/templates/archives.html11
-rw-r--r--themes/elenq/templates/article.html44
-rw-r--r--themes/elenq/templates/author.html7
-rw-r--r--themes/elenq/templates/authors.html13
-rw-r--r--themes/elenq/templates/base.html81
-rw-r--r--themes/elenq/templates/categories.html8
-rw-r--r--themes/elenq/templates/category.html5
-rw-r--r--themes/elenq/templates/index.html28
-rw-r--r--themes/elenq/templates/page.html15
-rw-r--r--themes/elenq/templates/pagination.html11
-rw-r--r--themes/elenq/templates/period_archives.html11
-rw-r--r--themes/elenq/templates/tag.html0
-rw-r--r--themes/elenq/templates/tags.html10
-rw-r--r--themes/elenq/templates/translations.html9
14 files changed, 253 insertions, 0 deletions
diff --git a/themes/elenq/templates/archives.html b/themes/elenq/templates/archives.html
new file mode 100644
index 0000000..050f268
--- /dev/null
+++ b/themes/elenq/templates/archives.html
@@ -0,0 +1,11 @@
+{% extends "base.html" %}
+{% 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/elenq/templates/article.html b/themes/elenq/templates/article.html
new file mode 100644
index 0000000..a2b5635
--- /dev/null
+++ b/themes/elenq/templates/article.html
@@ -0,0 +1,44 @@
+{% extends "base.html" %}
+{% block head %}
+ {{ super() }}
+ {% 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 class="text-nodeco-black" 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 %}
+ </footer><!-- /.post-info -->
+ <div class="entry-content">
+ {{ article.content }}
+ </div><!-- /.entry-content -->
+</section>
+{% endblock %}
diff --git a/themes/elenq/templates/author.html b/themes/elenq/templates/author.html
new file mode 100644
index 0000000..e9f7870
--- /dev/null
+++ b/themes/elenq/templates/author.html
@@ -0,0 +1,7 @@
+{% extends "index.html" %}
+
+{% block title %}{{ SITENAME }} - Articles by {{ author }}{% endblock %}
+{% block content_title %}
+<h2>Articles by {{ author }}</h2>
+{% endblock %}
+
diff --git a/themes/elenq/templates/authors.html b/themes/elenq/templates/authors.html
new file mode 100644
index 0000000..4914904
--- /dev/null
+++ b/themes/elenq/templates/authors.html
@@ -0,0 +1,13 @@
+{% 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/elenq/templates/base.html b/themes/elenq/templates/base.html
new file mode 100644
index 0000000..d591ee5
--- /dev/null
+++ b/themes/elenq/templates/base.html
@@ -0,0 +1,81 @@
+<!DOCTYPE html>
+<html lang="{{ DEFAULT_LANG }}">
+ <head>
+ {% block head %}
+ <title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
+ <meta charset="utf-8" />
+ {% 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 %}
+
+ <link rel="stylesheet" href="/theme/css/normalize.css">
+ <link rel="stylesheet" href="/theme/css/skeleton.css">
+ <link rel="stylesheet" href="/theme/css/style.css">
+ <link rel="stylesheet" href="/theme/css/fonts.css">
+ </head>
+
+ <body id="index" class="home">
+ <header class="mainheader">
+ <div class="container">
+ <nav id="menu" class="navbar">
+ <div class="navbar-left">
+ {% for title, link in MENUITEMS %}
+ <a class="navbar-link link-left" href="{{ link }}">{{ title }}</a>
+ {% endfor %}
+ {% if DISPLAY_CATEGORIES_ON_MENU -%}
+ {% for cat, null in categories %}
+ <a class="navbar-link link-left {% if cat == category %}active{% endif %}" href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a>
+ {% endfor %}
+ {% endif %}
+ </div>
+ <hr class="short navbar-separator"/>
+ <div class="navbar-right">
+ {% if DISPLAY_PAGES_ON_MENU -%}
+ {% for pg in pages %}
+ <a class="navbar-link link-right {% if pg == page %}active{% endif %}" href="{{ SITEURL }}/{{ pg.url }}">{{ pg.title }}</a>
+ {% endfor %}
+ {% endif %}
+ </div>
+ </nav>
+ </div>
+ </header>
+ <div class="content container">
+ <h1 class="main-title"><a class="text-nodeco-black" href="{{ SITEURL }}/">{{ SITENAME }}{% if SITESUBTITLE %}:<br/> {{ SITESUBTITLE }}{% endif %}</a></h1>
+ {% block content %}
+ {% endblock content %}
+ </div>
+ <footer id="contentinfo" class="bar-bottom">
+ <address id="about" class="container text-center">
+ Supported by:
+ </address><!-- /#about -->
+
+ <div class="container text-center">
+ <a href="https://elenq.tech">
+ <img class="footer-logo"src="/theme/img/ElenQTechLogoSimple.png" alt="ElenQ Technology">
+ </a>
+ </div>
+ </footer><!-- /#contentinfo -->
+ </body>
+</html>
diff --git a/themes/elenq/templates/categories.html b/themes/elenq/templates/categories.html
new file mode 100644
index 0000000..e29be0c
--- /dev/null
+++ b/themes/elenq/templates/categories.html
@@ -0,0 +1,8 @@
+{% extends "base.html" %}
+{% block content %}
+<ul>
+{% for category, articles in categories %}
+ <li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a></li>
+{% endfor %}
+</ul>
+{% endblock %}
diff --git a/themes/elenq/templates/category.html b/themes/elenq/templates/category.html
new file mode 100644
index 0000000..4e6fd24
--- /dev/null
+++ b/themes/elenq/templates/category.html
@@ -0,0 +1,5 @@
+{% extends "index.html" %}
+{% block content_title %}
+<h2>Articles in the {{ category }} category</h2>
+{% endblock %}
+
diff --git a/themes/elenq/templates/index.html b/themes/elenq/templates/index.html
new file mode 100644
index 0000000..169e661
--- /dev/null
+++ b/themes/elenq/templates/index.html
@@ -0,0 +1,28 @@
+{% extends "base.html" %}
+{% block content %}
+<section id="content">
+{% block content_title %}
+<h2>Home</h2>
+{% endblock %}
+
+<ol id="post-list">
+{% for article in articles_page.object_list %}
+ <li><article class="hentry">
+ <header> <h3 class="entry-title"><a class="text-nodeco-black" href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h3> </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/elenq/templates/page.html b/themes/elenq/templates/page.html
new file mode 100644
index 0000000..5ceb779
--- /dev/null
+++ b/themes/elenq/templates/page.html
@@ -0,0 +1,15 @@
+{% extends "base.html" %}
+{% block title %}{{ page.title }}{%endblock%}
+{% block content %}
+ <h1>{{ page.title }}</h1>
+ {% import 'translations.html' as translations with context %}
+ {{ translations.translations_for(page) }}
+
+ {{ page.content }}
+
+ {% if page.modified %}
+ <p>
+ Last updated: {{ page.locale_modified }}
+ </p>
+ {% endif %}
+{% endblock %}
diff --git a/themes/elenq/templates/pagination.html b/themes/elenq/templates/pagination.html
new file mode 100644
index 0000000..4219a5c
--- /dev/null
+++ b/themes/elenq/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/elenq/templates/period_archives.html b/themes/elenq/templates/period_archives.html
new file mode 100644
index 0000000..d930dbb
--- /dev/null
+++ b/themes/elenq/templates/period_archives.html
@@ -0,0 +1,11 @@
+{% extends "base.html" %}
+{% 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/elenq/templates/tag.html b/themes/elenq/templates/tag.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/themes/elenq/templates/tag.html
diff --git a/themes/elenq/templates/tags.html b/themes/elenq/templates/tags.html
new file mode 100644
index 0000000..b5d1482
--- /dev/null
+++ b/themes/elenq/templates/tags.html
@@ -0,0 +1,10 @@
+{% extends "base.html" %}
+
+{% block title %}{{ SITENAME }} - Tags{% endblock %}
+
+{% block content %}
+ <h1>Tags for {{ SITENAME }}</h1>
+ {%- for tag, articles in tags|sort %}
+ <li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> ({{ articles|count }})</li>
+ {% endfor %}
+{% endblock %}
diff --git a/themes/elenq/templates/translations.html b/themes/elenq/templates/translations.html
new file mode 100644
index 0000000..db8c372
--- /dev/null
+++ b/themes/elenq/templates/translations.html
@@ -0,0 +1,9 @@
+{% macro translations_for(article) %}
+{% if article.translations %}
+Translations:
+{% for translation in article.translations %}
+<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
+{% endfor %}
+{% endif %}
+{% endmacro %}
+