Skip to content

Commit 21ca4eb

Browse files
committed
Use a custom theme
1 parent 03bdf37 commit 21ca4eb

27 files changed

+341
-1135
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.hugo_build.lock
2+
resources
3+
node_modules

.gitmodules

Lines changed: 0 additions & 6 deletions
This file was deleted.

assets/main.css

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
body {
2+
font-family: serif;
3+
color: #333333;
4+
font-size: 100%;
5+
background-color: #ffffff;
6+
}
7+
8+
h1 {
9+
font-style: italic;
10+
text-align:center;
11+
font-size: 5em;
12+
margin-bottom: 0;
13+
}
14+
15+
h2 {
16+
font-style: italic;
17+
text-align:center;
18+
font-size: 2em;
19+
margin-left: 5%;
20+
margin-right: 5%;
21+
}
22+
23+
li {
24+
font-family: serif;
25+
font-size: 1.2em;
26+
text-align:center;
27+
list-style:none;
28+
font-style: italic;
29+
margin-bottom: 0.5em;
30+
}
31+
32+
.mono {
33+
font-family: monospace;
34+
font-size: 1.2em;
35+
background-color: #eeeeee;
36+
}
37+
38+
.code {
39+
margin: auto;
40+
display: block;
41+
width: 40em;
42+
}
43+
44+
p {
45+
font-family: serif;
46+
font-size: 1.2em;
47+
display: block;
48+
width: 70%;
49+
margin: auto;
50+
margin-block-start: 1em;
51+
margin-block-end: 1em;
52+
}
53+
54+
a {
55+
font-family: inherit;
56+
font-size: inherit;
57+
}
58+
59+
code {
60+
font-family: monospace;
61+
font-size: 1.2em;
62+
background-color: #eeeeee;
63+
}
64+
65+
pre {
66+
font-size: 2em;
67+
font-family: monospace;
68+
color: #333333;
69+
background-color: #ffffff;
70+
margin-bottom: 0;
71+
}

content/_index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ title = 'About'
44
+++
55

66
# Cognate
7-
Readable and concise concatenative programming
7+
8+
## Readable and concise concatenative programming
89

910
```
1011
~~ Fizzbuzz in Cognate
@@ -85,5 +86,5 @@ Cognate borrows from other concatenative languages, but also adds unique feature
8586
- Natural language programming
8687

8788

88-
Interested? Read the [tutorial](learn.html), check out the [interactive web playground](https://cognate-playground.hedy.dev/), or visit our [GitHub repository](https://github.com/cognate-lang/cognate).
89+
Interested? Read the [tutorial](/learn/), check out the [interactive web playground](https://cognate-playground.hedy.dev/), or visit our [GitHub repository](https://github.com/cognate-lang/cognate).
8990

content/learn.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
21
+++
32
menus = 'main'
4-
title = 'Learn'
3+
title = 'Learn Cognate'
54
+++
65

6+
# Learn Cognate
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
baseURL = 'https://cognate-lang.github.io/'
22
languageCode = 'en-us'
3-
title = 'Cognate'
4-
theme = 'PaperMod'
3+
title = 'Cognate: Readable and concise concatenative programming'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div class="code">
2+
<pre>
3+
{{- .Inner | safeHTML }}
4+
</pre>
5+
</div>

layouts/_default/baseof.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{{/* A base template for all pages in the site */}}
2+
<!doctype html>
3+
<html>
4+
<head>
5+
<meta charset="UTF-8" />
6+
{{ $css := resources.Get "main.css" | minify -}}
7+
<link rel="stylesheet" href="{{ $css.RelPermalink }}" />
8+
{{ if eq .RelPermalink "/" -}}
9+
<title>{{ $.Site.Title }}</title>
10+
{{ else -}}
11+
<title>{{ .Title }}</title>
12+
{{ end -}}
13+
</head>
14+
<body>
15+
{{/* Allows child templates to define this block */}}
16+
{{ block "main" . }}{{ end }}
17+
<br /><br /><br />
18+
</body>
19+
</html>

layouts/_default/single.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{{/* A base template for all pages in the site that inherits baseof.html */}}
2+
{{ define "main" }}
3+
{{ .Content }}
4+
{{ end }}

layouts/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{{ define "main" }}
2+
{{ .Content }}
3+
{{ end }}

0 commit comments

Comments
 (0)