diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.html | 32 | ||||
-rw-r--r-- | templates/page.html | 8 | ||||
-rw-r--r-- | templates/shortcodes/license.html | 19 |
3 files changed, 24 insertions, 35 deletions
diff --git a/templates/index.html b/templates/index.html index d883a57..91a335d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -45,37 +45,5 @@ </ul> {% endfor %} </ul> - <section id="stream"> - <ul class="post-list"> - {% for post in section.pages %} - <article> - <header class="post-header"> - <h1 class="post-title"><a href="{{ post.permalink }}">{{ post.title }}</a></h1> - <div class="post-meta"> - {{ post.date }} - {% if post.taxonomies["tags"] | length > 0 %} - <ul class="post-tags"> - {% for tag in post.taxonomies["tags"] %} - <li class="tag">{{ tag }}</li> - {% endfor %} - </ul> - {% endif %} - </div> - </header> - <section class="post-summary"> - {{ post.summary | safe }} - </section> - <footer> - {% if post.content | length > post.summary | length %} - <a href="{{ post.permalink }}"> - {% if post.lang == 'en' %}More...{% else %}Les mer...{% endif %} - </a> - {% endif %} - </footer> - </article> - {% endfor %} - </ul> - </section> - </div> {% endblock content %} diff --git a/templates/page.html b/templates/page.html index 56317a7..5cdf946 100644 --- a/templates/page.html +++ b/templates/page.html @@ -7,9 +7,11 @@ Publisert: {{ page.date }} {% if page.author %}av {{ page.author }}{% endif %} </span> - <span class="meta-tags"> - Merket: {{ page.taxonomies['tags'] | join(sep=", ") }} - </span> + {% if page.taxonomies %} + <span class="meta-tags"> + Merket: {{ page.taxonomies['tags'] | join(sep=", ") }} + </span> + {% endif %} </div> {{ page.content | safe }} </article> diff --git a/templates/shortcodes/license.html b/templates/shortcodes/license.html new file mode 100644 index 0000000..8e9a1aa --- /dev/null +++ b/templates/shortcodes/license.html @@ -0,0 +1,19 @@ +<div class="license"> + <div class="cc-by-sa-logo"> + <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"> + <img alt="Creative Commons-lisens" style="border-width:0" + src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /> + </a> + </div> + <div class="license-text"> + Innholdet på denne siden er publisert av + <a xmlns:cc="http://creativecommons.org/ns#" + href="{{ page.permalink }}" + property="cc:attributionName" + rel="cc:attributionURL"> + Rabalder/Harald Eilertsen</a> + og gjort tilgjengelig under en + <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"> + Creative Commons Navngivelse-DelPåSammeVilkår 4.0 Internasjonal lisens</a>. + </div> +</div> |