{% if USE_OPEN_GRAPH is not defined %} {% set USE_OPEN_GRAPH = True %} {% endif %} {# In Pelican, output_file is very similar to URL but without the first slash / after the hostname #} {% if output_file == 'index.html' %} {% set CANONICAL_HREF = SITEURL ~ "/" %} {% elif output_file.endswith("index.html") %} {% set CANONICAL_HREF = SITEURL ~ "/" ~ output_file.replace('index.html', '') %} {%- if article and article.article_cover_filename %} {%- set LOCAL_ARTICLE_IMAGE = SITEURL ~ "/" ~ article.url ~ article.article_cover_filename %} {%- endif %} {% else %} {% set CANONICAL_HREF = SITEURL ~ "/" ~ output_file %} {% endif %} {% 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 canonical_rel %} {% endblock %} {% block meta %} {% block metatag_robots %} {% endblock %} {% block metatag_description %} {% if OTHER_PAGE_METATAG_DESCRIPTION %} {% endif %} {% endblock %} {% endblock %} {##} {% if JSON_LD %} {% include 'includes/json_ld.html' %} {% endif %} {# Open Graph tags #} {% if USE_OPEN_GRAPH %} {% block opengraph %} {##} {% if OPEN_GRAPH_FB_APP_ID %} {% endif %} {% block og_description %} {% endblock %} {% if OPEN_GRAPH_IMAGE %} {% endif %} {% endblock %} {% endif %} {# Twitter Cards tags #} {% include 'includes/twitter_cards.html' %} {# Flattr ID for the Flattr browser plug-in #} {% if FLATTR_ID %} {% endif %} {# Bootstrap #} {% if BOOTSTRAP_THEME %} {% else %} {# #} {% endif %} {# #} {# {% if 'tipue_search' in PLUGINS %} {% endif %} #} {% if MEILISEARCH %} {% endif %} {% if DOCUTIL_CSS %} {% endif %} {% if TYPOGRIFY %} {% endif %} {##} {# CSS specifc for this theme #} {% if SPHINX_COPYBUTTON %} {% endif %} {% if SHARIFF %} {% endif %} {% if CUSTOM_CSS %} {% endif %} {% if FEED_ALL_ATOM %} {% endif %} {% if FEED_ALL_RSS %} {% endif %} {%- if tag and TAG_FEED_ATOM %} {%- if '%s' not in TAG_FEED_ATOM %} {%- set tag_feed_atom = TAG_FEED_ATOM.format(slug=tag.slug) %} {%- else %} {%- set tag_feed_atom = TAG_FEED_ATOM.format(tag.slug) %} {%- endif %} {%- endif %} {%- if category and CATEGORY_FEED_ATOM %} {%- if '%s' not in CATEGORY_FEED_ATOM %} {%- set category_feed_atom = CATEGORY_FEED_ATOM.format(slug=category.slug) %} {%- else %} {%- set category_feed_atom = CATEGORY_FEED_ATOM.format(category.slug) %} {%- endif %} {%- endif %} {# link+intergrity need rel=stylesheet #} {# #} {# #} {#src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/jquery.min.js"#} {# loading jQuery slim for most page, except loading jQuery for the tipue search #} {% if 'tipue_search' in PLUGINS and output_file == 'tipuesearch.html' %} {% else %} {% endif %} {# #} {# Include all compiled plugins (below), or include individual files as needed #} {# #} {# #} {##} {% include 'includes/cookie_consent2.html' %} {% if SPHINX_COPYBUTTON %} {##} {##} {% endif %} {##} {% if MEILISEARCH %} {% endif %} {##} {% if article and article.toc %} {% else %} {% endif %} {# #} {# #} {% if BANNER and BANNER_ALL_PAGES %} {% include 'includes/banner.html' %} {% elif BANNER and not BANNER_ALL_PAGES %} {% block banner %}{% endblock %} {% endif %} {% if PADDED_SINGLE_COLUMN_STYLE %} {% set content_class='col-lg-8 col-md-offset-2' %} {% elif not HIDE_SIDEBAR or ABOUT_ME or AVATAR %} {# edit the statement after else for normal use #} {# edit the statement on the left if sidebar on left #} {# content_class: if not specify col-lg-5/col-xl-6/col-xl-auto, it takes up all space and would use more space if sidebar is closed if content_class specify col-lg-5/col-xl6/col-xl-auto/colauto, if sidebar is closed only the content col moves left without expanding space, right sidebar remains #} {% set sb_doc_nav_class='col-xl-3 clearfix mr-auto d-flex flex-column ' + ('order-1' if SIDEBAR_ON_LEFT else '') %} {# check the jQuery section as it would swap col-xl-9 with col-xl7 #} {% set content_class='col-xl-7 col-xl-auto mt-1 mb-1 ml-auto mr-auto align-self-start d-flex flex-column ' + ('order-2' if SIDEBAR_ON_LEFT else '') %} {% set sidebar_class='col-xl-auto clearfix ml-auto d-flex flex-column ' + ('order-3' if SIDEBAR_ON_LEFT else '') %} {% else %} {% set content_class='col-lg-12' %} {% endif %}
{# Create a left sidebar and then hide it Chrome may temp display the left sidebar content and hidden it #} {# If not 'creating' the left sidebar, the page without toc would move the starting position to left #} {#{% if article %} {% if article.toc %}#} {% if sb_doc_nav_class %} {##} {% endif %} {% if not article or not article.toc %} {% endif %} {# #}
{% block breadcrumbs %}{% endblock %} {% block content %}{% endblock %} {% include 'includes/footer.html' %}
{% if sidebar_class %} {% endif %}
{##}
{##} {#{% include 'includes/footer.html' %}#} {# #} {% if CUSTOM_JS %} {% endif %} {% if BANNER %} {% endif %} {% include 'includes/sidebar/github-js.html' %} {% include 'includes/disqus_script.html' %} {##} {% include 'includes/ga_check_consent.html' %} {% include 'includes/piwik.html' %} {% if 'liquid_tags.notebook' in PLUGINS %} {% include 'includes/liquid_tags_nb_footer.html' %} {% endif %} {% block scripts %}{% endblock %}