aboutsummaryrefslogtreecommitdiffstats
path: root/bootlex/templates
diff options
context:
space:
mode:
Diffstat (limited to 'bootlex/templates')
-rw-r--r--bootlex/templates/analytics.html11
-rw-r--r--bootlex/templates/archives.html15
-rw-r--r--bootlex/templates/article.html13
-rw-r--r--bootlex/templates/author.html7
-rw-r--r--bootlex/templates/base.html80
-rw-r--r--bootlex/templates/categories.html8
-rw-r--r--bootlex/templates/category.html5
-rw-r--r--bootlex/templates/index.html53
-rw-r--r--bootlex/templates/page.html6
-rw-r--r--bootlex/templates/tag.html2
-rw-r--r--bootlex/templates/tags.html17
11 files changed, 217 insertions, 0 deletions
diff --git a/bootlex/templates/analytics.html b/bootlex/templates/analytics.html
new file mode 100644
index 0000000..86c297c
--- /dev/null
+++ b/bootlex/templates/analytics.html
@@ -0,0 +1,11 @@
+{% if GOOGLE_ANALYTICS %}
+ <script type="text/javascript">
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+ </script>
+ <script type="text/javascript">
+ try {
+ var pageTracker = _gat._getTracker("{{GOOGLE_ANALYTICS}}");
+ pageTracker._trackPageview();
+ } catch(err) {}</script>
+{% endif %} \ No newline at end of file
diff --git a/bootlex/templates/archives.html b/bootlex/templates/archives.html
new file mode 100644
index 0000000..6e364d0
--- /dev/null
+++ b/bootlex/templates/archives.html
@@ -0,0 +1,15 @@
+{% extends "base.html" %}
+{% block title %}Archiv{%endblock%}
+{% block menu_entry_archive %}
+class="active"
+{% endblock %}
+{% block content %}
+<h1>Archiv {{ pagename }}</h1>
+
+<dl>
+{% for article in dates %}
+ <dt>{{ article.locale_date }}</dt>
+ <dd><a href='{{ SITEURL }}{{ article.url }}'>{{ article.title }}</a></dd>
+{% endfor %}
+</dl>
+{% endblock %}
diff --git a/bootlex/templates/article.html b/bootlex/templates/article.html
new file mode 100644
index 0000000..a407af8
--- /dev/null
+++ b/bootlex/templates/article.html
@@ -0,0 +1,13 @@
+{% extends "base.html" %}
+{% block title %}{{ article.title }}{%endblock%}
+{% block content %}
+<div id="content">
+ <div class="header">
+ <h1>{{ article.title }}</h2>
+ </div>
+ <p class="meta"><small><span>{% if article.author %}<a href="{{ SITEURL }}author/{{ article.author }}/">{{ article.author }}</a> - {% endif %}</span><span>{{ article.locale_date }}</span> - <span class="tags">{% if article.tags %}{% for tag in article.tags %}<a href="/tag/{{ tag }}/">{{ tag }}</a>{% if not loop.last %}, {% endif %}{% endfor %}{% endif %}</small></p>
+ <div class="entry-content">
+ {{ article.content }}
+ </div><!-- /.entry-content -->
+</div>
+{% endblock %}
diff --git a/bootlex/templates/author.html b/bootlex/templates/author.html
new file mode 100644
index 0000000..664aad1
--- /dev/null
+++ b/bootlex/templates/author.html
@@ -0,0 +1,7 @@
+{% extends "index.html" %}
+
+{% block title %}Posts von {{ author }}{% endblock %}
+{% block content_title %}
+<h2>Posts von {{ author }}</h2>
+{% endblock %}
+
diff --git a/bootlex/templates/base.html b/bootlex/templates/base.html
new file mode 100644
index 0000000..a48f00b
--- /dev/null
+++ b/bootlex/templates/base.html
@@ -0,0 +1,80 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
+<html lang="{{ DEFAULT_LANG }}">
+ <head>
+ {% block head %}
+ <title>{% block title %}{% endblock title %} - {{ SITENAME }}</title>
+ <meta http-equiv="content-type" content="charset=utf-8" />
+ <link href="http://fonts.googleapis.com/css?family=Arimo:400,700|Inika" rel="stylesheet" type="text/css">
+ <link rel="stylesheet" type="text/css" href="{{ SITEURL }}theme/bootstrap.css">
+ <link rel="stylesheet" type="text/css" href="{{ SITEURL }}theme/pastie.css">
+ {% endblock head %}
+ </head>
+
+ <body>
+ <div class="navbar">
+ <div class="navbar-inner">
+ <div class="container">
+ <h1><a class="brand" href="{{ SITEURL }}">{{ SITENAME }}</a></h1>
+ </div>
+ </div>
+ </div>
+ <div class="container">
+ <div class="row">
+ <div class="span8">
+ {% block content %}
+ {% endblock %}
+ </div>
+ <div class="span3 offset1">
+ <div class="well">
+ <ul class="nav nav-list">
+ <li class="nav-header">Blog</li>
+ <li {% if page_name == 'index' %}class="active"{% endif %}><a href="{{ SITEURL }}">Index</a></li>
+ <li {% block menu_entry_tag %}{% endblock %}><a href="{{ SITEURL }}tags/">Tags</a></li>
+ <li {% block menu_entry_archive %}{% endblock %}><a href="{{ SITEURL }}archives/">Archiv</a></li>
+ {% if DISPLAY_PAGES_ON_MENU %}
+ {% if PAGES %}
+ <li class="nav-header">Seiten</li>
+ {% for p in PAGES %}
+ <li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}{{ p.url }}">{{ p.title }}</a></li>
+ {% endfor %}
+ {% endif %}
+ {% else %}
+{# {% for cat, null in categories %}
+ <li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}category/{{ cat }}/">{{ cat }}</a></li>
+ {% endfor %}
+#}
+ {% endif %}
+ {% if MENUITEMS %}
+ <li class="nav-header">Anderes</li>
+ {% for title, link in MENUITEMS %}
+ <li><a href="{{ link }}">{{ title }}</a></li>
+ {% endfor %}
+ {% endif %}
+ {% if LINKS %}
+ <li class="nav-header">Links</li>
+ {% for title, link in LINKS %}
+ <li><a href="{{ link }}">{{ title }}</a></li>
+ {% endfor %}
+ {% endif %}
+ </ul>
+ </div><!-- /#menu -->
+ </div>
+ </div>
+
+ <hr>
+
+ <div class="row">
+ <div class="span12">
+ <div id="about">
+ <p>Proudly powered by <a href="http://twitter.github.com/bootstrap/">bootstrap</a>, <a href="http://docs.notmyidea.org/alexis/pelican/">pelican</a>, <a href="http://python.org">python</a> and <a href="http://www.julo.ch/pages/about">Alex</a>!</p>
+ </div><!-- /#about -->
+ </div><!-- /#contentinfo -->
+ </div>
+ </div>
+
+ {% include 'analytics.html' %}
+
+ </body>
+</html>
diff --git a/bootlex/templates/categories.html b/bootlex/templates/categories.html
new file mode 100644
index 0000000..7e4bd2c
--- /dev/null
+++ b/bootlex/templates/categories.html
@@ -0,0 +1,8 @@
+{% extends "base.html" %}
+{% block content %}
+<ul>
+{% for category, articles in categories %}
+ <li>{{ category }}</li>
+{% endfor %}
+</ul>
+{% endblock %}
diff --git a/bootlex/templates/category.html b/bootlex/templates/category.html
new file mode 100644
index 0000000..4e6fd24
--- /dev/null
+++ b/bootlex/templates/category.html
@@ -0,0 +1,5 @@
+{% extends "index.html" %}
+{% block content_title %}
+<h2>Articles in the {{ category }} category</h2>
+{% endblock %}
+
diff --git a/bootlex/templates/index.html b/bootlex/templates/index.html
new file mode 100644
index 0000000..8e56370
--- /dev/null
+++ b/bootlex/templates/index.html
@@ -0,0 +1,53 @@
+{% extends "base.html" %}
+{% block title %}Blog{%endblock%}
+{% block content %}
+<div id="content">
+{% block content_title %}
+<h1>Blog</h2>
+{% endblock %}
+
+<ul class="unstyled">
+{% for article in articles_page.object_list %}
+ <li>
+ <div>
+ <div class="header">
+ <h2>{{ article.title }}</h2>
+ </div>
+ <p class="meta"><small><span>{% if article.author %}<a href="{{ SITEURL }}author/{{ article.author }}/">{{ article.author }}</a> - {% endif %}</span><span>{{ article.locale_date }}</span> - <span class="tags">{% if article.tags %}{% for tag in article.tags %}<a href="/tag/{{ tag }}/">{{ tag }}</a>{% if not loop.last %}, {% endif %}{% endfor %}{% endif %}</small></p>
+ <div class="entry-content">
+ {{ article.summary }}
+ </div><!-- /.entry-content -->
+ <div class="row">
+ <div class="span1 offset7">
+ <a class="btn btn-small" href="{{ SITEURL }}{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title}}">Mehr</a>
+ </div>
+ </div>
+ </div>
+ </li>
+
+ <hr>
+
+
+{% endfor %}
+</ul><!-- /#posts-list -->
+<div class="pagination pagination-centered">
+ <ul>
+ {% if articles_page.has_previous() %}
+ <li><a href="{{ SITEURL }}{% if articles_page.previous_page_number() != 1 %}{{ page_name }}{{ articles_page.previous_page_number() }}/{% endif %}">←</a></li>
+ {% endif %}
+ {% if articles_page.has_previous() and (articles_page.previous_page_number() != 1) %}
+ <li><a href="{{ SITEURL }}">1</a></li>
+ <li class="disabled"><a href="#">...</a></li>
+ {% endif %}
+ <li class="active"><a href="#">{{ articles_page.number }}</a></li>
+ {% if articles_page.has_next() %}
+ <li><a href="{{ SITEURL }}{{ page_name }}{{ articles_page.next_page_number() }}/">→</a></li>
+ {% endif %}
+ {% if articles_page.has_next() and (articles_page.next_page_number() != articles_paginator.num_pages) %}
+ <li class="disabled"><a href="#">...</a></li>
+ <li><a href="{{ SITEURL }}{{ page_name }}{{ articles_page.num_pages }}/">{{ articles_paginator.num_pages }}</a></li>
+ {% endif %}
+ </ul>
+</div>
+</div><!-- /#content -->
+{% endblock content %}
diff --git a/bootlex/templates/page.html b/bootlex/templates/page.html
new file mode 100644
index 0000000..6308d58
--- /dev/null
+++ b/bootlex/templates/page.html
@@ -0,0 +1,6 @@
+{% extends "base.html" %}
+{% block title %}{{ page.title }}{%endblock%}
+{% block content %}
+ <h1>{{ page.title }}</h1>
+ {{ page.content }}
+{% endblock %}
diff --git a/bootlex/templates/tag.html b/bootlex/templates/tag.html
new file mode 100644
index 0000000..c4817d7
--- /dev/null
+++ b/bootlex/templates/tag.html
@@ -0,0 +1,2 @@
+{% extends "index.html" %}
+{% block title %}Tag {{ tag }}{% endblock %} \ No newline at end of file
diff --git a/bootlex/templates/tags.html b/bootlex/templates/tags.html
new file mode 100644
index 0000000..87f134c
--- /dev/null
+++ b/bootlex/templates/tags.html
@@ -0,0 +1,17 @@
+{% extends "base.html" %}
+{% block title %}Tags{%endblock%}
+{% block menu_entry_tag %}
+class="active"
+{% endblock %}
+{% block content %}
+ <h1>Tags</h1>
+ {% if tags %}
+ <ul>
+ {% for tag, articles in tags %}
+ <li><a href="{{ SITEURL }}tag/{{ tag }}/">{{ tag }}</a></li>
+ {% endfor %}
+ </ul>
+ {% else %}
+ <p>Sorry, bisher gibt es keine Tags.</p>
+ {% endif %}
+{% endblock %}