{% set ishome = master_doc == pagename %} {% set script_files = script_files + ['_static/foundation/js/vendor/custom.modernizr.js'] %} {% macro seo_title() -%} {% if ishome -%} {{ docstitle|striptags|e }} {%- else -%} {{ title|striptags|e }} | {{ docstitle|striptags|e }} {%- endif %} {%- endmacro %} {%- macro script() %} {%- for scriptfile in script_files %} {%- endfor %} {%- endmacro %} {%- macro css() %} {%- for cssfile in css_files %} {%- endfor %} {%- endmacro %} {%- macro description() -%} {{ (seo_description or theme_seo_description or theme_motto)|striptags|e }} {%- endmacro -%} {%- macro seo_tags() %} {# Required Open Graph tags #} {# Optional Open Graph tags #} {% if theme_opengraph_tags is mapping %} {%- for k, v in theme_opengraph_tags.items() %} {%- endfor %} {% endif %} {% if theme_meta_tags is mapping %} {%- for k, v in theme_meta_tags.items() %} {%- endfor %} {% endif %} {%- endmacro %} {%- macro breadcrumbs() %} {% if next and prev %} {% endif %} {%- endmacro %} {%- macro nav_appendix() %}
  • {% if prev %}
  • « previous
  • {% endif %} {%- for rellink in rellinks %} {% if rellink[3] not in ('next', 'previous') %}
  • {{ rellink[3] }}
  • {% endif %} {%- endfor %} {% if next %}
  • next »
  • {% endif %} {%- endmacro %} {%- macro logo() %}
    {% if theme_logo_screen %} {% if theme_logo_mobile %} {% else %} {% endif %} {% else %}

    {{ docstitle }}

    {% endif %}
    {% endmacro -%} {% block doctype %} {% endblock %} {% block html_open %} {% endblock %} {% block html_head %} {{ seo_title() }} {%- if theme_favicon %} {%- endif %} {{ seo_tags() }} {{ css() }} {%- if not embedded %} {{ script() }} {%- endif %} {% endblock %} {% block html_body %} {% if theme_social_buttons -%}
    {%- endif %} {%- block root -%}
    {%- block nav_bar -%}
    {%- endblock -%} {%- block header -%}
    {% if theme_social_buttons -%} {% endif %}
    {% endblock %} {% block breadcrumbs %}
    {{ breadcrumbs() }}
    {% endblock %}
    {% block content %}
    {% block body %}{% endblock %}
    {% endblock %} {% block navigation %} {% endblock %}
    {%- endblock -%} {%- block footer -%} {%- endblock -%} {% if theme_github_ribbon_image and theme_github_user and theme_github_repo %} Fork me on GitHub {% endif %} {% endblock %}