Skip to content

Commit ece1b36

Browse files
committed
Changing to papermod again
1 parent 88f82e4 commit ece1b36

File tree

17,625 files changed

+4858
-1335173
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

17,625 files changed

+4858
-1335173
lines changed

.github/workflows/hugo.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,4 @@ jobs:
7676
- name: Deploy to GitHub Pages
7777
id: deployment
7878
uses: actions/deploy-pages@v3
79+

assets/jsconfig.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"paths": {
5+
"*": [
6+
"..\\themes\\thulite-project\\assets\\*",
7+
"..\\themes\\thulite-project\\node_modules\\@thulite\\doks-core\\assets\\*"
8+
]
9+
}
10+
}
11+
}

config.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
baseURL = 'https://example.org/'
2+
languageCode = 'en-us'
3+
title = 'Coat Assistant'
4+
theme= 'PaperMod'
5+
6+
7+
[menu]
8+
[[menu.main]]
9+
name = "Home"
10+
url = "/"
11+
weight = 1
12+
13+
[[menu.main]]
14+
name = "About"
15+
url = "/about"
16+
weight = 2
17+
18+
[[menu.main]]
19+
name = "Blog"
20+
url = "/blog"
21+
weight = 3
22+
23+
[[menu.main]]
24+
name = "Post"
25+
url = "/post"
26+
weight = 4

content/about.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
+++
2+
date = '2025-01-12T11:07:13+01:00'
3+
draft = 'true'
4+
title = 'About the coat assistant'
5+
image = '/img/coatassistant.JPEG'
6+
7+
+++
8+
9+
I love to write about it
10+
![Coat assistant](/img/coatassistant.JPEG)

content/blog/blogpost1.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
+++
2+
date = '2025-01-12T11:07:13+01:00'
3+
draft = 'true'
4+
title = 'Blogpost1'
5+
6+
+++
7+
8+
I love to blog

doks

Submodule doks deleted from 607c24c

hugo.toml

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

layouts/partials/header.html

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
{{- /* theme-toggle is enabled */}}
2+
{{- if (not site.Params.disableThemeToggle) }}
3+
{{- /* theme is light */}}
4+
{{- if (eq site.Params.defaultTheme "light") }}
5+
<script>
6+
if (localStorage.getItem("pref-theme") === "dark") {
7+
document.body.classList.add('dark');
8+
}
9+
10+
</script>
11+
{{- /* theme is dark */}}
12+
{{- else if (eq site.Params.defaultTheme "dark") }}
13+
<script>
14+
if (localStorage.getItem("pref-theme") === "light") {
15+
document.body.classList.remove('dark')
16+
}
17+
18+
</script>
19+
{{- else }}
20+
{{- /* theme is auto */}}
21+
<script>
22+
if (localStorage.getItem("pref-theme") === "dark") {
23+
document.body.classList.add('dark');
24+
} else if (localStorage.getItem("pref-theme") === "light") {
25+
document.body.classList.remove('dark')
26+
} else if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
27+
document.body.classList.add('dark');
28+
}
29+
30+
</script>
31+
{{- end }}
32+
{{- /* theme-toggle is disabled and theme is auto */}}
33+
{{- else if (and (ne site.Params.defaultTheme "light") (ne site.Params.defaultTheme "dark"))}}
34+
<script>
35+
if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
36+
document.body.classList.add('dark');
37+
}
38+
39+
</script>
40+
{{- end }}
41+
42+
<header class="header">
43+
<nav class="nav">
44+
<div class="logo">
45+
{{- $label_text := (site.Params.label.text | default site.Title) }}
46+
{{- if site.Title }}
47+
<a href="{{ "" | absLangURL }}" accesskey="h" title="{{ $label_text }} (Alt + H)">
48+
{{- if site.Params.label.icon }}
49+
{{- $img := resources.Get site.Params.label.icon }}
50+
{{- if $img }}
51+
{{- $processableFormats := (slice "jpg" "jpeg" "png" "tif" "bmp" "gif") -}}
52+
{{- if hugo.IsExtended -}}
53+
{{- $processableFormats = $processableFormats | append "webp" -}}
54+
{{- end -}}
55+
{{- $prod := (hugo.IsProduction | or (eq site.Params.env "production")) }}
56+
{{- if and (in $processableFormats $img.MediaType.SubType) (eq $prod true)}}
57+
{{- if site.Params.label.iconHeight }}
58+
{{- $img = $img.Resize (printf "x%d" site.Params.label.iconHeight) }}
59+
{{ else }}
60+
{{- $img = $img.Resize "x30" }}
61+
{{- end }}
62+
{{- end }}
63+
<img src="{{ $img.Permalink }}" alt="" aria-label="logo"
64+
height="{{- site.Params.label.iconHeight | default "30" -}}">
65+
{{- else }}
66+
<img src="{{- site.Params.label.icon | absURL -}}" alt="" aria-label="logo"
67+
height="{{- site.Params.label.iconHeight | default "30" -}}">
68+
{{- end -}}
69+
{{- else if hasPrefix site.Params.label.iconSVG "<svg" }}
70+
{{ site.Params.label.iconSVG | safeHTML }}
71+
{{- end -}}
72+
{{- $label_text -}}
73+
</a>
74+
{{- end }}
75+
<div class="logo-switches">
76+
{{- if (not site.Params.disableThemeToggle) }}
77+
<button id="theme-toggle" accesskey="t" title="(Alt + T)">
78+
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
79+
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
80+
stroke-linejoin="round">
81+
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
82+
</svg>
83+
<svg id="sun" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
84+
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
85+
stroke-linejoin="round">
86+
<circle cx="12" cy="12" r="5"></circle>
87+
<line x1="12" y1="1" x2="12" y2="3"></line>
88+
<line x1="12" y1="21" x2="12" y2="23"></line>
89+
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
90+
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
91+
<line x1="1" y1="12" x2="3" y2="12"></line>
92+
<line x1="21" y1="12" x2="23" y2="12"></line>
93+
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
94+
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
95+
</svg>
96+
</button>
97+
{{- end }}
98+
99+
{{- $lang := .Lang}}
100+
{{- $separator := or $label_text (not site.Params.disableThemeToggle)}}
101+
{{- with site.Home.Translations }}
102+
<ul class="lang-switch">
103+
{{- if $separator }}<li>|</li>{{ end }}
104+
{{- range . -}}
105+
{{- if ne $lang .Lang }}
106+
<li>
107+
<a href="{{- .Permalink -}}" title="{{ .Language.Params.languageAltTitle | default (.Language.LanguageName | emojify) | default (.Lang | title) }}"
108+
aria-label="{{ .Language.LanguageName | default (.Lang | title) }}">
109+
{{- if (and site.Params.displayFullLangName (.Language.LanguageName)) }}
110+
{{- .Language.LanguageName | emojify -}}
111+
{{- else }}
112+
{{- .Lang | title -}}
113+
{{- end -}}
114+
</a>
115+
</li>
116+
{{- end -}}
117+
{{- end}}
118+
</ul>
119+
{{- end }}
120+
</div>
121+
</div>
122+
{{- $currentPage := . }}
123+
<ul id="menu">
124+
{{- range site.Menus.main }}
125+
{{- $menu_item_url := (cond (strings.HasSuffix .URL "/") .URL (printf "%s/" .URL) ) | absLangURL }}
126+
{{- $page_url:= $currentPage.Permalink | absLangURL }}
127+
{{- $is_search := eq (site.GetPage .KeyName).Layout `search` }}
128+
<li>
129+
<a href="{{ .URL | absLangURL }}" title="{{ .Title | default .Name }} {{- cond $is_search (" (Alt + /)" | safeHTMLAttr) ("" | safeHTMLAttr ) }}"
130+
{{- cond $is_search (" accesskey=/" | safeHTMLAttr) ("" | safeHTMLAttr ) }}>
131+
<span {{- if eq $menu_item_url $page_url }} class="active" {{- end }}>
132+
{{- .Pre }}
133+
{{- .Name -}}
134+
{{ .Post -}}
135+
</span>
136+
{{- if (findRE "://" .URL) }}&nbsp;
137+
<svg fill="none" shape-rendering="geometricPrecision" stroke="currentColor" stroke-linecap="round"
138+
stroke-linejoin="round" stroke-width="2.5" viewBox="0 0 24 24" height="12" width="12">
139+
<path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"></path>
140+
<path d="M15 3h6v6"></path>
141+
<path d="M10 14L21 3"></path>
142+
</svg>
143+
{{- end }}
144+
</a>
145+
</li>
146+
{{- end }}
147+
</ul>
148+
</nav>
149+
</header>
150+
151+

public/404.html

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
77
<meta name="robots" content="noindex, nofollow">
8-
<title>404 Page not found | Bob the builder loves to build</title>
8+
<title>404 Page not found | Coat Assistant</title>
99
<meta name="keywords" content="">
1010
<meta name="description" content="">
1111
<meta name="author" content="">
@@ -73,7 +73,7 @@
7373
<header class="header">
7474
<nav class="nav">
7575
<div class="logo">
76-
<a href="http://localhost:1313/" accesskey="h" title="Bob the builder loves to build (Alt + H)">Bob the builder loves to build</a>
76+
<a href="http://localhost:1313/" accesskey="h" title="Coat Assistant (Alt + H)">Coat Assistant</a>
7777
<div class="logo-switches">
7878
<button id="theme-toggle" accesskey="t" title="(Alt + T)">
7979
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
@@ -98,15 +98,37 @@
9898
</div>
9999
</div>
100100
<ul id="menu">
101+
<li>
102+
<a href="http://localhost:1313/" title="Home">
103+
<span>Home</span>
104+
</a>
105+
</li>
106+
<li>
107+
<a href="http://localhost:1313/about" title="About">
108+
<span>About</span>
109+
</a>
110+
</li>
111+
<li>
112+
<a href="http://localhost:1313/blog" title="Blog">
113+
<span>Blog</span>
114+
</a>
115+
</li>
116+
<li>
117+
<a href="http://localhost:1313/post" title="Post">
118+
<span>Post</span>
119+
</a>
120+
</li>
101121
</ul>
102122
</nav>
103123
</header>
124+
125+
104126
<main class="main">
105127
<div class="not-found">404</div>
106128
</main>
107129

108130
<footer class="footer">
109-
<span>&copy; 2025 <a href="http://localhost:1313/">Bob the builder loves to build</a></span> ·
131+
<span>&copy; 2025 <a href="http://localhost:1313/">Coat Assistant</a></span> ·
110132

111133
<span>
112134
Powered by

0 commit comments

Comments
 (0)