Skip to content

Commit

Permalink
Test: remove page.title elsif
Browse files Browse the repository at this point in the history
  • Loading branch information
keunes committed Nov 23, 2023
1 parent 16684dc commit 8b0b70b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions _layouts/redirect.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html lang="{{ site.lang }}">
<head>
{% if page.title %}
{% capture title %}{% t page.title %} – {{ site.title }}{% endcapture %}
{% if page.layout == "blog" or page.layout == "event" %}
{% capture title %}{{ page.title }} – {{ site.title }}{% endcapture %}
{% else %}
{% capture title %}{{ site.title }} – {% t homepage.header %}{% endcapture %}
{% endif %}
Expand All @@ -25,11 +25,6 @@ <h1 class="color-gray-800 weight-700">{% t generic.redirect.title %}</h1>
<article class="post-content">
<a href="{{ redirect_to }}">{% t generic.redirect.link %}</a>
<script>location='{{ redirect_to }}'</script>
<p>
Page title: {{ page.title }}<br><br>
Translated page title: {% t page.title %}<br><br>
{{ title }}
</p>
</article>
</div>
</div>
Expand Down

0 comments on commit 8b0b70b

Please sign in to comment.