_includes/head.html in jekyll-theme-stellar-0.2.2 vs _includes/head.html in jekyll-theme-stellar-0.2.3
- old
+ new
@@ -1,13 +1,15 @@
-{%- assign posts=site.posts | where:"lang-ref", page.lang-ref | sort: 'lang' %}
-{%- assign pages=site.pages | where:"lang-ref", page.lang-ref | sort: 'lang' | concat: posts %}
+{%- assign posts=site.posts | where:"lang-ref", page.lang-ref | sort: 'lang' -%}
+{%- assign pages=site.pages | where:"lang-ref", page.lang-ref | sort: 'lang' | concat: posts -%}
<head>
<title>{{ include.title }} - {{ include.subtitle }}</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="{{ 'assets/css/main.css' | absolute_url }}" />
- {%- for page in pages %}
+ {%- for page in pages -%}
<link rel="alternate" hreflang="{{ page.lang }}" href="{{ page.url }}" />
- {%- endfor %}
+ {%- endfor -%}
<noscript><link rel="stylesheet" href="{{ 'assets/css/noscript.css' | absolute_url }}" /></noscript>
- {% if site.favicon.url %}<link rel="icon" href="{{ site.favicon.url | absolute_url }}" />{% endif %}
+ {%- if site.favicon -%}
+ <link rel="icon" href="{{ site.favicon | absolute_url }}" />
+ {%- endif -%}
</head>