Sha256: a03294dca7002113599f77c237c55a3722a431b2374cb38488ba5e0c7ef19e45

Contents?: true

Size: 1.31 KB

Versions: 2

Compression:

Stored size: 1.31 KB

Contents

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <title>{{ page.title }} | {% include i18n.html value=site.title %}</title>
  <meta name="description" content="{% include i18n.html value=site.description %}">

  <link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
  <link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
  <link rel="alternate" type="application/rss+xml" title="{% include i18n.html value=site.title %}" href="{{ "/feed.xml" | relative_url }}">

  {% assign pagename = page.path | split:"." | first %}

  {% if page.layout == "post" %}
    {% assign i18n_posts = site.posts | where_exp:"p","p.path contains pagename" %}
  {% else %}
    {% assign i18n_posts = site.pages | where_exp:"p","p.path contains pagename" %}
  {% endif %}

  {% for t_lang in site.langs %}
    {% unless t_lang == page.lang %}
      {% assign t = i18n_posts | where:"lang",t_lang | first %}

      {% if t %}
      <link rel="alternate" hreflang="{{ t_lang }}" href="{{ site.url }}{{ t.url }}" />
      {% endif %}
    {% endunless %}
  {% endfor %}

  {% if site.piwik %}
  {% include piwik.html %}
  {% endif %}

  {% if jekyll.environment == 'production' %}
  {% endif %}
</head>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
academic-0.4.91 _includes/head.html
academic-0.4.9 _includes/head.html