Skip to content

Commit d1d0142

Browse files
committed
Redirect GitHub Pages deploy to netlify
1 parent d575db7 commit d1d0142

File tree

2 files changed

+63
-6
lines changed

2 files changed

+63
-6
lines changed

layouts/index.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020

2121
<center>
2222
<h3>Strongly Typed. Weekly Held.</h3>
23-
A developer blog.<br>
24-
Expect new posts every Tuesday.<br>
25-
<b>See my work <a href="/projects">here</a>.</b>
23+
<p>You will be redirected to <a href="https://dandylyons.net">the new site at https://dandylyons.net</a> shortly.</p>
2624
</center>
2725

2826
<br><br>
@@ -42,9 +40,6 @@ <h3 class="posts-item-note" aria-label="Recent Posts">{{ T "home.recent_posts" }
4240
{{ end }}
4341
</p>
4442
{{ end }}
45-
<center>
46-
Subscribe to the rss feed <a href="https://dandylyons.net/posts/index.xml">here</a>.
47-
</center>
4843
</main>
4944
</div>
5045
{{- partial "footer.html" . -}}

layouts/partials/head.html

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<head>
2+
3+
<title>Redirecting to dandylyons.net{{ .RelPermalink }}...</title>
4+
5+
{{/* Construct the destination URL with the correct path */}}
6+
{{ $destinationURL := urls.JoinPath "https://dandylyons.net/" .RelPermalink }}
7+
8+
{{/* Meta refresh for instant client-side redirect */}}
9+
<meta http-equiv="refresh" content="0;url={{ $destinationURL }}">
10+
11+
{{/* Canonical tag pointing to the preferred (Netlify) URL for this specific path */}}
12+
<link rel="canonical" href="{{ $destinationURL }}" />
13+
14+
{{- partial "meta/main.html" . }}
15+
{{- hugo.Generator }}
16+
17+
{{/* Open Graph tags */}}
18+
{{ template "_internal/opengraph.html" . }}
19+
20+
{{/* Twitter Card tags */}}
21+
{{ template "_internal/twitter_cards.html" . }}
22+
23+
{{/* Canonical link, RSS */}}
24+
25+
<link rel="canonical" href="{{ .Permalink }}">
26+
{{- with .OutputFormats.Get "RSS" }}
27+
<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}">
28+
<link href="{{ .RelPermalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}">
29+
{{- end }}
30+
31+
{{- /* Styles */ -}}
32+
33+
{{- $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "style.scss" . | toCSS (dict "targetPath" "style.css") | minify | fingerprint }}
34+
<link href="{{ $style.RelPermalink }}" rel="stylesheet">
35+
{{- $code_syntax_highlight_css := resources.Get "code-highlight.css" | minify | fingerprint }}
36+
<link href="{{ $code_syntax_highlight_css.RelPermalink }}" rel="stylesheet">
37+
38+
{{/* Favicons */}}
39+
<link rel="apple-touch-icon" sizes="180x180" href="{{ (resources.Get "icons/apple-touch-icon.png").RelPermalink }}">
40+
<link rel="icon" type="image/png" sizes="32x32" href="{{ (resources.Get "icons/favicon-32x32.png").RelPermalink }}">
41+
<link rel="icon" type="image/png" sizes="16x16" href="{{ (resources.Get "icons/favicon-16x16.png").RelPermalink }}">
42+
<link rel="mask-icon" href="{{ (resources.Get "icons/safari-pinned-tab.svg").RelPermalink }}">
43+
<link rel="shortcut icon" href="{{ (resources.Get "icons/favicon.ico" | resources.Copy "favicon.ico").RelPermalink }}">
44+
45+
{{- partial "webmanifest.html" . -}}
46+
{{- partial "browserconfig.html" . -}}
47+
48+
<meta name="theme-color" content="{{ .Site.Params.webmanifest.theme_color | default "#434648" }}">
49+
50+
{{/* SVG favicon for the modern web */}}
51+
<link rel="icon" type="image/svg+xml" href="{{ (resources.Get "icons/favicon.svg").RelPermalink }}">
52+
53+
{{/* Katex support (enabled on specific pages). See 'helpers/katex.html' for more info. */}}
54+
55+
{{- if or .Params.math .Site.Params.math }}{{ partial "helpers/katex.html" . -}}{{- end -}}
56+
57+
{{/* Google analytics script. See hugo.toml to enable/disable this. */}}
58+
{{- if hugo.IsProduction | or (eq site.Params.env "production") }}
59+
{{ template "_internal/google_analytics.html" . }}
60+
{{- end -}}
61+
62+
</head>

0 commit comments

Comments
 (0)