Skip to content
Snippets Groups Projects
top.html 1.62 KiB
Newer Older
  • Learn to ignore specific revisions
  • Erxleben, Fredo's avatar
    Erxleben, Fredo committed
    <!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">
    
    Erxleben, Fredo's avatar
    Erxleben, Fredo committed
    
    <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 }}header.js">
    
    Erxleben, Fredo's avatar
    Erxleben, Fredo committed
        </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>