Skip to content

Commit 7795e3b

Browse files
committed
feat: analytics + SEO
1 parent 09b5347 commit 7795e3b

File tree

4 files changed

+20
-9
lines changed

4 files changed

+20
-9
lines changed

TODO.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ x host to Github
55
! create the S3 bucket in AWS
66
! setup the BunnyCDN domain
77

8-
- publish to Github pages
9-
- setup the Plausible handle
10-
- first deployment
11-
- update DNS
12-
- shutdown README.com
8+
- [x] publish to Github pages
9+
- [x] setup the Plausible handle
10+
- [x] first deployment
11+
- [ ] update DNS
12+
- [ ] shutdown README.com

layouts/layout.html.erb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,11 @@
4141
<%= javascript_include_tag 'site', defer: true %>
4242

4343
<% if settings.features['analytics_enabled'] %>
44-
<script defer data-domain="doc.locomotivecms.com" src="https://plausible.io/js/script.file-downloads.outbound-links.js"></script>
45-
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
44+
<script async src="https://plausible.io/js/pa-wPanoyB80VdIWc7uXHLuo.js"></script>
45+
<script>
46+
window.plausible=window.plausible||function(){(plausible.q=plausible.q||[]).push(arguments)},plausible.init=plausible.init||function(i){plausible.o=i||{}};
47+
plausible.init()
48+
</script>
4649
<% end %>
4750
</head>
4851
<body class="font-sans">

layouts/redirect.html.erb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Redirecting...</title>
7+
<meta name="robots" content="noindex,follow" />
8+
<link rel="canonical" href="<%= current_page.data.fetch('redirect_to') %>" />
49
<meta http-equiv="refresh" content="0; url=<%= current_page.data.fetch('redirect_to') %>" />
510
</head>
611
<body>
712
<h1>Redirecting...</h1>
13+
<p>
14+
If you are not redirected automatically,
15+
<a href="<%= current_page.data.fetch('redirect_to') %>">continue here</a>.
16+
</p>
817
</body>
918
</html>

pages/index.html.erb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
22
title: Documentation
33
redirect_to: /get-started/quick-start
4+
layout: redirect
45
sidebar: false
56
order: 0
67
---
7-
<meta http-equiv="refresh" content="0;url=/get-started/quick-start">
8-
<p>Redirecting to <a href="/get-started/quick-start">Quick Start</a>...</p>

0 commit comments

Comments
 (0)