mirror of
https://github.com/ascii-boxes/boxes.git
synced 2025-02-02 02:49:14 +01:00
Extract redirection features for old URLs from 'default' into a new 'redirect' layout
This commit is contained in:
parent
0fb8e2c2cf
commit
c8424e50c7
@ -5,10 +5,6 @@
|
||||
<meta charset="UTF-8">
|
||||
<title>{{ site.name }} - {% if page.title | size > 0 %}{{ page.title }}{% else %}{{ site.description }}{% endif %}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
{% if page.redirect %}
|
||||
<meta name="robots" content="noindex,follow">
|
||||
<meta http-equiv="refresh" content="0; url={{ page.redirect }}" />
|
||||
{% else %}
|
||||
<meta name="author" content="Thomas Jensen" />
|
||||
<meta name="robots" content="index,follow" />
|
||||
{% if page.sedesc %}
|
||||
@ -38,12 +34,10 @@
|
||||
<link href="{{ site.baseurl }}/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="{{ site.baseurl }}/css/theme.css" rel="stylesheet">
|
||||
<link href="{{ site.baseurl }}/css/boxes.css" rel="stylesheet">
|
||||
{% endif %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
{% if page.redirect %}{% else %}
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
||||
@ -60,7 +54,7 @@
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="active"><a href="{{ site.baseurl }}/about.html">About</a></li>
|
||||
<li class="active"><a href="{{ site.baseurl }}/examples.html">Examples</a></li>
|
||||
<li class="active"><a href="{{ site.baseurl }}/docs/index.html">Documentation</a></li>
|
||||
<li class="active"><a href="{{ site.baseurl }}/docs/">Documentation</a></li>
|
||||
<li class="active"><a href="{{ site.baseurl }}/contributing.html">Contributing</a></li>
|
||||
<li class="active"><a href="{{ site.baseurl }}/download.html"><b>Download</b></a></li>
|
||||
<li class="active visible-xs-block"><a href="{{ site.baseurl }}/links.html">Links</a></li>
|
||||
@ -72,4 +66,3 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
@ -1,15 +1,4 @@
|
||||
{% include header.html %}
|
||||
{% if page.redirect %}
|
||||
<div>
|
||||
This page has moved to <A HREF="{{ page.redirect }}">{{ page.redirect }}</A>.
|
||||
|
||||
<P>Please update your bookmarks.
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
{% else %}
|
||||
|
||||
<div class="container container-left">
|
||||
<div class="row">
|
||||
<div class="col-md-3 hidden-xs">
|
||||
@ -22,4 +11,3 @@ This page has moved to <A HREF="{{ page.redirect }}">{{ page.redirect }}</A>.
|
||||
</div>
|
||||
|
||||
{% include footer.html %}
|
||||
{% endif %}
|
||||
|
20
_layouts/redirect.html
Normal file
20
_layouts/redirect.html
Normal file
@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{{ site.name }} - Moved content</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="robots" content="noindex,follow">
|
||||
<meta http-equiv="refresh" content="0; url={{ page.redirect }}" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div>
|
||||
<p>This page has moved to <A HREF="{{ page.redirect }}">{{ page.redirect }}</A>.</p>
|
||||
<p>Please update your bookmarks.</p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,4 +1,4 @@
|
||||
---
|
||||
layout: default
|
||||
layout: redirect
|
||||
redirect: /
|
||||
---
|
||||
|
@ -1,4 +1,4 @@
|
||||
---
|
||||
layout: default
|
||||
layout: redirect
|
||||
redirect: config-complete_exp.html
|
||||
---
|
||||
|
@ -1,4 +1,4 @@
|
||||
---
|
||||
layout: default
|
||||
layout: redirect
|
||||
redirect: config-general.html
|
||||
---
|
||||
|
@ -1,4 +1,4 @@
|
||||
---
|
||||
layout: default
|
||||
layout: redirect
|
||||
redirect: config-step.html
|
||||
---
|
||||
|
@ -1,4 +1,4 @@
|
||||
---
|
||||
layout: default
|
||||
layout: redirect
|
||||
redirect: config-syntax.html
|
||||
---
|
||||
|
@ -1,4 +1,4 @@
|
||||
---
|
||||
layout: default
|
||||
layout: redirect
|
||||
redirect: faq.html
|
||||
---
|
||||
|
@ -1,4 +1,4 @@
|
||||
---
|
||||
layout: default
|
||||
layout: redirect
|
||||
redirect: filters.html
|
||||
---
|
||||
|
@ -1,4 +1,4 @@
|
||||
---
|
||||
layout: default
|
||||
layout: redirect
|
||||
redirect: index.html
|
||||
---
|
||||
|
@ -1,4 +1,4 @@
|
||||
---
|
||||
layout: default
|
||||
layout: redirect
|
||||
redirect: install.html
|
||||
---
|
||||
|
@ -1,4 +1,4 @@
|
||||
---
|
||||
layout: default
|
||||
layout: redirect
|
||||
redirect: legal.html
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user