From 369d2c3e395903f6aff1d1869a81290d8bc994fa Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Sat, 14 Oct 2017 16:04:26 +0200 Subject: Initial commit --- data/templates/main.html | 40 ++++++++++++++++++++++++++++++++++++++++ data/templates/notfound.html | 3 +++ data/templates/project.html | 22 ++++++++++++++++++++++ data/templates/tag.html | 5 +++++ 4 files changed, 70 insertions(+) create mode 100644 data/templates/main.html create mode 100644 data/templates/notfound.html create mode 100644 data/templates/project.html create mode 100644 data/templates/tag.html (limited to 'data/templates') 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"}} + +{{end}} + + + + + + + {{ if .Title }}{{ .Title }} — {{ end }}code.laria.me + {{ if .Description }}{{ end }} + {{ if .Tags }}{{ end }} + + + + +
+

code.laria.me

+
+ {{block "content" .}} +

List of projects

+ {{template "Projectlist" .Projects}} + +

Tags

+ + {{end}} + + + diff --git a/data/templates/notfound.html b/data/templates/notfound.html new file mode 100644 index 0000000..6099512 --- /dev/null +++ b/data/templates/notfound.html @@ -0,0 +1,3 @@ +{{define "content"}} +404 Not found +{{end}} diff --git a/data/templates/project.html b/data/templates/project.html new file mode 100644 index 0000000..cb5ad5d --- /dev/null +++ b/data/templates/project.html @@ -0,0 +1,22 @@ +{{define "content"}} +

{{.Title}}

+

{{.Description}}

+

Links

+ +

Tags

+ + {{if .GoGet}} +

+ This project is go get-able: go get code.laria.me/{{.Name}} +

+ {{end}} + {{if .License}}

License: {{.License}}

{{end}} + {{if .FormattedReadme}} +

Readme

+
{{.FormattedReadme}}
+ {{end}} +{{end}} diff --git a/data/templates/tag.html b/data/templates/tag.html new file mode 100644 index 0000000..b2736b9 --- /dev/null +++ b/data/templates/tag.html @@ -0,0 +1,5 @@ +{{define "content"}} +

Tag: {{.Tag}}

+ + {{template "Projectlist" .Projects}} +{{end}} -- cgit v1.2.3-54-g00ecf