- {% block link %}
- {% if head.icon.ico is defined and head.icon.ico is not empty %}
- <link rel="shortcut icon" type="image/x-icon" href="{{ asset(head.icon.ico) }}" />
- {% endif %}
- {% if head.icon.png is defined and head.icon.png is not empty %}
- {% for size, icon in head.icon.png %}
- {# Apple #}
- {% if size in [120, 152, 167, 180] %}
- {% if size == 180 %}
- <link rel="apple-touch-icon" href="{{ asset(icon) }}" />
- {% endif %}
- <link rel="apple-touch-icon" sizes="{{ size }}x{{ size }}" href="{{ asset(icon) }}" />
- {# Windows #}
- {% elseif size in [70, 150, 310] %}
- <meta name="msapplication-square{{ size }}x{{ size }}logo" content="{{ asset(icon) }}" />
- {# Others #}
- {% else %}
- <link rel="icon" type="image/png" sizes="{{ size }}x{{ size }}" href="{{ asset(icon) }}" />
- {% endif %}
- {% endfor %}
- {% endif %}
- {% if head.icon.svg is defined and head.icon.svg is not empty %}
- <link rel="icon" type="image/svg+xml" href="{{ asset(head.icon.svg) }}" />
- {% endif %}
- {# stylesheet '//fonts.googleapis.com/css?family=Irish+Grover' '//fonts.googleapis.com/css?family=La+Belle+Aurore' '@RapsysBlogBundle/Resources/public/css/{reset,screen}.css' #}
- {% stylesheet '@RapsysBlog/css/{reset,droidsans,lemon,notoemoji,screen}.css' %}
- <link rel="stylesheet" type="text/css" href="{{ asset_url }}?{{ 'now'|date('U') }}" />
- {% endstylesheet %}
- {% stopwatch 'stylesheet' %}
- {% endstopwatch %}
- {% if head.canonical is defined and head.canonical %}
- <link rel="canonical" href="{{ head.canonical }}"{% if head.locale is defined and head.locale %} hreflang="{{ head.locale }}"{% endif %} />
- {% endif %}
- {% if head.alternates is defined and head.alternates %}
- {% for lang, alternate in head.alternates %}
- <link rel="alternate" href="{{ alternate.absolute }}" hreflang="{{ lang }}" />
- {% endfor %}
- {% endif %}
- {% if head.prev is defined and head.prev %}
- <link rel="prev" href="{{ head.prev }}" hreflang="{{ head.locale }}" />
- {% endif %}
- {% if head.next is defined and head.next %}
- <link rel="next" href="{{ head.next }}" hreflang="{{ head.locale }}" />
- {% endif %}
- {% endblock %}