Skip to content
This repository was archived by the owner on May 4, 2026. It is now read-only.

Commit 8b9e8df

Browse files
committed
Temporary: Moving documentation to internal CMS system, redirect pages to the coderscorner.
1 parent 3aeb60e commit 8b9e8df

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

themes/belter/layouts/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
<head>
44
<title>{{ .Title }} {{ if ne .Title .Site.Title }} &middot; {{ .Site.Title }}{{ end }}</title>
55

6+
<link rel="canonical" href="https://www.thecoderscorner.com/products/arduino-libraries/">
7+
8+
<meta http-equiv="refresh" content="0; url=https://www.thecoderscorner.com/products/arduino-libraries/">
9+
10+
<script type="text/javascript">
11+
window.location.replace("https://www.thecoderscorner.com/products/arduino-libraries/");
12+
</script>
13+
614
<meta http-equiv="content-type" content="text/html; charset=utf-8">
715
<meta http-equiv="X-UA-Compatible" content="IE=edge">
816
<meta name="viewport" content="width=device-width, initial-scale=1">

themes/belter/layouts/partials/head.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
<head>
44
<title>{{ .Title }} {{ if ne .Title .Site.Title }} &middot; {{ .Site.Title }}{{ end }}</title>
55

6+
{{- $new_base := "https://www.thecoderscorner.com/products/" -}}
7+
{{- $path := .RelPermalink | relURL -}}
8+
9+
<link rel="canonical" href="{{ $new_base }}{{ $path }}">
10+
11+
<meta http-equiv="refresh" content="0; url={{ $new_base }}{{ $path }}">
12+
13+
<script type="text/javascript">
14+
let newUrl = "{{ $new_base }}" + window.location.pathname.replace('/documentation/', '');
15+
window.location.replace(newUrl);
16+
</script>
17+
618
<meta http-equiv="content-type" content="text/html; charset=utf-8">
719
<meta http-equiv="X-UA-Compatible" content="IE=edge">
820
<meta name="viewport" content="width=device-width, initial-scale=1">
@@ -24,3 +36,6 @@
2436
</head>
2537
<body>
2638
{{ partial "base/header" . }}
39+
<h1>This documentation has moved, if you're not redirected, please visit
40+
<a href="{{ $new_base }}{{ $path }}">the new location</a>
41+
</h1>

0 commit comments

Comments
 (0)