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/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 ++ 22 files changed, 707 insertions(+) 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 (limited to 'themes/lv2/templates/includes') 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 @@ + 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 @@ + 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 -- cgit v1.2.1