aboutsummaryrefslogtreecommitdiff
path: root/data/templates/main.html
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/main.html')
-rw-r--r--data/templates/main.html40
1 files changed, 40 insertions, 0 deletions
diff --git a/data/templates/main.html b/data/templates/main.html
new file mode 100644
index 0000000..73da434
--- /dev/null
+++ b/data/templates/main.html
@@ -0,0 +1,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>