blob: 768bb61f9205492fa6da3abbf4dd5d6f55bf2419 (
plain) (
tree)
|
|
{%- macro bible_url(ref, bib_mod) -%}
http://www.crosswire.org/study/passagestudy.jsp?key={{ ref.book
}}+{{ ref.chapter }}%3A{{ ref.verse }}&mod={{ bibMod }}
{%- endmacro -%}
{%- macro verses(word) -%}
<p>{{ word.text }}</p>
<p class="reference">{% if word.int_ref_id -%}
<a href="{{ bible_url(word.int_ref_id) }}">
{{ word.ref }}
</a>
{%- else %}
{{ word.ref }}
{%- endif %}</p>{%- endmacro -%}
<!DOCTYPE html>
<html manifest="hesla.appcache">
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0, maximum-scale=2.0, user-scalable=yes" name="viewport"/>
<link href="screen.css" type="text/css" rel="stylesheet"/>
<title>{{ title }}</title>
<script src="hesla.js" type="text/javascript" defer="defer">
</script>
</head>
<body>
<noscript>{{ noscript_message }}</noscript>
{% for art in articles %}
<article id="{{ art.date_id }}"><header><h1>{%-
if art.week_title %}{{ art.week_title }}<br>{%-
endif %}{{ art.date_full }}{%-
if art.holy_name %}<br>{{ art.holy_name }}</h1>{%-
if art.holy_text %}{{
verses(art.holy_text)}}<hr>{% endif %}{%
else %}</h1>{%- endif %}{%-
if art.sun_name %}<h2>{{ art.sun_name }}{%-
if art.sun_mean %}: {{ art.sun_mean }}{%- endif %}</h2>{%-
endif %}{%- if art.sun_text %}{{
verses(art.sun_text)}}<hr>{%- endif %}</header>
{% for wword in art.watchwords %}{{ verses(wword) }}{% endfor %}
{%- if art.readings %}<ul class="readings">
{% for read in art.readings %}<li>{{ read }}</li>{% endfor %}
</ul>
{% endif %}
</article>
{%- endfor %}
<footer class="acknowledgment">
<p>{% block acknowledgment %}{% endblock %}</p>
<ul class="navigation">
<li id="czech_nav">Česky</li>
<li id="german_nav">Deutsch</li>
</ul>
</footer>
</body>
</html>
<!-- vi:ft=htmljinja
-->
|