Skip to content
Snippets Groups Projects
top.html 1.62 KiB
<!DOCTYPE HTML>

{% comment %}
    The "no-js" class is here as a fallback.
    If Modernizr is not running, you'll know
    something is wrong and you will be able to act
    accordingly. In contrast, if everything goes well,
    Modernizr will remove that special class.
{% endcomment %}
<html lang="{{ page.lang }}" class="modernizr-no-js">

<head>
    {% include minimal_head.html %}

    {% assign layout = page.layout | slugify %}
    {% include metadata.html layout = layout %}

    {% comment %}
        Add in additional CSS if such is requested in the header of the
        associated markdown file.
        The switch in the markdown file is "additional_css" for CSS and
        "additional_js" for JavaScript
    {% endcomment %}

    {% if page.additional_css %}
        {% for css_file_name in page.additional_css %}
            <link   rel="stylesheet"
                    href="{{ site.directory.css | strip | relative_url }}{{ css_file_name }}" />
        {% endfor %}
    {% endif %}

    <script defer type="text/javascript"
            src="{{ site.directory.javascript
                | strip
                | relative_url }}modernizr-custom.js">
    </script>
    <script defer type="text/javascript"
            src="{{ site.directory.javascript
                | strip
                | relative_url }}shrink_header.js">
    </script>

    {% if page.additional_js %}
        {% for js_file_name in page.additional_js %}
            <script defer type="text/javascript"
                    src="{{ site.directory.javascript | strip | relative_url }}{{ js_file_name }}">
            </script>
        {% endfor %}
    {% endif %}
</head>