diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2017-10-14 16:04:26 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2017-10-14 20:58:18 +0200 |
commit | 369d2c3e395903f6aff1d1869a81290d8bc994fa (patch) | |
tree | 4c3629906ebbfc8833af10c8f963f23619ecf00c /data/templates/main.html | |
download | code.laria.me-369d2c3e395903f6aff1d1869a81290d8bc994fa.tar.gz code.laria.me-369d2c3e395903f6aff1d1869a81290d8bc994fa.tar.bz2 code.laria.me-369d2c3e395903f6aff1d1869a81290d8bc994fa.zip |
Initial commit
Diffstat (limited to 'data/templates/main.html')
-rw-r--r-- | data/templates/main.html | 40 |
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> |