first commit
This commit is contained in:
15
templates/error.html
Normal file
15
templates/error.html
Normal file
@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Matter Linux</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=1200">
|
||||
<link href="/style.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div class="error">
|
||||
<h1>{{.msg}}</h1>
|
||||
<a href="/">Go Back to Home</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
16
templates/index.html
Normal file
16
templates/index.html
Normal file
@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Matter Linux</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=1200">
|
||||
<link href="/style.css" rel="stylesheet">
|
||||
<link href="/md.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
{{template "parts/bar" .}}
|
||||
<div class="readme md">
|
||||
{{.readme.Content}}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
20
templates/news.html
Normal file
20
templates/news.html
Normal file
@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Matter Linux</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=1200">
|
||||
<link href="/style.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
{{template "parts/bar" .}}
|
||||
<div class="news">
|
||||
{{range $new := .news}}
|
||||
<a href="/news/{{$new.ID}}" class="new-small">
|
||||
<h1>{{$new.Date}}</h1>
|
||||
<h1>{{$new.Name}}</h1>
|
||||
</a>
|
||||
{{end}}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
9
templates/parts/bar.html
Normal file
9
templates/parts/bar.html
Normal file
@ -0,0 +1,9 @@
|
||||
<div class="bar">
|
||||
<h1 class="logo">MatterLinux</h1>
|
||||
<div class="links">
|
||||
<a href="/">Home</a>
|
||||
<a href="/news">News</a>
|
||||
<a href="https://wiki.matterlinux.xyz">Wiki</a>
|
||||
<a href="https://git.matterlinux.xyz">Source</a>
|
||||
</div>
|
||||
</div>
|
20
templates/post.html
Normal file
20
templates/post.html
Normal file
@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Matter Linux</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=1200">
|
||||
<link href="/style.css" rel="stylesheet">
|
||||
<link href="/md.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
{{template "parts/bar" .}}
|
||||
<div class="post">
|
||||
<h1>{{.post.Name}}</h1>
|
||||
<p>{{.post.Date}} | by {{.post.Author}}</p>
|
||||
<div class="md">
|
||||
{{.post.Content}}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user