_includes/head.html in jekyll-theme-parallelism-0.1.5 vs _includes/head.html in jekyll-theme-parallelism-0.1.6

- old
+ new

@@ -1,12 +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/styles.css' | absolute_url }}" /> - {% if site.favicon.url %}<link rel="icon" href="{{ site.favicon.url | absolute_url }}" />{% endif %} - {% for page in pages %}<link rel="alternate" hreflang="{{ page.lang }}" href="{{ page.url }}" />{% endfor %} + {%- if site.favicon.url -%} + <link rel="icon" href="{{ site.favicon.url | absolute_url }}" /> + {%- endif -%} + {%- 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> </head>