# HG changeset patch # User Goffi # Date 1487705461 -3600 # Node ID 9a31d2c02f4706a86cba58137814890e6520b052 SàT templates, initial commit diff -r 000000000000 -r 9a31d2c02f47 __init__.py diff -r 000000000000 -r 9a31d2c02f47 default/base/base.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/default/base/base.html Tue Feb 21 20:31:01 2017 +0100 @@ -0,0 +1,21 @@ + + + + + {% block title %}{{C.APP_NAME}}{% endblock %} + {% if css_inline %} + + {% else %} + + {% endif %} + + +
+ {% block body %} + {% endblock body %} +
+ + + diff -r 000000000000 -r 9a31d2c02f47 default/blog/articles.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/default/blog/articles.html Tue Feb 21 20:31:01 2017 +0100 @@ -0,0 +1,9 @@ +{% extends 'base/base.html' %} + +{% block body %} +
+ {% for item in items %} + {% include 'blog/item.html' %} + {% endfor %} +
+{% endblock body %} diff -r 000000000000 -r 9a31d2c02f47 default/blog/item.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/default/blog/item.html Tue Feb 21 20:31:01 2017 +0100 @@ -0,0 +1,15 @@ +{% block item %} +
+
+ {% block header %} +
{% block blog_title %}{{ item.title_xhtml or item.title or '' }}{% endblock %}
+ {% endblock header %} +
+ +
+ {% block content %} + {{ item.content_xhtml or item.content or ''}} + {% endblock content %} +
+
+{% endblock item %} diff -r 000000000000 -r 9a31d2c02f47 default/blog/static/style.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/default/blog/static/style.css Tue Feb 21 20:31:01 2017 +0100 @@ -0,0 +1,36 @@ +html { + font-family: sans-serif; +} + +header { + font-weight: bold; + text-align: center; +} + +article { + margin: 2% auto; + width: 80%; + border-style: solid; + border-width: 1px; + border-radius: 3px; + padding: 1%; + background: lightgray; +} + +article div.content { + text-align: justify; + font-size: 0.9em; +} + +article img { + max-width: 100%; +} + +footer { + width: 100%; + text-align: center; + font-size: 0.7em; + font-weight: bold; + position: fixed; + bottom: 5px; +}