Skip to content

Commit 03bdf37

Browse files
Slightly more appropriate theme, although I think we'll need a custom theme
1 parent 431c150 commit 03bdf37

File tree

14 files changed

+967
-689
lines changed

14 files changed

+967
-689
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "themes/ananke"]
22
path = themes/ananke
33
url = https://github.com/theNewDynamic/gohugo-theme-ananke.git
4+
[submodule "themes/PaperMod"]
5+
path = themes/PaperMod
6+
url = https://github.com/adityatelange/hugo-PaperMod.git

content/_index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
+++
22
menus = 'main'
3-
title = 'Cognate'
3+
title = 'About'
44
+++
55

6-
7-
## Readable and concise concatenative programming
6+
# Cognate
7+
Readable and concise concatenative programming
88

99
```
1010
~~ Fizzbuzz in Cognate

content/learn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title = 'Learn'
55
+++
66

77

8-
## A brief introduction to the language
8+
A brief introduction to the language
99

1010

1111
## Install

hugo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
baseURL = 'https://cognate-lang.github.io/'
22
languageCode = 'en-us'
33
title = 'Cognate'
4-
theme = 'ananke'
4+
theme = 'PaperMod'

public/404.html

Lines changed: 183 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -1,119 +1,189 @@
11
<!DOCTYPE html>
2-
<html lang="en-us">
3-
<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script>
4-
<meta charset="utf-8">
5-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
6-
7-
<title>Cognate</title>
8-
<meta name="viewport" content="width=device-width,minimum-scale=1">
9-
<meta name="description" content="">
10-
<meta name="generator" content="Hugo 0.130.0">
11-
12-
13-
14-
15-
<meta name="robots" content="noindex, nofollow">
16-
17-
18-
19-
20-
<link rel="stylesheet" href="/ananke/css/main.min.css" >
21-
22-
23-
24-
25-
26-
27-
28-
29-
30-
31-
32-
33-
34-
<link rel="canonical" href="http://localhost:1313/404.html">
35-
36-
37-
<meta property="og:url" content="http://localhost:1313/404.html">
38-
<meta property="og:site_name" content="Cognate">
39-
<meta property="og:title" content="404 Page not found">
40-
<meta property="og:locale" content="en_us">
41-
<meta property="og:type" content="website">
42-
43-
<meta itemprop="name" content="404 Page not found">
44-
<meta name="twitter:card" content="summary">
45-
<meta name="twitter:title" content="404 Page not found">
46-
47-
48-
</head>
49-
50-
<body class="ma0 avenir bg-near-white">
51-
52-
53-
54-
<header>
55-
<div class="bg-black">
56-
<nav class="pv3 ph3 ph4-ns" role="navigation">
57-
<div class="flex-l justify-between items-center center">
58-
<a href="/" class="f3 fw2 hover-white no-underline white-90 dib">
59-
60-
Cognate
61-
62-
</a>
63-
<div class="flex-l items-center">
64-
65-
66-
67-
<ul class="pl0 mr3">
68-
69-
<li class="list f5 f4-ns fw4 dib pr3">
70-
<a class="hover-white no-underline white-90" href="/" title="Cognate page">
71-
Cognate
72-
</a>
73-
</li>
74-
75-
<li class="list f5 f4-ns fw4 dib pr3">
76-
<a class="hover-white no-underline white-90" href="/learn/" title="Cognate: Readable and concise concatenative programming page">
77-
Cognate: Readable and concise concatenative programming
78-
</a>
79-
</li>
80-
2+
<html lang="en" dir="auto">
3+
4+
<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script><meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7+
<meta name="robots" content="noindex, nofollow">
8+
<title>404 Page not found | Cognate</title>
9+
<meta name="keywords" content="">
10+
<meta name="description" content="">
11+
<meta name="author" content="">
12+
<link rel="canonical" href="http://localhost:1313/404.html">
13+
<link crossorigin="anonymous" href="/assets/css/stylesheet.fc220c15db4aef0318bbf30adc45d33d4d7c88deff3238b23eb255afdc472ca6.css" integrity="sha256-/CIMFdtK7wMYu/MK3EXTPU18iN7/MjiyPrJVr9xHLKY=" rel="preload stylesheet" as="style">
14+
<link rel="icon" href="http://localhost:1313/favicon.ico">
15+
<link rel="icon" type="image/png" sizes="16x16" href="http://localhost:1313/favicon-16x16.png">
16+
<link rel="icon" type="image/png" sizes="32x32" href="http://localhost:1313/favicon-32x32.png">
17+
<link rel="apple-touch-icon" href="http://localhost:1313/apple-touch-icon.png">
18+
<link rel="mask-icon" href="http://localhost:1313/safari-pinned-tab.svg">
19+
<meta name="theme-color" content="#2e2e33">
20+
<meta name="msapplication-TileColor" content="#2e2e33">
21+
<link rel="alternate" hreflang="en" href="http://localhost:1313/404.html">
22+
<noscript>
23+
<style>
24+
#theme-toggle,
25+
.top-link {
26+
display: none;
27+
}
28+
29+
</style>
30+
<style>
31+
@media (prefers-color-scheme: dark) {
32+
:root {
33+
--theme: rgb(29, 30, 32);
34+
--entry: rgb(46, 46, 51);
35+
--primary: rgb(218, 218, 219);
36+
--secondary: rgb(155, 156, 157);
37+
--tertiary: rgb(65, 66, 68);
38+
--content: rgb(196, 196, 197);
39+
--code-block-bg: rgb(46, 46, 51);
40+
--code-bg: rgb(55, 56, 62);
41+
--border: rgb(51, 51, 51);
42+
}
43+
44+
.list {
45+
background: var(--theme);
46+
}
47+
48+
.list:not(.dark)::-webkit-scrollbar-track {
49+
background: 0 0;
50+
}
51+
52+
.list:not(.dark)::-webkit-scrollbar-thumb {
53+
border-color: var(--theme);
54+
}
55+
}
56+
57+
</style>
58+
</noscript>
59+
</head>
60+
61+
<body class="list" id="top">
62+
<script>
63+
if (localStorage.getItem("pref-theme") === "dark") {
64+
document.body.classList.add('dark');
65+
} else if (localStorage.getItem("pref-theme") === "light") {
66+
document.body.classList.remove('dark')
67+
} else if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
68+
document.body.classList.add('dark');
69+
}
70+
71+
</script>
72+
73+
<header class="header">
74+
<nav class="nav">
75+
<div class="logo">
76+
<a href="http://localhost:1313/" accesskey="h" title="Cognate (Alt + H)">Cognate</a>
77+
<div class="logo-switches">
78+
<button id="theme-toggle" accesskey="t" title="(Alt + T)">
79+
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
80+
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
81+
stroke-linejoin="round">
82+
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
83+
</svg>
84+
<svg id="sun" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
85+
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
86+
stroke-linejoin="round">
87+
<circle cx="12" cy="12" r="5"></circle>
88+
<line x1="12" y1="1" x2="12" y2="3"></line>
89+
<line x1="12" y1="21" x2="12" y2="23"></line>
90+
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
91+
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
92+
<line x1="1" y1="12" x2="3" y2="12"></line>
93+
<line x1="21" y1="12" x2="23" y2="12"></line>
94+
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
95+
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
96+
</svg>
97+
</button>
98+
</div>
99+
</div>
100+
<ul id="menu">
101+
<li>
102+
<a href="http://localhost:1313/" title="About">
103+
<span>About</span>
104+
</a>
105+
</li>
106+
<li>
107+
<a href="http://localhost:1313/learn/" title="Learn">
108+
<span>Learn</span>
109+
</a>
110+
</li>
81111
</ul>
82-
83-
84-
<div class="ananke-socials">
85-
86-
</div>
87-
88-
</div>
89-
</div>
90-
</nav>
91-
92-
</div>
93-
</header>
94-
95-
96-
<main class="pb7" role="main">
97-
98-
<article class="center cf pv5 measure-wide-l">
99-
<h1>
100-
This is not the page you were looking for
101-
</h1>
102-
</article>
103-
112+
</nav>
113+
</header>
114+
<main class="main">
115+
<div class="not-found">404</div>
104116
</main>
105-
<footer class="bg-black bottom-0 w-100 pa3" role="contentinfo">
106-
<div class="flex justify-between">
107-
<a class="f4 fw4 hover-white no-underline white-70 dn dib-ns pv2 ph3" href="http://localhost:1313/" >
108-
&copy; Cognate 2024
109-
</a>
110-
<div>
111-
<div class="ananke-socials">
112-
113-
</div>
114-
</div>
115-
</div>
117+
118+
<footer class="footer">
119+
<span>&copy; 2024 <a href="http://localhost:1313/">Cognate</a></span> ·
120+
121+
<span>
122+
Powered by
123+
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &
124+
<a href="https://github.com/adityatelange/hugo-PaperMod/" rel="noopener" target="_blank">PaperMod</a>
125+
</span>
116126
</footer>
127+
<a href="#top" aria-label="go to top" title="Go to Top (Alt + G)" class="top-link" id="top-link" accesskey="g">
128+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6" fill="currentColor">
129+
<path d="M12 6H0l6-6z" />
130+
</svg>
131+
</a>
132+
133+
<script>
134+
let menu = document.getElementById('menu')
135+
if (menu) {
136+
menu.scrollLeft = localStorage.getItem("menu-scroll-position");
137+
menu.onscroll = function () {
138+
localStorage.setItem("menu-scroll-position", menu.scrollLeft);
139+
}
140+
}
141+
142+
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
143+
anchor.addEventListener("click", function (e) {
144+
e.preventDefault();
145+
var id = this.getAttribute("href").substr(1);
146+
if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
147+
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView({
148+
behavior: "smooth"
149+
});
150+
} else {
151+
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView();
152+
}
153+
if (id === "top") {
154+
history.replaceState(null, null, " ");
155+
} else {
156+
history.pushState(null, null, `#${id}`);
157+
}
158+
});
159+
});
160+
161+
</script>
162+
<script>
163+
var mybutton = document.getElementById("top-link");
164+
window.onscroll = function () {
165+
if (document.body.scrollTop > 800 || document.documentElement.scrollTop > 800) {
166+
mybutton.style.visibility = "visible";
167+
mybutton.style.opacity = "1";
168+
} else {
169+
mybutton.style.visibility = "hidden";
170+
mybutton.style.opacity = "0";
171+
}
172+
};
173+
174+
</script>
175+
<script>
176+
document.getElementById("theme-toggle").addEventListener("click", () => {
177+
if (document.body.className.includes("dark")) {
178+
document.body.classList.remove('dark');
179+
localStorage.setItem("pref-theme", 'light');
180+
} else {
181+
document.body.classList.add('dark');
182+
localStorage.setItem("pref-theme", 'dark');
183+
}
184+
})
185+
186+
</script>
187+
</body>
117188

118-
</body>
119189
</html>

0 commit comments

Comments
 (0)