From f12d854fcf5e46fe526a92a316b2c6ec118fcea3 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 20 Jan 2019 12:35:37 +0100 Subject: Replace fcgi with plain http server --- template/article.tmpl | 15 ---------- template/doc.tmpl | 77 ------------------------------------------------- template/home.tmpl | 10 ------- template/index.tmpl | 24 ---------------- template/root.tmpl | 80 --------------------------------------------------- 5 files changed, 206 deletions(-) delete mode 100644 template/article.tmpl delete mode 100644 template/doc.tmpl delete mode 100644 template/home.tmpl delete mode 100644 template/index.tmpl delete mode 100644 template/root.tmpl (limited to 'template') diff --git a/template/article.tmpl b/template/article.tmpl deleted file mode 100644 index e461ce2..0000000 --- a/template/article.tmpl +++ /dev/null @@ -1,15 +0,0 @@ -{{/* This file is combined with the root.tmpl to display a single article. */}} - -{{define "title"}}{{.Doc.Title}}{{end}} - -{{define "content"}} - {{with .Doc}} - {{template "doc" .}} - {{with .Related}} -
Related articles
- - {{end}} - {{end}} -{{end}} diff --git a/template/doc.tmpl b/template/doc.tmpl deleted file mode 100644 index b50790d..0000000 --- a/template/doc.tmpl +++ /dev/null @@ -1,77 +0,0 @@ -{{/* This doc template is given to the present tool to format articles. */}} - -{{define "root"}} - {{with .Subtitle}}

{{.}}

{{end}} - {{if .Doc | sectioned}} - {{range .Sections}} - {{elem $.Template .}} - {{end}} - {{else}} - {{with index .Sections 0}} - {{range .Elem}} - {{elem $.Template .}} - {{end}} - {{end}} - {{end}} -{{end}} - -{{define "TOC"}} - -{{end}} - -{{define "newline"}} -{{/* newline */}} -{{end}} - -{{define "section"}} -

{{.Title}}

- {{range .Elem}}{{elem $.Template .}}{{end}} -{{end}} - -{{define "list"}} - -{{end}} - -{{define "text"}} - {{if .Pre}} -
{{range .Lines}}{{.}}{{end}}
- {{else}} -

- {{range $i, $l := .Lines}}{{if $i}}{{template "newline"}} - {{end}}{{style $l}}{{end}} -

- {{end}} -{{end}} - -{{define "code"}} -
{{.Text}}
-{{end}} - -{{define "image"}} - image -{{end}} - -{{define "caption"}} -
{{style .Text}}
-{{end}} - -{{define "iframe"}} -
- -
-{{end}} - -{{define "link"}} - -{{end}} - -{{define "html"}}{{.HTML}}{{end}} diff --git a/template/home.tmpl b/template/home.tmpl deleted file mode 100644 index 2c622b5..0000000 --- a/template/home.tmpl +++ /dev/null @@ -1,10 +0,0 @@ -{{/* This file is combined with the root.tmpl to display the blog home page. */}} - -{{define "title"}}dim13{{end}} - -{{define "content"}} - {{range .Data}} - {{template "doc" .}} - {{end}} -

See the index for more articles.

-{{end}} diff --git a/template/index.tmpl b/template/index.tmpl deleted file mode 100644 index 1803dd5..0000000 --- a/template/index.tmpl +++ /dev/null @@ -1,24 +0,0 @@ -{{/* This file is combined with the root.tmpl to display the blog index. */}} - -{{define "title"}}Article index{{end}} - -{{define "content"}} -
-

{{template "title"}}

- -
-{{end}} diff --git a/template/root.tmpl b/template/root.tmpl deleted file mode 100644 index 164cf31..0000000 --- a/template/root.tmpl +++ /dev/null @@ -1,80 +0,0 @@ -{{/* This template is combined with other templates to render blog pages. */}} - -{{define "root" -}} - - - - {{template "title" .}} - - - - - - - - - - - - - - - - - -
- {{template "content" .}} -
- - {{with .Doc}} - - {{end}} - - -{{end}} - -{{define "doc"}} -
-
-

{{.Title}}

- {{template "time" .Time}} -
- {{.HTML}} -
- {{with .Authors}}
By {{authors .}}
{{end}} -
-
-{{end}} - -{{define "time" -}} - -{{- end}} -- cgit v1.2.3