From 8d144fb0274113b6fef6f94ad85091f4efbd0e31 Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 26 Jan 2015 20:06:20 +0100 Subject: sleepmap-theme: Adding first clone (notmyidea-cms) with modifications --- sleepmap-theme/templates/archives.html | 13 +++++ sleepmap-theme/templates/article.html | 30 ++++++++++ sleepmap-theme/templates/article_infos.html | 14 +++++ sleepmap-theme/templates/author.html | 2 + sleepmap-theme/templates/authors.html | 0 sleepmap-theme/templates/base.html | 90 +++++++++++++++++++++++++++++ sleepmap-theme/templates/categories.html | 8 +++ sleepmap-theme/templates/category.html | 2 + sleepmap-theme/templates/github.html | 9 +++ sleepmap-theme/templates/index.html | 43 ++++++++++++++ sleepmap-theme/templates/page.html | 10 ++++ sleepmap-theme/templates/tag.html | 2 + sleepmap-theme/templates/taglist.html | 2 + sleepmap-theme/templates/tags.html | 0 sleepmap-theme/templates/translations.html | 6 ++ sleepmap-theme/templates/twitter.html | 3 + 16 files changed, 234 insertions(+) create mode 100644 sleepmap-theme/templates/archives.html create mode 100644 sleepmap-theme/templates/article.html create mode 100644 sleepmap-theme/templates/article_infos.html create mode 100644 sleepmap-theme/templates/author.html create mode 100644 sleepmap-theme/templates/authors.html create mode 100644 sleepmap-theme/templates/base.html create mode 100644 sleepmap-theme/templates/categories.html create mode 100644 sleepmap-theme/templates/category.html create mode 100644 sleepmap-theme/templates/github.html create mode 100644 sleepmap-theme/templates/index.html create mode 100644 sleepmap-theme/templates/page.html create mode 100644 sleepmap-theme/templates/tag.html create mode 100644 sleepmap-theme/templates/taglist.html create mode 100644 sleepmap-theme/templates/tags.html create mode 100644 sleepmap-theme/templates/translations.html create mode 100644 sleepmap-theme/templates/twitter.html (limited to 'sleepmap-theme/templates') diff --git a/sleepmap-theme/templates/archives.html b/sleepmap-theme/templates/archives.html new file mode 100644 index 0000000..5ba2c81 --- /dev/null +++ b/sleepmap-theme/templates/archives.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} +{% block content %} +
+

Archives for {{ SITENAME }}

+ +
+{% for article in dates %} +
{{ article.locale_date }}
+
{{ article.title }}
+{% endfor %} +
+
+{% endblock %} diff --git a/sleepmap-theme/templates/article.html b/sleepmap-theme/templates/article.html new file mode 100644 index 0000000..1d869c0 --- /dev/null +++ b/sleepmap-theme/templates/article.html @@ -0,0 +1,30 @@ +{% extends "base.html" %} +{% block title %}{{ article.title|striptags }}{% endblock %} +{% block content %} +
+
+

{{ article.title + }}

{% include 'twitter.html' %}
+
+ {% include 'article_infos.html' %} + {{ article.content }} +
+ {% if DISQUS_SITENAME %} +
+

Comments !

+
+ +
+ {% endif %} + +
+
+{% endblock %} diff --git a/sleepmap-theme/templates/article_infos.html b/sleepmap-theme/templates/article_infos.html new file mode 100644 index 0000000..a1993a0 --- /dev/null +++ b/sleepmap-theme/templates/article_infos.html @@ -0,0 +1,14 @@ + diff --git a/sleepmap-theme/templates/author.html b/sleepmap-theme/templates/author.html new file mode 100644 index 0000000..0b37290 --- /dev/null +++ b/sleepmap-theme/templates/author.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ author }}{% endblock %} diff --git a/sleepmap-theme/templates/authors.html b/sleepmap-theme/templates/authors.html new file mode 100644 index 0000000..e69de29 diff --git a/sleepmap-theme/templates/base.html b/sleepmap-theme/templates/base.html new file mode 100644 index 0000000..64b1748 --- /dev/null +++ b/sleepmap-theme/templates/base.html @@ -0,0 +1,90 @@ + + + + {% block title %}{{ SITENAME }}{%endblock%} + + + + {% if FEED_RSS %} + + {% endif %} + + + + + + + + + + + +{% include 'github.html' %} + + + {% block content %} + {% endblock %} + + + + + + diff --git a/sleepmap-theme/templates/categories.html b/sleepmap-theme/templates/categories.html new file mode 100644 index 0000000..7e4bd2c --- /dev/null +++ b/sleepmap-theme/templates/categories.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} +{% block content %} + +{% endblock %} diff --git a/sleepmap-theme/templates/category.html b/sleepmap-theme/templates/category.html new file mode 100644 index 0000000..56f8e93 --- /dev/null +++ b/sleepmap-theme/templates/category.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ category }}{% endblock %} diff --git a/sleepmap-theme/templates/github.html b/sleepmap-theme/templates/github.html new file mode 100644 index 0000000..75592ac --- /dev/null +++ b/sleepmap-theme/templates/github.html @@ -0,0 +1,9 @@ +{% if GITHUB_URL %} + +{% if GITHUB_POSITION != "left" %} +Fork me on GitHub +{% else %} +Fork me on GitHub +{% endif %} + +{% endif %} diff --git a/sleepmap-theme/templates/index.html b/sleepmap-theme/templates/index.html new file mode 100644 index 0000000..5e1e676 --- /dev/null +++ b/sleepmap-theme/templates/index.html @@ -0,0 +1,43 @@ +{% extends "base.html" %} +{% block content_title %}{% endblock %} +{% block content %} +{% if articles %} +{% for article in articles %} + {% if loop.index == 1 %} +
+ + {% if loop.length > 1 %} +

Other articles

+
+
    + {% endif %} + {% else %} +
  1. + {% endif %} +{% endfor %} +
+
+{% else %} +
+

Pages

+{% for page in PAGES %} +
  • {{ page.title }}
  • +{% endfor %} +
    +{% endif %} +{% endblock content %} diff --git a/sleepmap-theme/templates/page.html b/sleepmap-theme/templates/page.html new file mode 100644 index 0000000..9635fb8 --- /dev/null +++ b/sleepmap-theme/templates/page.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} +{% block title %}{{ page.title }}{% endblock %} +{% block content %} +
    +

    {{ page.title }}

    + {% if PDF_PROCESSOR %}get + the pdf{% endif %} + {{ page.content }} +
    +{% endblock %} diff --git a/sleepmap-theme/templates/tag.html b/sleepmap-theme/templates/tag.html new file mode 100644 index 0000000..68cdcba --- /dev/null +++ b/sleepmap-theme/templates/tag.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %} diff --git a/sleepmap-theme/templates/taglist.html b/sleepmap-theme/templates/taglist.html new file mode 100644 index 0000000..7ed6bf1 --- /dev/null +++ b/sleepmap-theme/templates/taglist.html @@ -0,0 +1,2 @@ +{% if article.tags %}

    tags: {% for tag in article.tags %}{{ tag }}{% endfor %}

    {% endif %} +{% if PDF_PROCESSOR %}get the pdf{% endif %}

    diff --git a/sleepmap-theme/templates/tags.html b/sleepmap-theme/templates/tags.html new file mode 100644 index 0000000..e69de29 diff --git a/sleepmap-theme/templates/translations.html b/sleepmap-theme/templates/translations.html new file mode 100644 index 0000000..f0a0fa2 --- /dev/null +++ b/sleepmap-theme/templates/translations.html @@ -0,0 +1,6 @@ +{% if article.translations %} +Translations: + {% for translation in article.translations %} + {{ translation.lang }} + {% endfor %} +{% endif %} \ No newline at end of file diff --git a/sleepmap-theme/templates/twitter.html b/sleepmap-theme/templates/twitter.html new file mode 100644 index 0000000..c6b159f --- /dev/null +++ b/sleepmap-theme/templates/twitter.html @@ -0,0 +1,3 @@ +{% if TWITTER_USERNAME %} +Tweet +{% endif %} \ No newline at end of file -- cgit v1.2.3-70-g09d2