- {% for alternate in alternates %}
- <link rel="alternate" href="{{ alternate.absolute }}" hreflang="{{ alternate.lang }}" />
+ {% for lang, alternate in alternates %}
+ <link rel="alternate" href="{{ alternate.absolute }}" hreflang="{{ lang }}" />
+ {% endfor %}
+ {% endif %}
+ {% if ogps is defined and ogps %}
+ {% for property, content in ogps %}
+ <meta property="og:{{ property }}" content="{{ content }}" />
+ {% endfor %}
+ {% for property, contents in facebooks %}
+ {% if contents is iterable %}
+ {% for content in contents %}
+ <meta property="fb:{{ property }}" content="{{ content }}" />
+ {% endfor %}
+ {% else %}
+ <meta property="fb:{{ property }}" content="{{ contents }}" />
+ {% endif %}