Skip to content

Commit 4a7f20b

Browse files
committed
refactor HTML shell into default template
1 parent 74a15ca commit 4a7f20b

File tree

2 files changed

+84
-60
lines changed

2 files changed

+84
-60
lines changed

_layouts/default.html

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<meta name="description" content="We're building open, community-first software for the sport of rowing. 🚣‍♀️">
8+
<meta name="author" content="Open Rowing Community">
9+
<meta name="robots" content="index, follow">
10+
<link rel="icon" type="image/png" href="favicon.png">
11+
12+
<meta property="og:title" content="Open Rowing Community">
13+
<meta property="og:description" content="We're building open, community-first software for the sport of rowing. 🚣‍♀️">
14+
<meta property="og:image" content="https://openrowing.com/logo.png">
15+
<meta property="og:url" content="https://openrowing.com">
16+
<meta property="og:type" content="website">
17+
18+
<title>Open Rowing Community</title>
19+
<style>
20+
body {
21+
font-family: sans-serif;
22+
display: flex;
23+
flex-direction: column;
24+
align-items: center;
25+
justify-content: center;
26+
min-height: 100vh;
27+
margin: 0;
28+
padding: 2rem;
29+
background-color: #f9f9f9;
30+
}
31+
32+
img.logo {
33+
max-width: 150px;
34+
margin-bottom: 1rem;
35+
}
36+
37+
h1 {
38+
font-size: 2.5em;
39+
}
40+
41+
p {
42+
font-size: 1.2em;
43+
max-width: 600px;
44+
text-align: center;
45+
}
46+
47+
a {
48+
text-decoration: none;
49+
color: #007acc;
50+
}
51+
</style>
52+
<!-- Matomo -->
53+
<script>
54+
var _paq = window._paq = window._paq || [];
55+
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
56+
_paq.push(['trackPageView']);
57+
_paq.push(['enableLinkTracking']);
58+
(function () {
59+
var u = "//analytics.adriancedwards.com/";
60+
_paq.push(['setTrackerUrl', u + 'matomo.php']);
61+
_paq.push(['setSiteId', '20']);
62+
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
63+
g.async = true; g.src = u + 'matomo.js'; s.parentNode.insertBefore(g, s);
64+
})();
65+
</script>
66+
<!-- End Matomo Code -->
67+
</head>
68+
69+
<body>
70+
{{ content }}
71+
</body>
72+
73+
</html>

index.html

Lines changed: 11 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,12 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<meta name="description" content="We're building open, community-first software for the sport of rowing. 🚣‍♀️">
7-
<meta name="author" content="Open Rowing Community">
8-
<meta name="robots" content="index, follow">
9-
<link rel="icon" type="image/png" href="favicon.png">
1+
---
2+
layout: default
3+
---
4+
<img class="logo" src="logo.svg" />
5+
<h1>Open Rowing Community</h1>
6+
<p>
7+
<a href="https://pub.dev/publishers/openrowing.com/packages"><img alt="Static Badge" src="https://img.shields.io/badge/pub.dev-openrowing.com-blue"></a><br>
8+
We're building open, community-first software for the sport of rowing. 🚣‍♀️</p>
9+
<p></p>
10+
<p><a href="https://codeberg.org/OpenRowingCommunity">Explore our Code →</a></p>
11+
<p><a href="https://matrix.to/#/#openrowing:matrix.org">Chat with Us →</a></p>
1012

11-
<meta property="og:title" content="Open Rowing Community">
12-
<meta property="og:description" content="We're building open, community-first software for the sport of rowing. 🚣‍♀️">
13-
<meta property="og:image" content="https://openrowing.com/logo.png">
14-
<meta property="og:url" content="https://openrowing.com">
15-
<meta property="og:type" content="website">
16-
17-
<title>Open Rowing Community</title>
18-
<style>
19-
body {
20-
font-family: sans-serif;
21-
display: flex;
22-
flex-direction: column;
23-
align-items: center;
24-
justify-content: center;
25-
min-height: 100vh;
26-
margin: 0;
27-
padding: 2rem;
28-
background-color: #f9f9f9;
29-
}
30-
img.logo {
31-
max-width: 150px;
32-
margin-bottom: 1rem;
33-
}
34-
h1 { font-size: 2.5em; }
35-
p { font-size: 1.2em; max-width: 600px; text-align: center; }
36-
a { text-decoration: none; color: #007acc; }
37-
</style>
38-
<!-- Matomo -->
39-
<script>
40-
var _paq = window._paq = window._paq || [];
41-
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
42-
_paq.push(['trackPageView']);
43-
_paq.push(['enableLinkTracking']);
44-
(function () {
45-
var u = "//analytics.adriancedwards.com/";
46-
_paq.push(['setTrackerUrl', u + 'matomo.php']);
47-
_paq.push(['setSiteId', '20']);
48-
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
49-
g.async = true; g.src = u + 'matomo.js'; s.parentNode.insertBefore(g, s);
50-
})();
51-
</script>
52-
<!-- End Matomo Code -->
53-
</head>
54-
<body>
55-
<img class="logo" src="logo.svg" />
56-
<h1>Open Rowing Community</h1>
57-
<p>We're building open, community-first software for the sport of rowing. 🚣‍♀️</p>
58-
<p><a href="https://codeberg.org/OpenRowingCommunity">Explore our Code →</a></p>
59-
<p><a href="https://matrix.to/#/#openrowing:matrix.org">Chat with Us →</a></p>
60-
</body>
61-
</html>

0 commit comments

Comments
 (0)