From d44a2b11428563b25f0d54f3bc1e20276a4e2c4b Mon Sep 17 00:00:00 2001 From: Sebastian Silva Date: Fri, 23 Aug 2013 17:40:36 +0000 Subject: permaculture for children wiki --- diff --git a/dev.py b/dev.py index 7ad008d..8d3dcad 100755 --- a/dev.py +++ b/dev.py @@ -13,6 +13,6 @@ if __name__=="__main__": config.parse_args() # config.parse_files() application = hatta.Wiki(config).application - host = config.get('interface', 'localhost') + host = config.get('interface', '0.0.0.0') port = int(config.get('port', 8080)) werkzeug.run_simple(host, port, application, use_reloader=True) diff --git a/hatta/static/style.css b/hatta/static/style.css index 78db6a1..484dc23 100644 --- a/hatta/static/style.css +++ b/hatta/static/style.css @@ -5,9 +5,13 @@ html { color: #2e3436; font-family: sans-serif; font-size: 96%; + background: url(background.png) 50% 50% no-repeat fixed; } body { - margin: 1em auto; + margin: 0px; +} +div#hatta-body { + margin: 0px auto; line-height: 1.3; width: 40em } @@ -121,7 +125,10 @@ div#hatta-footer { a#hatta-logo { float: left; display: block; - margin: 0.25em; + margin: auto; + width: 100%; + text-align: center; + /* margin: 0.25em; */ } div#hatta-header h1 { margin: 0; diff --git a/hatta/templates/layout.html b/hatta/templates/layout.html index 9754cdc..64ba769 100644 --- a/hatta/templates/layout.html +++ b/hatta/templates/layout.html @@ -5,8 +5,10 @@ {% block title %}{% endblock %} {% block links %}{% endblock %} {% block meta %}{% endblock %} -
+ {% block logo %}{% endblock %} +
+
{% block search %}{% endblock %} {% block menu %}{% endblock %} {% block page_title %}{% endblock %} @@ -14,6 +16,6 @@ {% block content %}{% endblock %}
+
{% block scripts %}{% endblock %} diff --git a/permachildren b/permachildren new file mode 100755 index 0000000..29a354c --- /dev/null +++ b/permachildren @@ -0,0 +1,4 @@ +#!/bin/sh +python2 dev.py -D -n "Permaculture for Children" -m "Inicio" & +sleep 5 +chromium --app=http://localhost:8080/ -- cgit v0.9.1