mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Normalize page redirections
Use a fallback HTML page with a manual and javascript redirect Keep canonical pages only for alerts
This commit is contained in:
parent
b988ce349c
commit
3da682b36b
11 changed files with 69 additions and 54 deletions
|
@ -2,10 +2,12 @@
|
|||
layout: base
|
||||
lang: en
|
||||
---
|
||||
{% if page.redirect != nil %}
|
||||
<script>window.location.href='/en/alert/{{ page.redirect }}';</script>
|
||||
<link rel="canonical" href="http://bitcoin.org/en/alert/{{ page.redirect }}"/>
|
||||
|
||||
{% if page.canonical != nil %}
|
||||
<script>window.location.href='{{ page.canonical }}';</script>
|
||||
<link rel="canonical" href="http://bitcoin.org{{ page.canonical }}"/>
|
||||
{% endif %}
|
||||
|
||||
<link rel="alternate" type="application/rss+xml" href="/en/rss/alerts.rss" title="Bitcoin network status and alerts">
|
||||
<div class="alerttext">
|
||||
<h1>{{ page.title }}<br><small>{{ page.date | date:"%e %B %Y" }}</small></h1>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue