aboutsummaryrefslogtreecommitdiffstats
path: root/bricabrac/templates/page.html
diff options
context:
space:
mode:
authorJustin Mayer <entroP@gmail.com>2017-02-21 08:52:32 -0800
committerGitHub <noreply@github.com>2017-02-21 08:52:32 -0800
commitdaf25dfb2062270a1571d850c1d17ec9d0dbc98b (patch)
treeaf70eacd15b7cbe2114913b2acf28a0296911e34 /bricabrac/templates/page.html
parent42412ba752da93242a9784d9df5f6b680bce2d73 (diff)
parent185f6fdd3da30e6cfce6156992bd1fb15d79015d (diff)
downloadpelican-themes-daf25dfb2062270a1571d850c1d17ec9d0dbc98b.tar.gz
Merge pull request #491 from Bricabraque/master
Add Bricabrac theme
Diffstat (limited to 'bricabrac/templates/page.html')
-rw-r--r--bricabrac/templates/page.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/bricabrac/templates/page.html b/bricabrac/templates/page.html
new file mode 100644
index 0000000..4509e10
--- /dev/null
+++ b/bricabrac/templates/page.html
@@ -0,0 +1,13 @@
+{%- if page.lang %}{% set DEFAULT_LANG = page.lang %}{% endif -%}
+{% extends "base.html" %}
+{% block title %}{{ super() }} : {{ page.title }}{% endblock %}
+{% block content %}
+<header>
+<h1><a href="{{ SITEURL }}" id="site-title">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> :
+<a href="{{ SITEURL }}/{{ page.url }}" id="page-title">{{ page.title }}</a></h1>
+</header>
+<article>
+<div class="meta" style="text-align:right;">{% if page.translations %}{% for translation in page.translations %}{{ page.lang or DEFAULT_LANG }}&nbsp;|&nbsp;<a href="{{ SITEURL }}/{{ translation.url }}"><u>{{ translation.lang }}</u></a>{% endfor %}{% endif %}</div>
+{{ page.content }}
+</article>
+{% endblock %}