Adding the wiki route and better styling

This commit is contained in:
ngn
2024-01-06 23:20:58 +03:00
parent 6477240dd4
commit 7f61a0cd58
15 changed files with 299 additions and 161 deletions

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Matter Linux</title>
<title>MatterLinux | Error</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=1200">
<link href="/style.css" rel="stylesheet">

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Matter Linux</title>
<title>MatterLinux</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=1200">
<link href="/style.css" rel="stylesheet">
@ -10,7 +10,7 @@
<body>
{{template "parts/bar" .}}
<div class="readme md">
{{.readme.Content}}
{{.readme.HTML}}
</div>
</body>
</html>

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Matter Linux</title>
<title>MatterLinux | News</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=1200">
<link href="/style.css" rel="stylesheet">
@ -12,7 +12,7 @@
{{range $new := .news}}
<a href="/news/{{$new.ID}}" class="new-small">
<h1>{{$new.Date}}</h1>
<h1>{{$new.Name}}</h1>
<h1>{{$new.Title}}</h1>
</a>
{{end}}
</div>

View File

@ -3,7 +3,8 @@
<div class="links">
<a href="/">Home</a>
<a href="/news">News</a>
<a href="https://wiki.matterlinux.xyz">Wiki</a>
<a href="/wiki">Wiki</a>
<a href="https://git.matterlinux.xyz">Source</a>
<a href="https://pkgs.matterlinux.xyz">Packages</a>
</div>
</div>

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Matter Linux</title>
<title>MatterLinux | {{.title}}</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=1200">
<link href="/style.css" rel="stylesheet">
@ -10,10 +10,10 @@
<body>
{{template "parts/bar" .}}
<div class="post">
<h1>{{.post.Name}}</h1>
<h1>{{.post.Title}}</h1>
<p>{{.post.Date}} | by {{.post.Author}}</p>
<div class="md">
{{.post.Content}}
{{.post.HTML}}
</div>
</div>
</body>