aboutsummaryrefslogtreecommitdiff
path: root/data/templates/main.html
blob: 73da434e7ff3129a11f72cf52526b513f9e6c977 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{{define "Projectlist"}}
	<ul>{{range .}}
		<li class="projectlist">
			<a href="/{{.Name}}">{{.Title}}</a>
			{{if .Shortdesc}}
				<span class="shortdesc"> — {{.Shortdesc}}</span>
			{{end}}
		</li>
	{{end}}</ul>
{{end}}
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">	
	<title>{{ if .Title }}{{ .Title }} — {{ end }}code.laria.me</title>
	{{ if .Description }}<meta name="description" content="{{ .Description }}">{{ end }}
	{{ if .Tags }}<meta name="keywords" content="{{join .Tags " " }}">{{ end }}
	<meta name="referrer" content="no-referrer">
	<link rel="stylesheet" type="text/css" href="/static/style.css">
</head>
<body>
	<header>
		<h1><a href="/" class="rootlink">code.laria.me</a></h1>
	</header>
	{{block "content" .}}
		<h2>List of projects</h2>
		{{template "Projectlist" .Projects}}
		
		<h2>Tags</h2>
		<ul class="tagcloud">{{range .Tagcloud}}
			<li class="tagcloud-{{.Size}}"><a href="/tags/{{.Tag}}">{{.Tag}}</a></li>
		{{end}}</ul>
	{{end}}
	<footer>
		<a href="//hi-im.laria.me/impressum/">Impressum</a>	
	</footer>
</body>
</html>