Skip to content

Commit

Permalink
Test: elsif page.title capture block
Browse files Browse the repository at this point in the history
Normally included in head.html. The rest of the title capture blocks don't seem to be an issue. This commit is expected to fail.
  • Loading branch information
keunes committed Nov 23, 2023
1 parent e25706f commit 6c6a7f9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions _layouts/redirect.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
<!DOCTYPE html>
<html lang="{{ site.lang }}">
<head>
{% if page.layout == "blog" or page.layout == "event" %}
{% capture title %}{{ page.title }} – {{ site.title }}{% endcapture %}
{% elsif page.title %}
Test (elsif problem)
{% else %}
{% capture title %}{{ site.title }} – {% t homepage.header %}{% endcapture %}
{% endif %}
{% capture title %}{% t page.title %} – {{ site.title }}{% endcapture %}
{% capture redirect_to %}{% if site.lang != 'en' %}/{{ site.lang }}{% endif %}{{ page.redirect_to }}{% endcapture %}
<meta http-equiv="refresh" content="0; URL={{ redirect_to }}">
</head>
Expand Down

0 comments on commit 6c6a7f9

Please sign in to comment.