open-orchestra/open-orchestra-front-bundle

View on GitHub
FrontBundle/Resources/views/Node/base_node.html.twig

Summary

Maintainability
Test Coverage
<!DOCTYPE html>
<html>
    <head>
        {% if not node.seoTitle is null %}
            <title>{% block title %}{{ node.seoTitle }}{% endblock %}</title>
        {% endif %}
        {% block stylesheets %}
        {% endblock %}
        <script src="{{ asset('/bundles/openorchestradisplay/libs/require.js') }}"></script>
        <script src="{{ asset('/bundles/openorchestradisplay/requireConf.js') }}"></script>
        <meta name="robots" content="{{- node.metaFollow ? 'follow': 'nofollow' -}},{{- node.metaIndex ? 'index': 'noindex' -}}">
        {% if not site.metaAuthor is null %}
            <meta name="author" content="{{ site.metaAuthor }}">
        {% endif %}
        {% if not node.metaDescription is null %}
            <meta name="description" content="{{ node.metaDescription }}">
        {% endif %}
        {% if not node.canonicalPage is null %}
            <link rel="canonical" href="{{ url_node(node.canonicalPage) }}" />
        {% endif %}
    </head>
    <body>
        {% block body %}
        {% endblock %}

        {% block javascripts %}
        {% endblock %}
    </body>
</html>