aboutsummaryrefslogtreecommitdiffstats
path: root/bootlex/templates
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2012-03-27 15:38:13 -0700
committerAlexis Metaireau <alexis@notmyidea.org>2012-03-27 15:38:13 -0700
commit51252efe985968fd564c9c68d2c94cf5182557f8 (patch)
treebfe151e0b0137e5431ba10d6a2a569ba57580064 /bootlex/templates
parente38b06c659d60590c0000f2938387d7fa161e2e5 (diff)
parent7dc4d494bd4a5dc5f81a0d2819bdedbcba4367b5 (diff)
downloadpelican-themes-51252efe985968fd564c9c68d2c94cf5182557f8.tar.gz
Merge pull request #19 from alexex/master
added bootlex theme to the themes repo
Diffstat (limited to 'bootlex/templates')
-rw-r--r--bootlex/templates/analytics.html15
-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.html71
-rw-r--r--bootlex/templates/categories.html8
-rw-r--r--bootlex/templates/category.html5
-rw-r--r--bootlex/templates/index.html61
-rw-r--r--bootlex/templates/page.html6
-rw-r--r--bootlex/templates/tag.html2
-rw-r--r--bootlex/templates/tags.html17
11 files changed, 220 insertions, 0 deletions
diff --git a/bootlex/templates/analytics.html b/bootlex/templates/analytics.html
new file mode 100644
index 0000000..2d7b5f2
--- /dev/null
+++ b/bootlex/templates/analytics.html
@@ -0,0 +1,15 @@
+{% if GOOGLE_ANALYTICS %}
+<script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', '{{ GOOGLE_ANALYTICS }}']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+</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..18ba9a3
--- /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 }}</h1>
+ </div>
+ <p class="meta"><small><span>{% if article.author %}<a href="{{ SITEURL }}author/{{ article.author.slug }}/">{{ 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 %}</span></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..711bda6
--- /dev/null
+++ b/bootlex/templates/base.html
@@ -0,0 +1,71 @@
+<!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="{{ DEFAULT_LANG }}">
+ <head>
+ {% block head %}
+ <title>{% block title %}{% endblock title %} - {{ SITENAME }}</title>
+ <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 %}
+
+ {% include 'analytics.html' %}
+
+ </head>
+
+ <body>
+ <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/about/">Alex</a>!</p>
+ </div><!-- /#about -->
+ </div><!-- /#contentinfo -->
+ </div>
+ </div>
+ </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..02ff0ee
--- /dev/null
+++ b/bootlex/templates/index.html
@@ -0,0 +1,61 @@
+{% extends "base.html" %}
+{% block title %}Blog{%endblock%}
+{% block content %}
+<div id="content">
+{% block content_title %}
+<h1>Blog</h1>
+{% 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.slug }}/">{{ 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 %}</span></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>
+
+ <li><hr /></li>
+
+
+{% endfor %}
+</ul><!-- /#posts-list -->
+<div class="pagination pagination-centered">
+ <ul>
+ {% if articles_page.has_previous() and (articles_page.previous_page_number() != 1) %}
+ <li><a href="{{ SITEURL }}">1</a></li>
+ {% endif %}
+ {% if articles_page.previous_page_number() - 1 == 2 %}
+ <li><a href="{{ articles_page.previous_page_number() - 1}}">{{ articles_page.previous_page_number() - 1}}</a></li>
+ {% elif articles_page.previous_page_number() - 1 > 1 %}
+ <li class="disabled"><a href="#">...</a></li>
+ {% endif %}
+ {% if articles_page.has_previous() %}
+ <li><a href="{{ SITEURL }}{% if articles_page.previous_page_number() != 1 %}{{ page_name }}{{ articles_page.previous_page_number() }}/{% endif %}">{{ articles_page.previous_page_number() }}</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() }}/">{{ articles_page.next_page_number() }}</a></li>
+ {% endif %}
+ {% if articles_paginator.num_pages - articles_page.next_page_number() == 2 %}
+ <li><a href="{{ articles_page.next_page_number() + 1}}">{{ articles_page.next_page_number() + 1}}</a></li>
+ {% elif articles_paginator.num_pages - articles_page.next_page_number() > 2 %}
+ <li class="disabled"><a href="#">...</a></li>
+ {% endif %}
+ {% if articles_page.has_next() and (articles_page.next_page_number() != articles_paginator.num_pages) %}
+ <li><a href="{{ SITEURL }}{{ page_name }}{{ articles_paginator.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 %}