summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico von Geyso <Nico.Geyso@FU-Berlin.de>2012-07-07 16:55:28 +0200
committerNico von Geyso <Nico.Geyso@FU-Berlin.de>2012-07-07 16:55:28 +0200
commit38857a608bab2ea5eb65bfc1c4614033dbf78597 (patch)
tree04a3000340dba8f1dcb99199759b29744cb8b230
downloadwww-38857a608bab2ea5eb65bfc1c4614033dbf78597.tar.gz
www-38857a608bab2ea5eb65bfc1c4614033dbf78597.tar.bz2
www-38857a608bab2ea5eb65bfc1c4614033dbf78597.zip
initial commit
-rw-r--r--.gitignore1
-rw-r--r--2012/01-04-first-post.html9
-rw-r--r--2012/04-01-new-service.html23
-rw-r--r--_base.html46
-rw-r--r--_post.html21
-rw-r--r--_taglist.html17
-rw-r--r--blog.html18
-rw-r--r--howto.html18
-rw-r--r--howtos/ssh-tunnel.html21
-rw-r--r--index.html40
-rw-r--r--services/pad.html10
-rw-r--r--services/spit.html12
-rw-r--r--settings.cfg3
-rw-r--r--static/css/main.css40
-rw-r--r--static/css/syntax.css61
-rw-r--r--utils/filters.py5
-rw-r--r--utils/filters.pycbin0 -> 497 bytes
17 files changed, 345 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e35d885
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+_build
diff --git a/2012/01-04-first-post.html b/2012/01-04-first-post.html
new file mode 100644
index 0000000..d4f0d7f
--- /dev/null
+++ b/2012/01-04-first-post.html
@@ -0,0 +1,9 @@
+{% meta %}
+ title: First spline blog post
+{% endmeta %}
+
+{% mark body %}
+<p>
+Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
+</p>
+{% endmark %}
diff --git a/2012/04-01-new-service.html b/2012/04-01-new-service.html
new file mode 100644
index 0000000..283baa6
--- /dev/null
+++ b/2012/04-01-new-service.html
@@ -0,0 +1,23 @@
+{% meta %}
+ title: New spline service
+ tags: [service, spline]
+{% endmeta %}
+
+{% mark body %}
+<p>
+Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
+</p>
+
+<p>
+Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
+</p>
+
+<p>
+Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
+</p>
+
+<p>
+Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
+</p>
+
+{% endmark %}
diff --git a/_base.html b/_base.html
new file mode 100644
index 0000000..99b0f06
--- /dev/null
+++ b/_base.html
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="utf-8" />
+ <meta name="author" content="{{ author }}" />
+ <title>{{ site.title }}{% block title %}: {{ entry.title }}{% endblock %}</title>
+ <link rel="stylesheet" href="http://960.gs/css/reset.css" />
+ <link rel="stylesheet" href="http://960.gs/css/text.css" />
+ <link rel="stylesheet" href="http://960.gs/css/960.css" />
+ <link rel="stylesheet" href="{{ url_for("static/css/main.css") }}" type="text/css" />
+ <link rel="stylesheet" href="{{ url_for("static/css/syntax.css") }}" type="text/css" />
+</head>
+<body>
+
+ <div class="container_16">
+ <div id="header" class="grid_16">
+ <h1 class="grid_8 alpha">
+ <img src="http://marian.spline.de/res/logo/png/spline-logo-full-white-transp.png" alt="SPLINE" />
+ </h1>
+
+ <ol class="grid_8 omega">
+ {% for page in site.pages|filter_by_attr('top_link')|sort(attribute='top_link')%}
+ <li><a href="{{page.get_url()}}">{{page.title}}</a></li>
+ {% endfor %}
+ </ol>
+ </div>
+
+ <div class="clear"></div>
+ <div class="grid_16" id="content">
+ {% block content %}{% endblock %}
+ </div>
+
+ <div class="clear"></div>
+ <div class="grid_16" id="footer">
+ <footer>
+ {{ site.url }}
+ |
+ 2012
+ |
+ <a href="mailto:spline@spline.de">spline@spline.de</a>
+ </footer>
+ </div>
+
+ </div>
+</body>
+</html>
diff --git a/_post.html b/_post.html
new file mode 100644
index 0000000..0605f1e
--- /dev/null
+++ b/_post.html
@@ -0,0 +1,21 @@
+{% extends "_base.html" %}
+
+{% block content %}
+<h1>{{ entry.title|typogrify }}</h1>
+
+{{ entry.body }}
+
+<ul class="meta">
+ <li>Published: {{ entry.date.strftime('%d %B %Y ') }}</li>
+
+ {% if entry.tags %}
+ <li>
+ Tags: {% for tag in entry.tags -%}
+ <a href="{{ site.tag_cache.get(tag).get_url() }}">{{ tag }}</a>
+ {%- if not loop.last %}, {% endif -%}
+ {%- endfor %}
+ </li>
+ {% endif %}
+</ul>
+
+{% endblock %}
diff --git a/_taglist.html b/_taglist.html
new file mode 100644
index 0000000..0705547
--- /dev/null
+++ b/_taglist.html
@@ -0,0 +1,17 @@
+{% extends "_base.html" %}
+
+{% block title %}{{ entry.slug }} tag{% endblock %}
+
+{% block content %}
+<h2>Posts with tag {{ entry.slug }}</h2>
+
+<table class="posts">
+ {% for post in site.tags[entry.slug] %}
+ <tr>
+ <td class="date">{{ post.date.strftime('%Y, %B %d') }}</td>
+ <td class="title"><a href="{{ post.get_url() }}">{{ post.title }}</a></td>
+ <td class="tagline">{{ post.tagline }}</td>
+ </tr>
+ {% endfor %}
+</table>
+{% endblock %}
diff --git a/blog.html b/blog.html
new file mode 100644
index 0000000..a584e59
--- /dev/null
+++ b/blog.html
@@ -0,0 +1,18 @@
+{% meta %}
+ title: Blog
+ top_link: 1
+{% endmeta %}
+
+{% block content %}
+
+<h2>Latest posts</h2>
+
+{% for post in site.posts %}
+<p>
+ <a href="{{ post.get_url() }}">{{ post.title }}</a>
+ -
+ {{ post.date.strftime('%Y, %B %d') }}
+</p>
+{% endfor %}
+
+{% endblock %}
diff --git a/howto.html b/howto.html
new file mode 100644
index 0000000..6b23c23
--- /dev/null
+++ b/howto.html
@@ -0,0 +1,18 @@
+{% meta %}
+ title: HowTo
+ top_link: 0
+{% endmeta %}
+
+{% block content %}
+
+<h2>HowTos</h2>
+
+<ul>
+{% for page in site.pages %}
+ {% if page.howto %}
+ <li><a href="{{ page.get_url() }}">{{ page.title }}</a></li>
+ {% endif %}
+{% endfor %}
+</ul>
+
+{% endblock %}
diff --git a/howtos/ssh-tunnel.html b/howtos/ssh-tunnel.html
new file mode 100644
index 0000000..74540fb
--- /dev/null
+++ b/howtos/ssh-tunnel.html
@@ -0,0 +1,21 @@
+{% meta %}
+ title: Einrichten eines SSh-Web-Tunnels
+ howto: True
+{% endmeta %}
+
+{% block content %}
+<h1>Einrichten eines SSH-Web-Tunnels</h1>
+
+Konsole
+<pre>
+ ssh -C -D8080 uni-rechner.mi.fu-berlin.de
+</pre>
+
+Firefox
+<pre>
+ Bearbeiten -> Einstellungen -> Erweitert -> Netzwerk -> Einstellungen...
+
+ (*) Manuelle Proxy Konfiguration
+ SOCKS-Host 127.0.0.1 Port: 8080
+</pre>
+{% endblock %}
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..b825f9d
--- /dev/null
+++ b/index.html
@@ -0,0 +1,40 @@
+{% meta %}
+ title: Home
+ top_link: 2
+{% endmeta %}
+
+{% block content %}
+<h2>news</h2>
+{% for post in site.posts|batch(3)|first %}
+<p>
+ <a href="{{ post.get_url() }}">{{ post.title }}</a>
+ -
+ {{ post.date.strftime('%Y, %B %d') }}
+</p>
+{% endfor %}
+
+
+<h2>services</h2>
+<ul id="services">
+{% for page in site.pages %}
+ {% if page.service %}
+ <li>
+ <div class="grid_2 alpha">
+ <img src="{{page.logo_url}}" alt="{{page.title}}" />
+ </div>
+
+ <div class="gird_16 omega"
+ <h3>
+ <a href="{{page.get_url()}}">{{page.title}}</a>
+ </h3>
+
+ <p>
+ {{page.description}}
+ </p>
+ </div>
+ </li>
+ {% endif %}
+{% endfor %}
+</ul>
+
+{% endblock %}
diff --git a/services/pad.html b/services/pad.html
new file mode 100644
index 0000000..51752e4
--- /dev/null
+++ b/services/pad.html
@@ -0,0 +1,10 @@
+{% meta %}
+ title: Pad
+ service: True
+ logo_url: http://spline.de/images/thumb/1/1b/X-office-document.svg/50px-X-office-document.svg.png
+ description: lorm ipsum dolores
+{% endmeta %}
+
+{% block content %}
+That's just a simple page nax
+{% endblock %}
diff --git a/services/spit.html b/services/spit.html
new file mode 100644
index 0000000..fe5b838
--- /dev/null
+++ b/services/spit.html
@@ -0,0 +1,12 @@
+{% meta %}
+ title: Spit
+ service: True
+ logo_url: http://spline.de/images/5/51/Git.png
+ description: lorm ipsum dolores
+{% endmeta %}
+
+{% block title %}archive of {{ year }} year{% endblock %}
+
+{% block content %}
+That's just a simple page nax
+{% endblock %}
diff --git a/settings.cfg b/settings.cfg
new file mode 100644
index 0000000..1e99fa5
--- /dev/null
+++ b/settings.cfg
@@ -0,0 +1,3 @@
+author: Spline
+title: Spline
+url: http://www.spline.de
diff --git a/static/css/main.css b/static/css/main.css
new file mode 100644
index 0000000..4c84afd
--- /dev/null
+++ b/static/css/main.css
@@ -0,0 +1,40 @@
+body {
+ width: 100%;
+ margin: auto;
+ padding: 20px 0px;
+ font-family: 'Helvetica Neue', Helvetica, Arial;
+}
+
+#header h1 {
+ float: left;
+}
+
+#header img {
+ height: 80px;
+}
+
+#header ol li {
+ float: right;
+ list-style-type: none;
+ line-height: 80px;
+ font-size: 120%;
+}
+
+#services li {
+ list-style-type: none;
+ vertical-align: bottom;
+}
+
+footer {
+ text-align: center;
+}
+
+a {
+ text-decoration: none;
+ color: #055580;
+}
+
+a:hover {
+ color: #0777A0;
+}
+
diff --git a/static/css/syntax.css b/static/css/syntax.css
new file mode 100644
index 0000000..b0bdc4d
--- /dev/null
+++ b/static/css/syntax.css
@@ -0,0 +1,61 @@
+.hll { background-color: #ffffcc }
+.c { color: #808080 } /* Comment */
+.err { color: #F00000; background-color: #F0A0A0 } /* Error */
+.k { color: #008000; font-weight: bold } /* Keyword */
+.o { color: #303030 } /* Operator */
+.cm { color: #808080 } /* Comment.Multiline */
+.cp { color: #507090 } /* Comment.Preproc */
+.c1 { color: #808080 } /* Comment.Single */
+.cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.gd { color: #A00000 } /* Generic.Deleted */
+.ge { font-style: italic } /* Generic.Emph */
+.gr { color: #FF0000 } /* Generic.Error */
+.gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.gi { color: #00A000 } /* Generic.Inserted */
+.go { color: #808080 } /* Generic.Output */
+.gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.gs { font-weight: bold } /* Generic.Strong */
+.gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.gt { color: #0040D0 } /* Generic.Traceback */
+.kc { color: #008000; font-weight: bold } /* Keyword.Constant */
+.kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
+.kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
+.kp { color: #003080; font-weight: bold } /* Keyword.Pseudo */
+.kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
+.kt { color: #303090; font-weight: bold } /* Keyword.Type */
+.m { color: #6000E0; font-weight: bold } /* Literal.Number */
+.s { background-color: #fff0f0 } /* Literal.String */
+.na { color: #0000C0 } /* Name.Attribute */
+.nb { color: #007020 } /* Name.Builtin */
+.nc { color: #B00060; font-weight: bold } /* Name.Class */
+.no { color: #003060; font-weight: bold } /* Name.Constant */
+.nd { color: #505050; font-weight: bold } /* Name.Decorator */
+.ni { color: #800000; font-weight: bold } /* Name.Entity */
+.ne { color: #F00000; font-weight: bold } /* Name.Exception */
+.nf { color: #0060B0; font-weight: bold } /* Name.Function */
+.nl { color: #907000; font-weight: bold } /* Name.Label */
+.nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.nt { color: #007000 } /* Name.Tag */
+.nv { color: #906030 } /* Name.Variable */
+.ow { color: #000000; font-weight: bold } /* Operator.Word */
+.w { color: #bbbbbb } /* Text.Whitespace */
+.mf { color: #6000E0; font-weight: bold } /* Literal.Number.Float */
+.mh { color: #005080; font-weight: bold } /* Literal.Number.Hex */
+.mi { color: #0000D0; font-weight: bold } /* Literal.Number.Integer */
+.mo { color: #4000E0; font-weight: bold } /* Literal.Number.Oct */
+.sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.sc { color: #0040D0 } /* Literal.String.Char */
+.sd { color: #D04020 } /* Literal.String.Doc */
+.s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.se { color: #606060; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.si { background-color: #e0e0e0 } /* Literal.String.Interpol */
+.sx { color: #D02000; background-color: #fff0f0 } /* Literal.String.Other */
+.sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.ss { color: #A06000 } /* Literal.String.Symbol */
+.bp { color: #007020 } /* Name.Builtin.Pseudo */
+.vc { color: #306090 } /* Name.Variable.Class */
+.vg { color: #d07000; font-weight: bold } /* Name.Variable.Global */
+.vi { color: #3030B0 } /* Name.Variable.Instance */
+.il { color: #0000D0; font-weight: bold } /* Literal.Number.Integer.Long */
diff --git a/utils/filters.py b/utils/filters.py
new file mode 100644
index 0000000..efef4ec
--- /dev/null
+++ b/utils/filters.py
@@ -0,0 +1,5 @@
+def filter_by_attr(objs, attr):
+ return filter(lambda x: hasattr(x,attr), objs)
+
+filters = [filter_by_attr]
+
diff --git a/utils/filters.pyc b/utils/filters.pyc
new file mode 100644
index 0000000..a264890
--- /dev/null
+++ b/utils/filters.pyc
Binary files differ