Source

django-swingcms / swingcms / cms / templates / cms / head.html

Full commit


<head>

    <!-- meta tags and title -->

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta http-equiv="content-language" content="{{ request.LANGUAGE_CODE }}">

    <title>{% if plugin.title %}{{ plugin.title }} | {% endif %}{{ plugin.common_page_title }}</title>

    {% if plugin.keywords %}
        <meta name="keywords" content="{{ plugin.keywords }}" />
    {% endif %}

    {% if plugin.description %}
        <meta name="description" content="{{ plugin.description }}" />
    {% endif %}

    <meta name="author" content="{{ plugin.author }}" />
    <meta name="copyright" content="{{ plugin.copyright }}" />
    <meta name="generator" content="SwingCMS" />

    <!-- favicon -->

    <link rel="shortcut icon" href="{{ STATIC_URL }}{{ plugin.favicon_path }}">

    <!-- style.css file and optional js files -->

    {% for path in plugin.common_css_files %}
        <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}{{ path }}">
    {% endfor %}

    {% for path in plugin.common_js_files %}
        <script type="text/javascript" src="{{ STATIC_URL }}{{ path }}"></script>
    {% endfor %}

    {% for path in specific_css_files %}
        <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}{{ path }}">
    {% endfor %}

    {% for path in specific_js_files %}
        <script type="text/javascript" src="{{ STATIC_URL }}{{ path }}"></script>
    {% endfor %}

    <!-- statistics engine -->

    {% if plugin.stat %}
        {{ plugin.stat|safe }}
    {% endif %}

</head>