From d38c4094a1aef8be93218adeefe66b20308d96e3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 21 Nov 2014 01:12:26 -0500 Subject: Initial website Markdown conversion. --- themes/lv2/templates/archives.html | 24 +++ themes/lv2/templates/article.html | 96 +++++++++++ themes/lv2/templates/article_list.html | 22 +++ themes/lv2/templates/author.html | 13 ++ themes/lv2/templates/authors.html | 19 ++ themes/lv2/templates/base.html | 192 +++++++++++++++++++++ themes/lv2/templates/categories.html | 36 ++++ themes/lv2/templates/category.html | 15 ++ themes/lv2/templates/includes/aboutme.html | 9 + themes/lv2/templates/includes/addthis.html | 20 +++ themes/lv2/templates/includes/article_info.html | 36 ++++ themes/lv2/templates/includes/cc-license.html | 64 +++++++ themes/lv2/templates/includes/comment_count.html | 1 + themes/lv2/templates/includes/comments.html | 41 +++++ themes/lv2/templates/includes/disqus_script.html | 17 ++ themes/lv2/templates/includes/footer.html | 23 +++ themes/lv2/templates/includes/ga.html | 32 ++++ themes/lv2/templates/includes/github-js.html | 35 ++++ themes/lv2/templates/includes/github.html | 11 ++ themes/lv2/templates/includes/links.html | 13 ++ .../templates/includes/liquid_tags_nb_header.html | 157 +++++++++++++++++ themes/lv2/templates/includes/pagination.html | 38 ++++ themes/lv2/templates/includes/piwik.html | 20 +++ themes/lv2/templates/includes/related-posts.html | 10 ++ themes/lv2/templates/includes/series.html | 22 +++ themes/lv2/templates/includes/sidebar.html | 104 +++++++++++ themes/lv2/templates/includes/taglist.html | 9 + themes/lv2/templates/includes/translations.html | 8 + themes/lv2/templates/includes/twitter_cards.html | 27 +++ .../lv2/templates/includes/twitter_timeline.html | 10 ++ themes/lv2/templates/index.html | 4 + themes/lv2/templates/page.html | 64 +++++++ themes/lv2/templates/tag.html | 15 ++ themes/lv2/templates/tags.html | 37 ++++ 34 files changed, 1244 insertions(+) create mode 100644 themes/lv2/templates/archives.html create mode 100644 themes/lv2/templates/article.html create mode 100644 themes/lv2/templates/article_list.html create mode 100644 themes/lv2/templates/author.html create mode 100644 themes/lv2/templates/authors.html create mode 100644 themes/lv2/templates/base.html create mode 100644 themes/lv2/templates/categories.html create mode 100644 themes/lv2/templates/category.html create mode 100644 themes/lv2/templates/includes/aboutme.html create mode 100644 themes/lv2/templates/includes/addthis.html create mode 100644 themes/lv2/templates/includes/article_info.html create mode 100644 themes/lv2/templates/includes/cc-license.html create mode 100644 themes/lv2/templates/includes/comment_count.html create mode 100644 themes/lv2/templates/includes/comments.html create mode 100644 themes/lv2/templates/includes/disqus_script.html create mode 100644 themes/lv2/templates/includes/footer.html create mode 100644 themes/lv2/templates/includes/ga.html create mode 100644 themes/lv2/templates/includes/github-js.html create mode 100644 themes/lv2/templates/includes/github.html create mode 100644 themes/lv2/templates/includes/links.html create mode 100644 themes/lv2/templates/includes/liquid_tags_nb_header.html create mode 100644 themes/lv2/templates/includes/pagination.html create mode 100644 themes/lv2/templates/includes/piwik.html create mode 100644 themes/lv2/templates/includes/related-posts.html create mode 100644 themes/lv2/templates/includes/series.html create mode 100644 themes/lv2/templates/includes/sidebar.html create mode 100644 themes/lv2/templates/includes/taglist.html create mode 100644 themes/lv2/templates/includes/translations.html create mode 100644 themes/lv2/templates/includes/twitter_cards.html create mode 100644 themes/lv2/templates/includes/twitter_timeline.html create mode 100644 themes/lv2/templates/index.html create mode 100644 themes/lv2/templates/page.html create mode 100644 themes/lv2/templates/tag.html create mode 100644 themes/lv2/templates/tags.html (limited to 'themes/lv2/templates') diff --git a/themes/lv2/templates/archives.html b/themes/lv2/templates/archives.html new file mode 100644 index 0000000..8875de0 --- /dev/null +++ b/themes/lv2/templates/archives.html @@ -0,0 +1,24 @@ +{% extends "base.html" %} +{% block title %}Archives - {{ SITENAME }}{% endblock %} +{% block breadcrumbs %} + {% if DISPLAY_BREADCRUMBS %} + + {% endif %} +{% endblock %} + +{% block content %} +
+

Archives for {{ SITENAME }}

+
+ {% for article in dates %} +

+ + {{ article.title }}{% if article.subtitle %} - {{ article.subtitle }}{% endif %} +

+ {% endfor %} +
+
+{% endblock %} diff --git a/themes/lv2/templates/article.html b/themes/lv2/templates/article.html new file mode 100644 index 0000000..fcfab20 --- /dev/null +++ b/themes/lv2/templates/article.html @@ -0,0 +1,96 @@ +{% extends "base.html" %} +{% block title %}{{ article.title|striptags }} - {{ SITENAME }}{% endblock %} +{% block html_lang %}{{ article.lang }}{% endblock %} +{% block meta %} + {% if article.author %} + + {% else %} + + {% endif %} + {% if article.tags %} + + {% endif %} + {% if article.summary %} + + {% endif %} +{% endblock %} +{% block opengraph %} + {% if OPEN_GRAPH_FB_APP_ID %} + + + + + + + + {% if article.category %} + + {% endif %} + {% for tag in article.tags %} + + {% endfor %} + {% if article.author %} + + {% elif AUTHOR %} + + {% endif %} + {% if article.og_image %} + + {% elif OPEN_GRAPH_IMAGE %} + + {% endif %} + {% endif %} +{% endblock %} + +{% block canonical_rel %} + +{% endblock %} + +{% block breadcrumbs %} + {% if DISPLAY_BREADCRUMBS %} + {% if DISPLAY_CATEGORY_IN_BREADCRUMBS %} + + {% else %} + + {% endif %} + {% endif %} +{% endblock %} + +{% block content %} +
+
+ +
+
+
+ {% include "includes/article_info.html" %} +
+
+ {{ article.content }} +
+ + {% include 'includes/related-posts.html' %} + {% include 'includes/series.html' %} + {% include 'includes/addthis.html' %} + {% include 'includes/comments.html' %} +
+
+ +{% endblock %} diff --git a/themes/lv2/templates/article_list.html b/themes/lv2/templates/article_list.html new file mode 100644 index 0000000..2d3c8cd --- /dev/null +++ b/themes/lv2/templates/article_list.html @@ -0,0 +1,22 @@ +{% extends "base.html" %} +{% block content %} + {% if articles %} + {% for article in (articles_page.object_list if articles_page else articles) %} +
+

{{ article.title }}

+ {% if DISPLAY_ARTICLE_INFO_ON_INDEX %} +
+ {% include "includes/article_info.html" %} +
+ {% endif %} +
{{ article.summary }} + {% include 'includes/comment_count.html' %} + more ... +
+
+
+ {% endfor %} + {% endif %} + + {% include 'includes/pagination.html' %} +{% endblock content %} diff --git a/themes/lv2/templates/author.html b/themes/lv2/templates/author.html new file mode 100644 index 0000000..07dab6e --- /dev/null +++ b/themes/lv2/templates/author.html @@ -0,0 +1,13 @@ +{% extends "article_list.html" %} + +{% block title %}Articles by {{ author }} - {{ SITENAME }}{% endblock %} + +{% block breadcrumbs %} + {% if DISPLAY_BREADCRUMBS %} + + {% endif %} +{% endblock %} diff --git a/themes/lv2/templates/authors.html b/themes/lv2/templates/authors.html new file mode 100644 index 0000000..9aa93ac --- /dev/null +++ b/themes/lv2/templates/authors.html @@ -0,0 +1,19 @@ +{% extends "base.html" %} + +{% block title %}Authors - {{ SITENAME }}{% endblock %} + +{% block breadcrumbs %} + {% if DISPLAY_BREADCRUMBS %} + + {% endif %} +{% endblock %} + +{% block content %} +

Authors on {{ SITENAME }}

+ {% for author, articles in authors|sort %} +
  • {{ author }} ({{ articles|count }})
  • + {% endfor %} +{% endblock %} diff --git a/themes/lv2/templates/base.html b/themes/lv2/templates/base.html new file mode 100644 index 0000000..ae04fb1 --- /dev/null +++ b/themes/lv2/templates/base.html @@ -0,0 +1,192 @@ + + + + {% block title %}{{ SITENAME }}{% endblock %} + + + + + + {% if 'liquid_tags.notebook' in PLUGINS %} + {% include 'includes/liquid_tags_nb_header.html' %} + {% endif %} + + {# Favicons are a touchy subject. For reasoning for the following code, see: http://stackoverflow.com/a/23851464/872397 #} + {% if FAVICON %} + + {% endif %} + {% if FAVICON_IE %} + + {% endif %} + {% if TOUCHICON %} + + {% endif %} + + {% block canonical_rel %}{% endblock %} + + {% block meta %} + + {% endblock %} + + + {% if article and article.latex %} + {{ article.latex }} + {% endif %} + {% if page and page.latex %} + {{ page.latex }} + {% endif %} + + + {# Open Graph tags #} + {% if USE_OPEN_GRAPH is not defined %} + {% set USE_OPEN_GRAPH = True %} + {% endif %} + {% if USE_OPEN_GRAPH %} + {% block opengraph %} + + {% if OPEN_GRAPH_FB_APP_ID %} + + {% endif %} + + + + + + {% if OPEN_GRAPH_IMAGE %} + + {% endif %} + {% endblock %} + {% endif %} + + {# Twitter Cards tags #} + {% include 'includes/twitter_cards.html' %} + + + {% if BOOTSTRAP_THEME %} + + {% else %} + + {% endif %} + + + + {% if DOCUTIL_CSS %} + + {% endif %} + {% if TYPOGRIFY %} + + {% endif %} + + {% if CUSTOM_CSS %} + + {% endif %} + + {% if FEED_ALL_ATOM %} + + {% endif %} + {% if FEED_ALL_RSS %} + + {% endif %} + + {% if tag and TAG_FEED_ATOM %} + + {% endif %} + + {% if category and CATEGORY_FEED_ATOM %} + + {% endif %} + + + + + + +
    +
    + {% if not HIDE_SIDEBAR or SHOW_ABOUTME %} +
    + {% else %} +
    + {% endif %} + {% block breadcrumbs %} + {% endblock %} + + {% block content %} + {% endblock %} +
    + {% if ABOUT_ME %} +
    + {% include 'includes/aboutme.html' %} +
    + {% endif %} + {% if not HIDE_SIDEBAR %} + + {% endif %} +
    +
    +{% include 'includes/footer.html' %} + + + + + + + + + +{% include 'includes/github-js.html' %} +{% include 'includes/disqus_script.html' %} +{% include 'includes/ga.html' %} +{% include 'includes/piwik.html' %} + + diff --git a/themes/lv2/templates/categories.html b/themes/lv2/templates/categories.html new file mode 100644 index 0000000..6898f97 --- /dev/null +++ b/themes/lv2/templates/categories.html @@ -0,0 +1,36 @@ +{% extends "base.html" %} +{% block title %}Categories - {{ SITENAME }}{% endblock %} + +{% block breadcrumbs %} + {% if DISPLAY_BREADCRUMBS %} + + {% endif %} +{% endblock %} + +{% block content %} +
    +

    All Categories for {{ SITENAME }}

    +
    + {% for category, articles in categories %} +
    + +
    +
    + {% for article in articles %} +

    {{ article.title }}

    + {% endfor %} +
    +
    +
    + {% endfor %} +
    + +
    +{% endblock %} diff --git a/themes/lv2/templates/category.html b/themes/lv2/templates/category.html new file mode 100644 index 0000000..0eac7dd --- /dev/null +++ b/themes/lv2/templates/category.html @@ -0,0 +1,15 @@ +{% extends "article_list.html" %} +{% block title %}{{ category }} - {{ SITENAME }}{% endblock %} +{% block meta %} + + +{% endblock %} +{% block breadcrumbs %} + {% if DISPLAY_BREADCRUMBS %} + + {% endif %} +{% endblock %} diff --git a/themes/lv2/templates/includes/aboutme.html b/themes/lv2/templates/includes/aboutme.html new file mode 100644 index 0000000..ba56070 --- /dev/null +++ b/themes/lv2/templates/includes/aboutme.html @@ -0,0 +1,9 @@ +{% if AVATAR %} +

    + +

    +{% endif %} +

    + About {{ AUTHOR }}
    + {{ ABOUT_ME }} +

    diff --git a/themes/lv2/templates/includes/addthis.html b/themes/lv2/templates/includes/addthis.html new file mode 100644 index 0000000..12e2e8a --- /dev/null +++ b/themes/lv2/templates/includes/addthis.html @@ -0,0 +1,20 @@ +{% if ADDTHIS_PROFILE %} +
    + +
    + {% if ADDTHIS_FACEBOOK_LIKE|default(true) %} + + {% endif %} + {% if ADDTHIS_TWEET|default(true) %} + + {% endif %} + {% if ADDTHIS_GOOGLE_PLUSONE|default(true) %} + + {% endif %} +
    + {% if ADDTHIS_DATA_TRACK_ADDRESSBAR|default(true) %} + + {% endif %} + + +{% endif %} \ No newline at end of file diff --git a/themes/lv2/templates/includes/article_info.html b/themes/lv2/templates/includes/article_info.html new file mode 100644 index 0000000..787c360 --- /dev/null +++ b/themes/lv2/templates/includes/article_info.html @@ -0,0 +1,36 @@ +
    + Date + + + + + {% if SHOW_SERIES %} + {% if article.series %} + Series + Part {{ article.series.index}} of {{ article.series.name }} + {% endif %} + {% endif %} + + + {% if SHOW_ARTICLE_AUTHOR %} + {% if article.author %} + By + {{ article.author }} + {% endif %} + {% endif %} + + {% if SHOW_ARTICLE_CATEGORY %} + Category + {{ article.category }} + {% endif %} + + {% if PDF_PROCESSOR %} + + PDF + + {% endif %} + + {% include 'includes/taglist.html' %} + {% import 'includes/translations.html' as translations with context %} + {{ translations.translations_for(article) }} +
    diff --git a/themes/lv2/templates/includes/cc-license.html b/themes/lv2/templates/includes/cc-license.html new file mode 100644 index 0000000..73c7720 --- /dev/null +++ b/themes/lv2/templates/includes/cc-license.html @@ -0,0 +1,64 @@ +{# ------------------------------------------------------------------------ #} +{# Creative Commons license mark generator for Jinja2 templates, including #} +{# Pelican-generated static sites (or blogs). #} +{# ------------------------------------------------------------------------ #} +{# To use, put this file in a location where your template can import it. #} +{# Then import into the template, for example like this: #} +{# {% from '/path/to/where/you/placed/the/file' import cc_license_mark %} #} +{# Then call as simply as {{ cc_license_mark("CC-BY") }}. #} +{# #} +{# If full attribution markup is desired in a Pelican template, the #} +{# attr_props dict can be defaulted to the following when calling the macro:#} +{# attr_props={'title':SITENAME,'name':AUTHOR,'url':SITEURL} +{# ------------------------------------------------------------------------ #} +{# Generate a license mark for Creative Commons licensed content. #} +{# Choose the license either by name (CC-BY, CC-BY-SA, CC-BY-NC-SA, or #} +{# CC-BY-NC-ND), or by its features (allow derivatives: Yes, No, ShareAlike;#} +{# allow commercial reuse: Yes, No). Name, if provided, takes precedence, #} +{# and case is ignored. #} +{# #} +{# Optional: #} +{# br_after_icon: if true put a line break after the license icon #} +{# attr_markup: if true create markup for fulll attribution #} +{# attr_props: if attr_markup, a dict with title, name, and url keys #} +{# specifying how under which title, to which creator, and #} +{# to which URL to attribute the work #} +{# The parameters all mirror the Creative Commone license chooser: #} +{# http://creativecommons.org/choose/ #} +{# ------------------------------------------------------------------------ #} +{# Copyright (c) 1994 Hilmar Lapp, hlapp@drycafe.net. #} +{# Licensed under the terms of the MIT License. #} +{# Source at http://github.com/hlapp/cc-tools. Please fork & contribute. #} +{# ------------------------------------------------------------------------ #} +{% macro cc_license_mark(cc_name, + derivatives, commercial, + br_after_icon=false, + attr_markup=false, + attr_props={}) %} + {% if cc_name %} + {% set cc_name = cc_name|lower|replace("cc-","") %} + {% else %} + {% set cc_name = "by" %} + {% set cc_title_suffix = "" %} + {% if (not commercial) or (commercial|lower == "no") %} + {% set cc_name = cc_name ~ "-nc" %} + {% set cc_title_suffix = "-NonCommercial" %} + {% endif %} + {% if derivatives|lower == "no" %} + {% set cc_name = cc_name ~ "-nd" %} + {% set cc_title_suffix = cc_title_suffix ~ "-NoDerivatives" %} + {% elif derivatives|lower == "sharealike" %} + {% set cc_name = cc_name ~ "-sa" %} + {% set cc_title_suffix = cc_title_suffix ~ "-ShareAlike" %} + {% endif %} + {% endif %} + {% set cc_title, cc_uri, cc_icon = ("Creative Commons Attribution 4.0 InternationalCCSUFFIX License","http://creativecommons.org/licenses/CCNAME/4.0/","//i.creativecommons.org/l/CCNAME/4.0/80x15.png") %} + Creative Commons License + {% if br_after_img %}
    {% endif %} + {% if attr_markup %} + "{{ attr_props['title'] }}" by {{ attr_props['name'] }} is + {% else %} + Content + {% endif %} + licensed under a {{ cc_title|replace('CCSUFFIX',cc_title_suffix) }}, except where indicated otherwise. +{% endmacro %} diff --git a/themes/lv2/templates/includes/comment_count.html b/themes/lv2/templates/includes/comment_count.html new file mode 100644 index 0000000..4b42dde --- /dev/null +++ b/themes/lv2/templates/includes/comment_count.html @@ -0,0 +1 @@ +{% if DISQUS_SITENAME and DISQUS_DISPLAY_COUNTS %}

    View comments.

    {% endif %} diff --git a/themes/lv2/templates/includes/comments.html b/themes/lv2/templates/includes/comments.html new file mode 100644 index 0000000..eade006 --- /dev/null +++ b/themes/lv2/templates/includes/comments.html @@ -0,0 +1,41 @@ +{% if DISQUS_SITENAME %} +
    +
    +

    Comments

    + +
    + + + comments powered by Disqus + +
    +{% endif %} diff --git a/themes/lv2/templates/includes/disqus_script.html b/themes/lv2/templates/includes/disqus_script.html new file mode 100644 index 0000000..02570b3 --- /dev/null +++ b/themes/lv2/templates/includes/disqus_script.html @@ -0,0 +1,17 @@ +{% if DISQUS_SITENAME %} + + + +{% endif %} \ No newline at end of file diff --git a/themes/lv2/templates/includes/footer.html b/themes/lv2/templates/includes/footer.html new file mode 100644 index 0000000..8026a5d --- /dev/null +++ b/themes/lv2/templates/includes/footer.html @@ -0,0 +1,23 @@ +
    +
    +
    +
    + {% if articles %} + {% set copy_date = articles[0].date.strftime('%Y') %} + {% else %} + {% set copy_date = '' %} + {% endif %} +
    © {{ copy_date }} {{ AUTHOR }} + · Powered by + Pelican, + theme based on + pelican-bootstrap3 + {%- if CC_LICENSE or CC_LICENSE_DERIVATIVES or CC_LICENSE_COMMERCIAL %} + {% from 'includes/cc-license.html' import cc_license_mark %} +

    {{ cc_license_mark(cc_name=CC_LICENSE,derivatives=CC_LICENSE_DERIVATIVES,commercial=CC_LICENSE_COMMERCIAL,attr_markup=CC_ATTR_MARKUP,attr_props={'title':SITENAME,'name':article.author if article else AUTHOR,'url':SITEURL}) }}

    + {% endif %} +
    + +
    +
    +
    diff --git a/themes/lv2/templates/includes/ga.html b/themes/lv2/templates/includes/ga.html new file mode 100644 index 0000000..8663e73 --- /dev/null +++ b/themes/lv2/templates/includes/ga.html @@ -0,0 +1,32 @@ +{% if GOOGLE_ANALYTICS %} + + + +{% endif %} +{% if GOOGLE_ANALYTICS_UNIVERSAL %} + + + +{% endif %} \ No newline at end of file diff --git a/themes/lv2/templates/includes/github-js.html b/themes/lv2/templates/includes/github-js.html new file mode 100644 index 0000000..85d9ae5 --- /dev/null +++ b/themes/lv2/templates/includes/github-js.html @@ -0,0 +1,35 @@ +{% if GITHUB_USER %} + {% if GITHUB_REPO_COUNT is not defined %} + {% set GITHUB_REPO_COUNT = 5 %} + {% endif %} + {% if GITHUB_SKIP_FORK is not defined %} + {% set GITHUB_SKIP_FORK = "false" %} + {% else %} + {% if GITHUB_SKIP_FORK %} + {% set GITHUB_SKIP_FORK = "true" %} + {% else %} + {% set GITHUB_SKIP_FORK = "false" %} + {% endif %} + {% endif %} + + + + +{% endif %} \ No newline at end of file diff --git a/themes/lv2/templates/includes/github.html b/themes/lv2/templates/includes/github.html new file mode 100644 index 0000000..00ea0f3 --- /dev/null +++ b/themes/lv2/templates/includes/github.html @@ -0,0 +1,11 @@ +{% if GITHUB_USER %} + +
  • GitHub Repos

    +
    +

    Status updating...

    +
    + {% if GITHUB_SHOW_USER_LINK is defined %} + @{{ GITHUB_USER }} on GitHub + {% endif %} +
  • +{% endif %} \ No newline at end of file diff --git a/themes/lv2/templates/includes/links.html b/themes/lv2/templates/includes/links.html new file mode 100644 index 0000000..3286b5a --- /dev/null +++ b/themes/lv2/templates/includes/links.html @@ -0,0 +1,13 @@ +{% if LINKS %} +
  • Links

    + +
  • +{% endif %} \ No newline at end of file diff --git a/themes/lv2/templates/includes/liquid_tags_nb_header.html b/themes/lv2/templates/includes/liquid_tags_nb_header.html new file mode 100644 index 0000000..3d70df5 --- /dev/null +++ b/themes/lv2/templates/includes/liquid_tags_nb_header.html @@ -0,0 +1,157 @@ + + + + + + + + + diff --git a/themes/lv2/templates/includes/pagination.html b/themes/lv2/templates/includes/pagination.html new file mode 100644 index 0000000..2627bb1 --- /dev/null +++ b/themes/lv2/templates/includes/pagination.html @@ -0,0 +1,38 @@ +{% if articles_page and articles_paginator.num_pages > 1 %} + {% if USE_PAGER %} + + {% else %} + + {% endif %} +{% endif %} diff --git a/themes/lv2/templates/includes/piwik.html b/themes/lv2/templates/includes/piwik.html new file mode 100644 index 0000000..a386f2d --- /dev/null +++ b/themes/lv2/templates/includes/piwik.html @@ -0,0 +1,20 @@ +{% if PIWIK_SITE_ID and PIWIK_URL %} + {% if PIWIK_SSL_URL is not defined %} + {% set PIWIK_SSL_URL = PIWIK_URL %} + {% endif %} + + + +{% endif %} \ No newline at end of file diff --git a/themes/lv2/templates/includes/related-posts.html b/themes/lv2/templates/includes/related-posts.html new file mode 100644 index 0000000..70a56f3 --- /dev/null +++ b/themes/lv2/templates/includes/related-posts.html @@ -0,0 +1,10 @@ +{% if article.related_posts %} + +{% endif %} diff --git a/themes/lv2/templates/includes/series.html b/themes/lv2/templates/includes/series.html new file mode 100644 index 0000000..24729a2 --- /dev/null +++ b/themes/lv2/templates/includes/series.html @@ -0,0 +1,22 @@ +{% if article.series %} + +{% endif %} diff --git a/themes/lv2/templates/includes/sidebar.html b/themes/lv2/templates/includes/sidebar.html new file mode 100644 index 0000000..35811f6 --- /dev/null +++ b/themes/lv2/templates/includes/sidebar.html @@ -0,0 +1,104 @@ +{% if DISPLAY_TAGS_ON_SIDEBAR is not defined %} + {% set DISPLAY_TAGS_ON_SIDEBAR = True %} +{% endif %} + + diff --git a/themes/lv2/templates/includes/taglist.html b/themes/lv2/templates/includes/taglist.html new file mode 100644 index 0000000..bcaa470 --- /dev/null +++ b/themes/lv2/templates/includes/taglist.html @@ -0,0 +1,9 @@ +{% if article.tags %} +Tags +{% for tag in article.tags %} + {{ tag }} + {% if not loop.last %} + / + {% endif %} +{% endfor %} +{% endif %} diff --git a/themes/lv2/templates/includes/translations.html b/themes/lv2/templates/includes/translations.html new file mode 100644 index 0000000..ea693df --- /dev/null +++ b/themes/lv2/templates/includes/translations.html @@ -0,0 +1,8 @@ +{% macro translations_for(article) %} +{% if article.translations %} +Lang +{% for translation in article.translations %} + {{ translation.lang }} +{% endfor %} +{% endif %} +{% endmacro %} \ No newline at end of file diff --git a/themes/lv2/templates/includes/twitter_cards.html b/themes/lv2/templates/includes/twitter_cards.html new file mode 100644 index 0000000..3145915 --- /dev/null +++ b/themes/lv2/templates/includes/twitter_cards.html @@ -0,0 +1,27 @@ +{% if TWITTER_CARDS and USE_OPEN_GRAPH %} + {# Do not include duplicates tag with og ones. #} + {# Twitter is able to infer them from og. #} + + {% if TWITTER_USERNAME %} + + + {% endif %} + + {% if article %} + {% if article.og_image %} + + {% elif OPEN_GRAPH_IMAGE %} + + {% endif %} + {% elif page %} + {% if page.og_image %} + + {% elif OPEN_GRAPH_IMAGE %} + + {% endif %} + {% endif %} +{% endif %} diff --git a/themes/lv2/templates/includes/twitter_timeline.html b/themes/lv2/templates/includes/twitter_timeline.html new file mode 100644 index 0000000..ad1ce5d --- /dev/null +++ b/themes/lv2/templates/includes/twitter_timeline.html @@ -0,0 +1,10 @@ +{% if TWITTER_WIDGET_ID %} + +
  • Latest Tweets

  • + + + + +{% endif %} \ No newline at end of file diff --git a/themes/lv2/templates/index.html b/themes/lv2/templates/index.html new file mode 100644 index 0000000..29ba7d6 --- /dev/null +++ b/themes/lv2/templates/index.html @@ -0,0 +1,4 @@ +{% extends "article_list.html" %} + +{% block canonical_rel %}{% endblock %} + diff --git a/themes/lv2/templates/page.html b/themes/lv2/templates/page.html new file mode 100644 index 0000000..f8757fa --- /dev/null +++ b/themes/lv2/templates/page.html @@ -0,0 +1,64 @@ +{% extends "base.html" %} +{% block title %}{{ page.title }} - {{ SITENAME }}{% endblock %} +{% block html_lang %}{{ page.lang }}{% endblock %} +{% block meta %} + {% if page.author %} + + {% else %} + + {% endif %} + {% if page.summary %} + + {% endif %} +{% endblock %} +{% block opengraph %} + {% if OPEN_GRAPH_FB_APP_ID %} + + {% endif %} + + + + + + {% if page.og_image %} + + {% elif OPEN_GRAPH_IMAGE %} + + {% endif %} +{% endblock %} + +{% block canonical_rel %} + +{% endblock %} + +{% block breadcrumbs %} + {% if DISPLAY_BREADCRUMBS %} + + {% endif %} +{% endblock %} + +{% block content %} +
    +

    {{ page.title }}

    + {% import 'includes/translations.html' as translations with context %} + {{ translations.translations_for(page) }} + {% if PDF_PROCESSOR %} + + get the pdf + + {% endif %} +
    + {{ page.content }} + {% if page.comments == 'enabled' %} + {% include 'includes/comments.html' %} + {% endif %} +
    +
    +{% endblock %} diff --git a/themes/lv2/templates/tag.html b/themes/lv2/templates/tag.html new file mode 100644 index 0000000..aa9edc8 --- /dev/null +++ b/themes/lv2/templates/tag.html @@ -0,0 +1,15 @@ +{% extends "article_list.html" %} +{% block title %}{{ tag }} - {{ SITENAME }}{% endblock %} +{% block meta %} + + +{% endblock %} +{% block breadcrumbs %} + {% if DISPLAY_BREADCRUMBS %} + + {% endif %} +{% endblock %} diff --git a/themes/lv2/templates/tags.html b/themes/lv2/templates/tags.html new file mode 100644 index 0000000..3f29a36 --- /dev/null +++ b/themes/lv2/templates/tags.html @@ -0,0 +1,37 @@ +{% extends "base.html" %} + +{% block title %}Tags - {{ SITENAME }}{% endblock %} + +{% block breadcrumbs %} + {% if DISPLAY_BREADCRUMBS %} + + {% endif %} +{% endblock %} + +{% block content %} +
    +

    Tags for {{ SITENAME }}

    +
    + {%- for tag, articles in tags|sort %} +
    + +
    +
    + {% for article in articles %} +

    {{ article.title }}

    + {% endfor %} +
    +
    +
    + {% endfor %} +
    + +
    +{% endblock %} -- cgit v1.2.1