{% comment %} Because we're using relative URLs, we need to add a / to the site URL, we capture and replace the SEO tag because it expects the URL to not have a trailing / TODO: Send a patch to jekyll-seo-tag {% endcomment %} {% capture seo %} {% seo %} {% endcapture %} {{ seo | replace: '//', '/' | replace: 'https:/', 'https://' | replace: 'http:/', 'http://' }} {% comment %} Generate the alternate permalink for each page and locale. {% endcomment %} {% if page.collection == site.default_locale %} {% endif %} {% for locale in page.lang %} {% if locale.collection == site.default_locale %} {% endif %} {% endfor %}