Skip to content

Commit

Permalink
Remove redundant nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrHovhannisyan committed Aug 12, 2021
1 parent a6b4665 commit c4ae30b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/redirects.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ excludeFromSitemap: true
/blog/off-topic/* /blog/:splat
{%- comment -%}Per-page redirects (e.g., if a page gets indexed but I want to change its URL).{%- endcomment -%}
{%- for page in collections.all -%}
{%- if page.url and page.data.redirectFrom != nil -%}
{%- if page.url and page.data.redirectFrom -%}
{%- for oldUrl in page.data.redirectFrom %}
{{ oldUrl }} {{ page.url }}
{%- endfor -%}
Expand Down

0 comments on commit c4ae30b

Please sign in to comment.