- <a id="logo" href="{{ path(site.root) }}" title="{{ site.title }}">
- <img src="{{ asset(site.logo.svg) }}?20221024100144" srcset="{{ asset(site.logo.png) }}?20221024100144 200w, {{ asset(site.logo.svg) }}?20221024100144 400w" sizes="(min-width:400px) 400px, 200px" alt="{{ site.logo.alt }}" width="100" height="60" />
- <strong>{{ site.title }}</strong>
- </a>
- <nav id="nav">
- <a href="{{ path('rapsys_blog') }}" rel="home">{% trans %}Home{% endtrans %}</a>
- <a href="{{ path('rapsys_blog_contact') }}" rel="contact">{% trans %}Contact{% endtrans %}</a>
- {#<a href="{{ path('rapsys_blog_frequently_asked_questions') }}">{% trans %}Frequently asked questions{% endtrans %}</a>#}
- {% if is_granted('ROLE_ADMIN') %}
- <a href="{{ path('rapsys_blog_user') }}">{% trans %}Users{% endtrans %}</a>
- {% endif %}
- {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
- <a href="{{ path('rapsys_user_edit', {mail: app.user.mail|short, hash: app.user.mail|short|hash}) }}">{% trans %}My account{% endtrans %}</a>
- <a href="{{ path('rapsys_user_logout') }}">{% trans %}Logout{% endtrans %}</a>
- {% else %}
- <a href="{{ path('rapsys_user_login') }}">{% trans %}Login{% endtrans %}</a>
- <a href="{{ path('rapsys_user_register') }}">{% trans %}Register{% endtrans %}</a>
- {% endif %}
- </nav>
- {#
- {% block site_subtitle %}{% endblock %}
- {% block site_tagline %}
- {% if tags is defined and tags %}
- <ul>
- {% for id, tag in tags %}
- <li><h2><a href="#{{id}}">{{tag}}</a></h2></li>
- {% endfor %}
- </ul>
- {% endif %}
+ {% if logo is defined and logo %}
+ {% block header_title %}
+ <a id="logo" href="{{ root }}" title="{{ title.site }}">
+ <img src="{{ asset(logo.svg) }}?{{ 'now'|date('U') }}" srcset="{{ asset(logo.png) }}?{{ 'now'|date('U') }} 200w, {{ asset(logo.svg) }}?{{ 'now'|date('U') }} 400w" sizes="(min-width:400px) 400px, 200px" alt="{{ title.site }}" width="100" height="45" />
+ <strong>{{ title.site }}</strong>
+ </a>
+ {% endblock %}
+ {% endif %}
+ {% block header_nav %}
+ <nav id="nav">
+ <a href="{{ path('rapsysblog') }}" rel="home">{% trans %}Home{% endtrans %}</a>
+ <a href="{{ path('rapsysblog_contact') }}" rel="contact">{% trans %}Contact{% endtrans %}</a>
+ {#<a href="{{ path('rapsysblog_frequently_asked_questions') }}">{% trans %}Frequently asked questions{% endtrans %}</a>#}
+ {#{% if is_granted('ROLE_ADMIN') %}#}
+ <a href="{{ path('rapsysblog_user') }}">{% trans %}Users{% endtrans %}</a>
+ {#{% endif %}#}
+ {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
+ <a href="{{ path('rapsysuser_edit', {mail: app.user.mail|short, hash: app.user.mail|short|hash}) }}">{% trans %}My account{% endtrans %}</a>
+ <a href="{{ path('rapsysuser_logout') }}">{% trans %}Logout{% endtrans %}</a>
+ {% else %}
+ <a href="{{ path('rapsysuser_login') }}">{% trans %}Login{% endtrans %}</a>
+ <a href="{{ path('rapsysuser_register') }}">{% trans %}Register{% endtrans %}</a>
+ {% endif %}
+ </nav>