aboutsummaryrefslogtreecommitdiffstats
path: root/SOB/templates
diff options
context:
space:
mode:
Diffstat (limited to 'SOB/templates')
-rw-r--r--SOB/templates/analytics.html12
-rw-r--r--SOB/templates/archives.html17
-rw-r--r--SOB/templates/article.html21
-rw-r--r--SOB/templates/article_infos.html9
-rw-r--r--SOB/templates/article_infos_bottom.html17
-rw-r--r--SOB/templates/author.html4
-rw-r--r--SOB/templates/base.html97
-rw-r--r--SOB/templates/categories.html8
-rw-r--r--SOB/templates/category.html4
-rw-r--r--SOB/templates/comments.html3
-rw-r--r--SOB/templates/disclaimer.html6
-rw-r--r--SOB/templates/index.html59
-rw-r--r--SOB/templates/page.html14
-rw-r--r--SOB/templates/pagination.html21
-rw-r--r--SOB/templates/tag.html4
-rw-r--r--SOB/templates/tags.html16
-rw-r--r--SOB/templates/translations.html8
17 files changed, 320 insertions, 0 deletions
diff --git a/SOB/templates/analytics.html b/SOB/templates/analytics.html
new file mode 100644
index 0000000..3e1636c
--- /dev/null
+++ b/SOB/templates/analytics.html
@@ -0,0 +1,12 @@
+{#FUCK GOOGLE{% 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/SOB/templates/archives.html b/SOB/templates/archives.html
new file mode 100644
index 0000000..1770aae
--- /dev/null
+++ b/SOB/templates/archives.html
@@ -0,0 +1,17 @@
+ {% extends "base.html" %}
+ {% block content %}
+ <div id="content">
+ <h3>Archives</h3>
+ <table>
+ <tbody>
+ {% for article in dates %}
+ <tr>
+
+ <td class="date">{{ article.locale_date }}</td>
+ <td><a href='{{ article.url }}'>{{ article.title }}</a></td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ </div>
+ {% endblock %}
diff --git a/SOB/templates/article.html b/SOB/templates/article.html
new file mode 100644
index 0000000..090bbab
--- /dev/null
+++ b/SOB/templates/article.html
@@ -0,0 +1,21 @@
+ {% extends "base.html" %}
+ {% block title %}
+ {{ article.title|striptags }}
+ {% endblock %}
+ {% block content %}
+ <div id="content">
+ <h3><a href="{{ SITEURL }}/{{ article.url }}"
+ title="Permalink to {{ article.title|striptags }}">{{ article.title}}</a></h3>
+{#fuck twitter{% include 'twitter.html' %}#}
+
+
+ {% include 'article_infos.html' %}
+ {{ article.content }}
+ {% include 'article_infos_bottom.html' %}
+
+ {% if DISQUS_SITENAME and SITEURL and article.status != "draft" %}
+ <h4>Comments</h4>
+ {% include 'disqus_script.html' %}
+ {% endif %}
+ </div>
+ {% endblock %} \ No newline at end of file
diff --git a/SOB/templates/article_infos.html b/SOB/templates/article_infos.html
new file mode 100644
index 0000000..05ff0a7
--- /dev/null
+++ b/SOB/templates/article_infos.html
@@ -0,0 +1,9 @@
+ <h3 class="date" title="{{ article.date.isoformat() }}">{{ article.locale_date }}
+ {# {% if article.author %}
+By <a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
+ {% endif %} #}
+ </h3>
+
+ {% import 'translations.html' as translations with context %}
+ {{ translations.translations_for(article) }}
+
diff --git a/SOB/templates/article_infos_bottom.html b/SOB/templates/article_infos_bottom.html
new file mode 100644
index 0000000..3ebb64a
--- /dev/null
+++ b/SOB/templates/article_infos_bottom.html
@@ -0,0 +1,17 @@
+ Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
+
+ {% if article.tags %}
+ <br/>
+ Tagged:
+ {% for tag in article.tags %}
+ <a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }} </a>
+ {% endfor %}
+ {% endif %}
+
+ {% if PDF_PROCESSOR %}
+ <p><a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">PDF</a></p>
+ {% endif %}
+
+ {% import 'translations.html' as translations with context %}
+ {{ translations.translations_for(article) }}
+
diff --git a/SOB/templates/author.html b/SOB/templates/author.html
new file mode 100644
index 0000000..484e8b1
--- /dev/null
+++ b/SOB/templates/author.html
@@ -0,0 +1,4 @@
+ {% extends "index.html" %}
+ {% block title %}
+ {{ SITENAME }} - {{ author }}
+ {% endblock %}
diff --git a/SOB/templates/base.html b/SOB/templates/base.html
new file mode 100644
index 0000000..33f97bb
--- /dev/null
+++ b/SOB/templates/base.html
@@ -0,0 +1,97 @@
+<!DOCTYPE html>
+
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta name="description"
+ content="Main page.">
+ <meta name="keywords"
+ content="sassafrass">
+ <meta name="author"
+ content="YOU">
+ <link rel="stylesheet"
+ type="text/css"
+ href="{{ SITEURL }}/theme/css/main.css">
+ <!--<link rel="icon"
+ type="image/png"
+ href=".png"> -->
+ <title>
+ {% block title %}{{ SITENAME }}
+ {%endblock%}
+ </title>
+ </head>
+
+ <body>
+ <div id="container">
+ <div id="topspacer">
+ </div>
+ <div id="header">
+ <h1 style="text-align: center"><a href="{{ SITEURL }}">{{ SITENAME }}</a></h1>
+ </div>
+ <div id="nav">
+ <ul>
+ {% for title, link in MENUITEMS %}
+ <li><a href="{{ link }}">{{ title }}</a></li>
+ {% endfor %}
+
+ {% if DISPLAY_PAGES_ON_MENU %}
+ {% for page in PAGES %}
+ <li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
+ {% endfor %}
+ {% endif %}
+ </ul>
+ </div>
+ <div id="content">
+ <p>
+Return to <a href="http://somewhere32132132.com">somewhere32132132.com</a>
+ </p>
+ </div>
+
+ {% block content %}
+ {% endblock %}
+
+
+ <div id="content">
+ <ul>
+ <li><a href="{{ SITEURL }}/archives.html">Archives</a>
+ <li><a href="{{ SITEURL }}/tags.html">Tags</a>
+ </ul>
+ </div>
+ {% if categories %}
+ <div id="content">
+ <h3 style="text-align: center">Categories</h3>
+ <p>
+ {% for cat, null in categories %}
+ <a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a>,
+ {% endfor %}
+ </p>
+ </div>
+ {% endif %}
+
+ {% if LINKS %}
+ <div id="content">
+ <h5>Links</h5>
+ <ul>
+ {% for name, link in LINKS %}
+ <li><a href="{{ link }}">{{ name }}</a></li>
+ {% endfor %}
+ </ul>
+ </div>
+ {% endif %}
+
+ {% if SOCIAL %}
+ <div id="content">
+ <h5>Social</h5>
+ <ul>
+ {% for name, link in SOCIAL %}
+ <li><a href="{{ link }}">{{ name }}</a></li>
+ {% endfor %}
+ </ul>
+ </div>
+ {% endif %}
+ {% include "disclaimer.html" %}
+ <div id="bottomspacer">
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/SOB/templates/categories.html b/SOB/templates/categories.html
new file mode 100644
index 0000000..e311dfc
--- /dev/null
+++ b/SOB/templates/categories.html
@@ -0,0 +1,8 @@
+ {% extends "base.html" %}
+ {% block content %}
+ <ul>
+ {% for category, articles in categories %}
+ <li><a href="{{ category.url }}">{{ category }}</a></li>
+ {% endfor %}
+ </ul>
+ {% endblock %} \ No newline at end of file
diff --git a/SOB/templates/category.html b/SOB/templates/category.html
new file mode 100644
index 0000000..dd22dca
--- /dev/null
+++ b/SOB/templates/category.html
@@ -0,0 +1,4 @@
+ {% extends "index.html" %}
+ {% block title %}
+ {{ SITENAME }} - {{ category }}
+ {% endblock %}
diff --git a/SOB/templates/comments.html b/SOB/templates/comments.html
new file mode 100644
index 0000000..c06f007
--- /dev/null
+++ b/SOB/templates/comments.html
@@ -0,0 +1,3 @@
+ {% if DISQUS_SITENAME %}
+ <p><a href="{{ SITEURL }}/{{ article.url }}#disqus_thread">comments</a></p>
+ {% endif %}
diff --git a/SOB/templates/disclaimer.html b/SOB/templates/disclaimer.html
new file mode 100644
index 0000000..a5c73be
--- /dev/null
+++ b/SOB/templates/disclaimer.html
@@ -0,0 +1,6 @@
+ <div id="content">
+ <h3 style="text-align: center">DISCLAIMER</h3>
+ <p>
+The data and information provided on this website is for informational purposes only. The views or positions expressed on this website are the owner's alone. The content on this website is subject to change at any time at the owner's discretion. The owner of this website makes no representations as to the accuracy, completeness, currentness, suitability, validity, or humor of any information provided on this site. The owner assumes no liability for any errors, omissions, delays or any losses, injuries, damages, or lack of amusement arising from the downloading, displaying, or using of any information provided on this site. The owner of this site may lose his/her shit after writing this damn thing and gives a mean grumpy if my swearing bothers you.
+ </p>
+ </div> \ No newline at end of file
diff --git a/SOB/templates/index.html b/SOB/templates/index.html
new file mode 100644
index 0000000..6d2f77b
--- /dev/null
+++ b/SOB/templates/index.html
@@ -0,0 +1,59 @@
+ {% extends "base.html" %}
+ {% block content_title %}
+ {% endblock %}
+ {% block content %}
+ {% if articles %}
+ {% for article in articles_page.object_list %}
+
+ {# First item #}
+ {% if loop.first and not articles_page.has_previous() %}
+ <div id="content">
+
+ <a href="{{ SITEURL }}/{{ article.url }}"><h3>{{ article.title }}</h3></a>
+ {% include 'article_infos.html' %}
+{{ article.content }}
+ {% include 'article_infos_bottom.html' %}{% include 'comments.html' %}
+
+ </div>
+ {% if loop.length == 1 %}
+ {% include 'pagination.html' %}
+ {% endif %}
+
+ {% if loop.length > 1 %}
+
+ {% endif %}
+
+ {# other items #}
+ {% else %}
+ <div id="content">
+
+ <a href="{{ SITEURL }}/{{ article.url }}"><h3>{{ article.title }}</h3></a>
+ {% include 'article_infos.html' %}
+ {{ article.summary }}
+ {% include 'article_infos_bottom.html' %}
+ {% include 'comments.html' %}
+ <p>
+ <a href="{{ SITEURL }}/{{ article.url }}">Read More</a>
+ </p>
+
+
+ </div>
+ {% endif %}
+
+ {% if loop.last %}
+ <!-- /#posts-list -->
+ {% if loop.last and (articles_page.has_previous() or not articles_page.has_previous() and loop.length > 1) %}
+ {% include 'pagination.html' %}
+ {% endif %}
+ {% endif %}
+ {% endfor %}
+
+ {% else %}
+
+ <h3>Pages</h3>
+ {% for page in PAGES %}
+ <li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
+ {% endfor %}
+
+ {% endif %}
+ {% endblock content %}
diff --git a/SOB/templates/page.html b/SOB/templates/page.html
new file mode 100644
index 0000000..b303ad5
--- /dev/null
+++ b/SOB/templates/page.html
@@ -0,0 +1,14 @@
+ {% extends "base.html" %}
+ {% block title %}
+ {{ page.title }}
+ {% endblock %}
+
+ {% block content %}
+ <h3>{{ page.title }}</h3>
+ {% import 'translations.html' as translations with context %}
+ {{ translations.translations_for(page) }}
+ {% if PDF_PROCESSOR %}
+ <a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">PDF</a>
+ {% endif %}
+ {{ page.content }}
+ {% endblock %}
diff --git a/SOB/templates/pagination.html b/SOB/templates/pagination.html
new file mode 100644
index 0000000..1ccfc3d
--- /dev/null
+++ b/SOB/templates/pagination.html
@@ -0,0 +1,21 @@
+ {% if DEFAULT_PAGINATION %}
+ <div id="content">
+ <div class="pagination-centered">
+ <h6 class="subheader">Page {{ articles_page.number }} of {{ articles_paginator.num_pages }}</h6>
+
+ <p>
+ {% if articles_page.has_previous() %}
+ {% if articles_page.previous_page_number() == 1 %}
+ <a href="{{ SITEURL }}/{{ page_name }}.html">&laquo; Prev</a>
+ {% else %}
+ <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() }}.html">&laquo; Prev</a>
+ {% endif %}
+ {% endif %}
+
+ {% if articles_page.has_next() %}
+ <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">Next &raquo;</a>
+ {% endif %}
+ </p>
+ </div>
+ </div>
+ {% endif %}
diff --git a/SOB/templates/tag.html b/SOB/templates/tag.html
new file mode 100644
index 0000000..5d6f0d2
--- /dev/null
+++ b/SOB/templates/tag.html
@@ -0,0 +1,4 @@
+ {% extends "index.html" %}
+ {% block title %}
+ {{ SITENAME }} - {{ tag }}
+ {% endblock %}
diff --git a/SOB/templates/tags.html b/SOB/templates/tags.html
new file mode 100644
index 0000000..769363d
--- /dev/null
+++ b/SOB/templates/tags.html
@@ -0,0 +1,16 @@
+ {% extends "base.html" %}
+ {% block content %}
+ <div id="content">
+ <ul>
+ {% for tag, articles in tags|sort %}
+ <li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li>
+ <ul class="square">
+
+ {% for article in articles|sort %}
+ <li><a href="{{ SITEURL }}/{{ article.url }}"><small>{{ article.title }}</small></li>
+ {% endfor %}
+ </ul>
+ {% endfor %}
+ </ul>
+ </div>
+ {% endblock %} \ No newline at end of file
diff --git a/SOB/templates/translations.html b/SOB/templates/translations.html
new file mode 100644
index 0000000..48f4d64
--- /dev/null
+++ b/SOB/templates/translations.html
@@ -0,0 +1,8 @@
+ {% macro translations_for(article) %}
+ {% if article.translations %}
+ Translations:
+ {% for translation in article.translations %}
+ <a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
+ {% endfor %}
+ {% endif %}
+ {% endmacro %}