From 802d891506bb6ef2f9b57a5927f1ddd2349d2f9e Mon Sep 17 00:00:00 2001 From: Scott Kensell Date: Sat, 17 May 2014 19:49:35 +0200 Subject: Copied the SOMA template --- SoMA2/templates/analytics.html | 12 +++++++ SoMA2/templates/archives.html | 13 ++++++++ SoMA2/templates/article.html | 37 +++++++++++++++++++++ SoMA2/templates/article_infos.html | 16 ++++++++++ SoMA2/templates/author.html | 2 ++ SoMA2/templates/authors.html | 0 SoMA2/templates/base.html | 62 ++++++++++++++++++++++++++++++++++++ SoMA2/templates/category.html | 2 ++ SoMA2/templates/comments.html | 1 + SoMA2/templates/disqus_script.html | 11 +++++++ SoMA2/templates/facebook_script.html | 12 +++++++ SoMA2/templates/github.html | 9 ++++++ SoMA2/templates/index.html | 33 +++++++++++++++++++ SoMA2/templates/page.html | 12 +++++++ SoMA2/templates/pagination.html | 15 +++++++++ SoMA2/templates/piwik.html | 16 ++++++++++ SoMA2/templates/tag.html | 2 ++ SoMA2/templates/taglist.html | 2 ++ SoMA2/templates/translations.html | 8 +++++ SoMA2/templates/twitter.html | 3 ++ 20 files changed, 268 insertions(+) create mode 100644 SoMA2/templates/analytics.html create mode 100644 SoMA2/templates/archives.html create mode 100644 SoMA2/templates/article.html create mode 100644 SoMA2/templates/article_infos.html create mode 100644 SoMA2/templates/author.html create mode 100644 SoMA2/templates/authors.html create mode 100644 SoMA2/templates/base.html create mode 100644 SoMA2/templates/category.html create mode 100644 SoMA2/templates/comments.html create mode 100644 SoMA2/templates/disqus_script.html create mode 100644 SoMA2/templates/facebook_script.html create mode 100644 SoMA2/templates/github.html create mode 100644 SoMA2/templates/index.html create mode 100644 SoMA2/templates/page.html create mode 100644 SoMA2/templates/pagination.html create mode 100644 SoMA2/templates/piwik.html create mode 100644 SoMA2/templates/tag.html create mode 100644 SoMA2/templates/taglist.html create mode 100644 SoMA2/templates/translations.html create mode 100644 SoMA2/templates/twitter.html (limited to 'SoMA2/templates') diff --git a/SoMA2/templates/analytics.html b/SoMA2/templates/analytics.html new file mode 100644 index 0000000..4de2c86 --- /dev/null +++ b/SoMA2/templates/analytics.html @@ -0,0 +1,12 @@ +{% if GOOGLE_ANALYTICS %} + +{% endif %} \ No newline at end of file diff --git a/SoMA2/templates/archives.html b/SoMA2/templates/archives.html new file mode 100644 index 0000000..f678494 --- /dev/null +++ b/SoMA2/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/SoMA2/templates/article.html b/SoMA2/templates/article.html new file mode 100644 index 0000000..70cfa9e --- /dev/null +++ b/SoMA2/templates/article.html @@ -0,0 +1,37 @@ +{% extends "base.html" %} +{% block title %}{{ article.title|striptags }}{% endblock %} +{% block content %} +
+
+
+
+

+ {{ article.title}}

+ +
+ +
+ {% include 'article_infos.html' %} + {{ article.content }} +
+ {% include 'twitter.html' %} + {% if DISQUS_SITENAME %} +
+ +
+ +
+ {% endif %} + +
+
+
+{% endblock %} diff --git a/SoMA2/templates/article_infos.html b/SoMA2/templates/article_infos.html new file mode 100644 index 0000000..d5c28c6 --- /dev/null +++ b/SoMA2/templates/article_infos.html @@ -0,0 +1,16 @@ +
+ +{% include 'taglist.html' %} +{% import 'translations.html' as translations with context %} +{{ translations.translations_for(article) }} +
diff --git a/SoMA2/templates/author.html b/SoMA2/templates/author.html new file mode 100644 index 0000000..0b37290 --- /dev/null +++ b/SoMA2/templates/author.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ author }}{% endblock %} diff --git a/SoMA2/templates/authors.html b/SoMA2/templates/authors.html new file mode 100644 index 0000000..e69de29 diff --git a/SoMA2/templates/base.html b/SoMA2/templates/base.html new file mode 100644 index 0000000..47159af --- /dev/null +++ b/SoMA2/templates/base.html @@ -0,0 +1,62 @@ + + + + {% block title %}{{ SITENAME }}{%endblock%} + + + + + {% if FEED_ALL_ATOM %} + + {% endif %} + {% if FEED_ALL_RSS %} + + {% endif %} + + + + + + + + + + + + +{% include 'github.html' %} + + + +

{% if SITESUBTITLE %}{{ SITESUBTITLE }}{% endif %}LaunchYard logo
skensell
Learn more →

+ + {% block content %} + {% endblock %} +
+ + +
+ + + +{% include 'analytics.html' %} +{% include 'piwik.html' %} +{% include 'facebook_script.html' %} +{% include 'disqus_script.html' %} + + diff --git a/SoMA2/templates/category.html b/SoMA2/templates/category.html new file mode 100644 index 0000000..56f8e93 --- /dev/null +++ b/SoMA2/templates/category.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ category }}{% endblock %} diff --git a/SoMA2/templates/comments.html b/SoMA2/templates/comments.html new file mode 100644 index 0000000..bb033c0 --- /dev/null +++ b/SoMA2/templates/comments.html @@ -0,0 +1 @@ +{% if DISQUS_SITENAME %}

There are comments.

{% endif %} diff --git a/SoMA2/templates/disqus_script.html b/SoMA2/templates/disqus_script.html new file mode 100644 index 0000000..c4f442c --- /dev/null +++ b/SoMA2/templates/disqus_script.html @@ -0,0 +1,11 @@ +{% if DISQUS_SITENAME %} + +{% endif %} diff --git a/SoMA2/templates/facebook_script.html b/SoMA2/templates/facebook_script.html new file mode 100644 index 0000000..03e1a2a --- /dev/null +++ b/SoMA2/templates/facebook_script.html @@ -0,0 +1,12 @@ +{% if FACEBOOK_APP_ID %} +
+ +{% endif %} diff --git a/SoMA2/templates/github.html b/SoMA2/templates/github.html new file mode 100644 index 0000000..75592ac --- /dev/null +++ b/SoMA2/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/SoMA2/templates/index.html b/SoMA2/templates/index.html new file mode 100644 index 0000000..4f35eee --- /dev/null +++ b/SoMA2/templates/index.html @@ -0,0 +1,33 @@ +{% extends "base.html" %} +{% block content_title %}{% endblock %} +{% block content %} +{% if articles %} + {% for article in articles_page.object_list %} + + {# First item #} + + + + + {% endfor %} +{% else %} +
+
+

Pages

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

    {{ page.title }}

    + {% import 'translations.html' as translations with context %} + {{ translations.translations_for(page) }} + {% if PDF_PROCESSOR %}get + the pdf{% endif %} + {{ page.content }} +
    +{% endblock %} diff --git a/SoMA2/templates/pagination.html b/SoMA2/templates/pagination.html new file mode 100644 index 0000000..b8553fd --- /dev/null +++ b/SoMA2/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 %} + + {% if articles_page.has_next() %} + + {% endif %} +
    +{% endif %} diff --git a/SoMA2/templates/piwik.html b/SoMA2/templates/piwik.html new file mode 100644 index 0000000..ff459af --- /dev/null +++ b/SoMA2/templates/piwik.html @@ -0,0 +1,16 @@ +{% if PIWIK_URL and PIWIK_SITE_ID %} + +{% endif %} \ No newline at end of file diff --git a/SoMA2/templates/tag.html b/SoMA2/templates/tag.html new file mode 100644 index 0000000..68cdcba --- /dev/null +++ b/SoMA2/templates/tag.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %} diff --git a/SoMA2/templates/taglist.html b/SoMA2/templates/taglist.html new file mode 100644 index 0000000..1617162 --- /dev/null +++ b/SoMA2/templates/taglist.html @@ -0,0 +1,2 @@ +{% if article.tags %}

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

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

    get the pdf

    {% endif %} diff --git a/SoMA2/templates/translations.html b/SoMA2/templates/translations.html new file mode 100644 index 0000000..ca03a2c --- /dev/null +++ b/SoMA2/templates/translations.html @@ -0,0 +1,8 @@ +{% macro translations_for(article) %} +{% if article.translations %} +Translations: + {% for translation in article.translations %} + {{ translation.lang }} + {% endfor %} +{% endif %} +{% endmacro %} diff --git a/SoMA2/templates/twitter.html b/SoMA2/templates/twitter.html new file mode 100644 index 0000000..b4328e9 --- /dev/null +++ b/SoMA2/templates/twitter.html @@ -0,0 +1,3 @@ +{% if TWITTER_USERNAME %} +Tweet

    +{% endif %} -- cgit From aad6ac30fcdb6a6bd03290fa6373da112fadb2f2 Mon Sep 17 00:00:00 2001 From: Scott Kensell Date: Sat, 17 May 2014 21:05:54 +0200 Subject: Get rid of Launchyard stuff. --- SoMA2/templates/base.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'SoMA2/templates') diff --git a/SoMA2/templates/base.html b/SoMA2/templates/base.html index 47159af..55ddff1 100644 --- a/SoMA2/templates/base.html +++ b/SoMA2/templates/base.html @@ -4,7 +4,7 @@ {% block title %}{{ SITENAME }}{%endblock%} - + {% if FEED_ALL_ATOM %} @@ -34,7 +34,7 @@

    {% if SITESUBTITLE %}{{ SITESUBTITLE }}{% endif %}

    --> - + {% block content %} {% endblock %} @@ -46,7 +46,7 @@