Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (12 sloc) 366 Bytes
---
layout: none
---
{%- for collection in site.collections -%}
{%- for page in site[collection.label] -%}
{%- if page.redirect_from != nil -%}
{%- for redirect in page.redirect_from -%}
rewrite ^{{ redirect }}$ {% if page.permalink == nil %}{{ page.url }}{% else %}{{ page.permalink }}{% endif %} permanent;
{% endfor %}
{%- endif -%}
{%- endfor -%}
{%- endfor -%}
You can’t perform that action at this time.