From 9839a49f36ee0b637b08b76e8ed5560409c9db3b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 23 Nov 2014 00:29:11 -0500 Subject: Simplify theme. --- 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 deletions(-) delete mode 100644 themes/lv2/templates/includes/aboutme.html delete mode 100644 themes/lv2/templates/includes/addthis.html delete mode 100644 themes/lv2/templates/includes/article_info.html delete mode 100644 themes/lv2/templates/includes/cc-license.html delete mode 100644 themes/lv2/templates/includes/comment_count.html delete mode 100644 themes/lv2/templates/includes/comments.html delete mode 100644 themes/lv2/templates/includes/disqus_script.html delete mode 100644 themes/lv2/templates/includes/footer.html delete mode 100644 themes/lv2/templates/includes/ga.html delete mode 100644 themes/lv2/templates/includes/github-js.html delete mode 100644 themes/lv2/templates/includes/github.html delete mode 100644 themes/lv2/templates/includes/links.html delete mode 100644 themes/lv2/templates/includes/liquid_tags_nb_header.html delete mode 100644 themes/lv2/templates/includes/pagination.html delete mode 100644 themes/lv2/templates/includes/piwik.html delete mode 100644 themes/lv2/templates/includes/related-posts.html delete mode 100644 themes/lv2/templates/includes/series.html delete mode 100644 themes/lv2/templates/includes/sidebar.html delete mode 100644 themes/lv2/templates/includes/taglist.html delete mode 100644 themes/lv2/templates/includes/translations.html delete mode 100644 themes/lv2/templates/includes/twitter_cards.html delete 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 deleted file mode 100644 index ba56070..0000000 --- a/themes/lv2/templates/includes/aboutme.html +++ /dev/null @@ -1,9 +0,0 @@ -{% if AVATAR %} -

- -

-{% endif %} -

- About {{ AUTHOR }}
- {{ ABOUT_ME }} -

diff --git a/themes/lv2/templates/includes/addthis.html b/themes/lv2/templates/includes/addthis.html deleted file mode 100644 index 12e2e8a..0000000 --- a/themes/lv2/templates/includes/addthis.html +++ /dev/null @@ -1,20 +0,0 @@ -{% 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 deleted file mode 100644 index 787c360..0000000 --- a/themes/lv2/templates/includes/article_info.html +++ /dev/null @@ -1,36 +0,0 @@ - diff --git a/themes/lv2/templates/includes/cc-license.html b/themes/lv2/templates/includes/cc-license.html deleted file mode 100644 index 73c7720..0000000 --- a/themes/lv2/templates/includes/cc-license.html +++ /dev/null @@ -1,64 +0,0 @@ -{# ------------------------------------------------------------------------ #} -{# 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 deleted file mode 100644 index 4b42dde..0000000 --- a/themes/lv2/templates/includes/comment_count.html +++ /dev/null @@ -1 +0,0 @@ -{% 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 deleted file mode 100644 index eade006..0000000 --- a/themes/lv2/templates/includes/comments.html +++ /dev/null @@ -1,41 +0,0 @@ -{% 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 deleted file mode 100644 index 02570b3..0000000 --- a/themes/lv2/templates/includes/disqus_script.html +++ /dev/null @@ -1,17 +0,0 @@ -{% 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 deleted file mode 100644 index 8026a5d..0000000 --- a/themes/lv2/templates/includes/footer.html +++ /dev/null @@ -1,23 +0,0 @@ - diff --git a/themes/lv2/templates/includes/ga.html b/themes/lv2/templates/includes/ga.html deleted file mode 100644 index 8663e73..0000000 --- a/themes/lv2/templates/includes/ga.html +++ /dev/null @@ -1,32 +0,0 @@ -{% 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 deleted file mode 100644 index 85d9ae5..0000000 --- a/themes/lv2/templates/includes/github-js.html +++ /dev/null @@ -1,35 +0,0 @@ -{% 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 deleted file mode 100644 index 00ea0f3..0000000 --- a/themes/lv2/templates/includes/github.html +++ /dev/null @@ -1,11 +0,0 @@ -{% 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 deleted file mode 100644 index 3286b5a..0000000 --- a/themes/lv2/templates/includes/links.html +++ /dev/null @@ -1,13 +0,0 @@ -{% 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 deleted file mode 100644 index 3d70df5..0000000 --- a/themes/lv2/templates/includes/liquid_tags_nb_header.html +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - - - - diff --git a/themes/lv2/templates/includes/pagination.html b/themes/lv2/templates/includes/pagination.html deleted file mode 100644 index 2627bb1..0000000 --- a/themes/lv2/templates/includes/pagination.html +++ /dev/null @@ -1,38 +0,0 @@ -{% 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 deleted file mode 100644 index a386f2d..0000000 --- a/themes/lv2/templates/includes/piwik.html +++ /dev/null @@ -1,20 +0,0 @@ -{% 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 deleted file mode 100644 index 70a56f3..0000000 --- a/themes/lv2/templates/includes/related-posts.html +++ /dev/null @@ -1,10 +0,0 @@ -{% if article.related_posts %} - -{% endif %} diff --git a/themes/lv2/templates/includes/series.html b/themes/lv2/templates/includes/series.html deleted file mode 100644 index 24729a2..0000000 --- a/themes/lv2/templates/includes/series.html +++ /dev/null @@ -1,22 +0,0 @@ -{% if article.series %} - -{% endif %} diff --git a/themes/lv2/templates/includes/sidebar.html b/themes/lv2/templates/includes/sidebar.html deleted file mode 100644 index 35811f6..0000000 --- a/themes/lv2/templates/includes/sidebar.html +++ /dev/null @@ -1,104 +0,0 @@ -{% 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 deleted file mode 100644 index bcaa470..0000000 --- a/themes/lv2/templates/includes/taglist.html +++ /dev/null @@ -1,9 +0,0 @@ -{% 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 deleted file mode 100644 index ea693df..0000000 --- a/themes/lv2/templates/includes/translations.html +++ /dev/null @@ -1,8 +0,0 @@ -{% 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 deleted file mode 100644 index 3145915..0000000 --- a/themes/lv2/templates/includes/twitter_cards.html +++ /dev/null @@ -1,27 +0,0 @@ -{% 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 deleted file mode 100644 index ad1ce5d..0000000 --- a/themes/lv2/templates/includes/twitter_timeline.html +++ /dev/null @@ -1,10 +0,0 @@ -{% if TWITTER_WIDGET_ID %} - -
  • Latest Tweets

  • -
    - -
    - - - -{% endif %} \ No newline at end of file -- cgit v1.2.1