From 19755337b123da8c02f729ef7f4041f0cbf60545 Mon Sep 17 00:00:00 2001 From: Jiachen Yang Date: Sun, 11 Mar 2012 00:59:53 +0900 Subject: init bootstrap2 --- bootstrap2/templates/analytics.html | 11 +++ bootstrap2/templates/archives.html | 15 ++++ bootstrap2/templates/article.html | 40 +++++++++ bootstrap2/templates/article_infos.html | 14 +++ bootstrap2/templates/author.html | 2 + bootstrap2/templates/authors.html | 0 bootstrap2/templates/base.html | 147 ++++++++++++++++++++++++++++++++ bootstrap2/templates/categories.html | 10 +++ bootstrap2/templates/category.html | 2 + bootstrap2/templates/comments.html | 7 ++ bootstrap2/templates/disqus_script.html | 11 +++ bootstrap2/templates/github.html | 9 ++ bootstrap2/templates/index.html | 71 +++++++++++++++ bootstrap2/templates/page.html | 15 ++++ bootstrap2/templates/pagination.html | 15 ++++ bootstrap2/templates/piwik.html | 16 ++++ bootstrap2/templates/tag.html | 2 + bootstrap2/templates/taglist.html | 12 +++ bootstrap2/templates/tags.html | 0 bootstrap2/templates/translations.html | 6 ++ bootstrap2/templates/twitter.html | 6 ++ 21 files changed, 411 insertions(+) create mode 100644 bootstrap2/templates/analytics.html create mode 100644 bootstrap2/templates/archives.html create mode 100644 bootstrap2/templates/article.html create mode 100644 bootstrap2/templates/article_infos.html create mode 100644 bootstrap2/templates/author.html create mode 100644 bootstrap2/templates/authors.html create mode 100644 bootstrap2/templates/base.html create mode 100644 bootstrap2/templates/categories.html create mode 100644 bootstrap2/templates/category.html create mode 100644 bootstrap2/templates/comments.html create mode 100644 bootstrap2/templates/disqus_script.html create mode 100644 bootstrap2/templates/github.html create mode 100644 bootstrap2/templates/index.html create mode 100644 bootstrap2/templates/page.html create mode 100644 bootstrap2/templates/pagination.html create mode 100644 bootstrap2/templates/piwik.html create mode 100644 bootstrap2/templates/tag.html create mode 100644 bootstrap2/templates/taglist.html create mode 100644 bootstrap2/templates/tags.html create mode 100644 bootstrap2/templates/translations.html create mode 100644 bootstrap2/templates/twitter.html (limited to 'bootstrap2/templates') diff --git a/bootstrap2/templates/analytics.html b/bootstrap2/templates/analytics.html new file mode 100644 index 0000000..ba174fc --- /dev/null +++ b/bootstrap2/templates/analytics.html @@ -0,0 +1,11 @@ +{% if GOOGLE_ANALYTICS %} + + +{% endif %} \ No newline at end of file diff --git a/bootstrap2/templates/archives.html b/bootstrap2/templates/archives.html new file mode 100644 index 0000000..42870c2 --- /dev/null +++ b/bootstrap2/templates/archives.html @@ -0,0 +1,15 @@ +{% extends "base.html" %} +{% block content %} +
+
+

Archives for {{ SITENAME }}

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

+ + {{ article.title}} + +

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

Comments !

+
+ +
+ {% endif %} + +
+
+
+{% endblock %} diff --git a/bootstrap2/templates/article_infos.html b/bootstrap2/templates/article_infos.html new file mode 100644 index 0000000..a1993a0 --- /dev/null +++ b/bootstrap2/templates/article_infos.html @@ -0,0 +1,14 @@ + diff --git a/bootstrap2/templates/author.html b/bootstrap2/templates/author.html new file mode 100644 index 0000000..0b37290 --- /dev/null +++ b/bootstrap2/templates/author.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ author }}{% endblock %} diff --git a/bootstrap2/templates/authors.html b/bootstrap2/templates/authors.html new file mode 100644 index 0000000..e69de29 diff --git a/bootstrap2/templates/base.html b/bootstrap2/templates/base.html new file mode 100644 index 0000000..6687460 --- /dev/null +++ b/bootstrap2/templates/base.html @@ -0,0 +1,147 @@ + + + + + {% block title %}{{ SITENAME }}{%endblock%} + + + + + + + + + + + + + + + + + + + + {% if FEED_RSS %} + + {% endif %} + + + + + + {% include 'github.html' %} + + + +
+
+ +
+ {% block content %} + {% endblock %} +
+ +
+ +
+ + +
+ +
+ + + +
+ + + {% include 'analytics.html' %} + {% include 'piwik.html' %} + {% include 'disqus_script.html' %} + + + + + + + + + + + + + + + + + + + + + diff --git a/bootstrap2/templates/categories.html b/bootstrap2/templates/categories.html new file mode 100644 index 0000000..911d6ec --- /dev/null +++ b/bootstrap2/templates/categories.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} +{% block content %} +
+ +
+{% endblock %} diff --git a/bootstrap2/templates/category.html b/bootstrap2/templates/category.html new file mode 100644 index 0000000..56f8e93 --- /dev/null +++ b/bootstrap2/templates/category.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ category }}{% endblock %} diff --git a/bootstrap2/templates/comments.html b/bootstrap2/templates/comments.html new file mode 100644 index 0000000..806d9a0 --- /dev/null +++ b/bootstrap2/templates/comments.html @@ -0,0 +1,7 @@ +{% if DISQUS_SITENAME %} +

There are + + comments + . +

+{% endif %} diff --git a/bootstrap2/templates/disqus_script.html b/bootstrap2/templates/disqus_script.html new file mode 100644 index 0000000..c4f442c --- /dev/null +++ b/bootstrap2/templates/disqus_script.html @@ -0,0 +1,11 @@ +{% if DISQUS_SITENAME %} + +{% endif %} diff --git a/bootstrap2/templates/github.html b/bootstrap2/templates/github.html new file mode 100644 index 0000000..75592ac --- /dev/null +++ b/bootstrap2/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/bootstrap2/templates/index.html b/bootstrap2/templates/index.html new file mode 100644 index 0000000..2a5b726 --- /dev/null +++ b/bootstrap2/templates/index.html @@ -0,0 +1,71 @@ +{% 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() %} +
+ +
+ {% if loop.length > 1 %} +
+
+

Other articles

+
+
    + {% endif %} + {# other items #} + {% else %} + {% if loop.first and articles_page.has_previous %} +
    +
    +
      + {% endif %} +
    1. +
      +
      +
      +

      {{ article.title }}

      +
      + +
      + {% include 'article_infos.html' %} + {{ article.summary }} + read more + {% include 'comments.html' %} +
      +
      +
      +
    2. + {% endif %} + {% if loop.last and (articles_page.has_previous() + or not articles_page.has_previous() and loop.length > 1) %} + {% include 'pagination.html' %} + {% endif %} + {% endfor %} + {% if loop.length > 1 or articles_page.has_previous() %} +
    +
    +
    + {% endif %} +{% else %} +
    +
    +

    Pages

    + {% for page in PAGES %} +
  1. {{ page.title }}
  2. + {% endfor %} +
    +
    +{% endif %} +{% endblock content %} diff --git a/bootstrap2/templates/page.html b/bootstrap2/templates/page.html new file mode 100644 index 0000000..b4a289e --- /dev/null +++ b/bootstrap2/templates/page.html @@ -0,0 +1,15 @@ +{% 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/bootstrap2/templates/pagination.html b/bootstrap2/templates/pagination.html new file mode 100644 index 0000000..83c587a --- /dev/null +++ b/bootstrap2/templates/pagination.html @@ -0,0 +1,15 @@ +{% if DEFAULT_PAGINATION %} +

    + {% if articles_page.has_previous() %} + {% if articles_page.previous_page_number() == 1 %} + « + {% else %} + « + {% endif %} + {% endif %} + Page {{ articles_page.number }} / {{ articles_paginator.num_pages }} + {% if articles_page.has_next() %} + » + {% endif %} +

    +{% endif %} diff --git a/bootstrap2/templates/piwik.html b/bootstrap2/templates/piwik.html new file mode 100644 index 0000000..ff459af --- /dev/null +++ b/bootstrap2/templates/piwik.html @@ -0,0 +1,16 @@ +{% if PIWIK_URL and PIWIK_SITE_ID %} + +{% endif %} \ No newline at end of file diff --git a/bootstrap2/templates/tag.html b/bootstrap2/templates/tag.html new file mode 100644 index 0000000..68cdcba --- /dev/null +++ b/bootstrap2/templates/tag.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %} diff --git a/bootstrap2/templates/taglist.html b/bootstrap2/templates/taglist.html new file mode 100644 index 0000000..a4b3446 --- /dev/null +++ b/bootstrap2/templates/taglist.html @@ -0,0 +1,12 @@ +{% if article.tags %} +

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

    +{% endif %} +{% if PDF_PROCESSOR %} +

    + get the pdf +

    +{% endif %} diff --git a/bootstrap2/templates/tags.html b/bootstrap2/templates/tags.html new file mode 100644 index 0000000..e69de29 diff --git a/bootstrap2/templates/translations.html b/bootstrap2/templates/translations.html new file mode 100644 index 0000000..0079883 --- /dev/null +++ b/bootstrap2/templates/translations.html @@ -0,0 +1,6 @@ +{% if article.translations %} +Translations: + {% for translation in article.translations %} + {{ translation.lang }} + {% endfor %} +{% endif %} diff --git a/bootstrap2/templates/twitter.html b/bootstrap2/templates/twitter.html new file mode 100644 index 0000000..b758853 --- /dev/null +++ b/bootstrap2/templates/twitter.html @@ -0,0 +1,6 @@ +{% if TWITTER_USERNAME %} + + +{% endif %} -- cgit v1.1