_includes/head.html in jekyll-theme-stellar-0.1.0 vs _includes/head.html in jekyll-theme-stellar-0.2.1
- old
+ new
@@ -1,7 +1,14 @@
+{% 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>{{ site.title }} {{ site.subtitle }}</title>
+ <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" />
- <noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
-</head>
\ No newline at end of file
+ <link rel="stylesheet" href="{{ 'assets/css/main.css' | absolute_url }}" />
+ {% for page in pages %}
+ <link rel="alternate" hreflang="{{ page.lang }}" href="{{ page.url }}" />
+ {% 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 %}
+</head>