diff --git a/templates/index.html b/templates/index.html index 01a2997..a054eaf 100644 --- a/templates/index.html +++ b/templates/index.html @@ -6,7 +6,7 @@ rel="stylesheet" > - {{ template "static-meta" }} + {{ template "meta-tags-static" }} diff --git a/templates/meta-tags-dynamic.html b/templates/meta-tags-dynamic.html new file mode 100644 index 0000000..672e6dc --- /dev/null +++ b/templates/meta-tags-dynamic.html @@ -0,0 +1,22 @@ +{{ define "meta-tags-dynamic" }} +{{ .Title }} + + + + + + + + + + + + + + + + + + + +{{ end }} \ No newline at end of file diff --git a/templates/meta-tags-static.html b/templates/meta-tags-static.html new file mode 100644 index 0000000..25d2fed --- /dev/null +++ b/templates/meta-tags-static.html @@ -0,0 +1,22 @@ +{{ define "meta-tags-static" }} +Micrach + + + + + + + + + + + + + + + + + + + +{{ end }} \ No newline at end of file diff --git a/templates/post-form.html b/templates/post-form.html new file mode 100644 index 0000000..6990d21 --- /dev/null +++ b/templates/post-form.html @@ -0,0 +1,48 @@ +{{ define "post-form" }} +
+ +
+ {{ if eq .FirstPostID 0 }} +
+ {{ else }} + + {{ end }} + + {{ if eq .FirstPostID 0 }} + + {{ end }} + + + + +
+ Captcha +
+ + + +
+ {{ if ne .FirstPostID 0 }} +
+ + +
+ {{ end }} + +
+ +
+
+
+
+ +
+{{ end }} diff --git a/templates/static.html b/templates/static.html new file mode 100644 index 0000000..43f8de6 --- /dev/null +++ b/templates/static.html @@ -0,0 +1,18 @@ +{{ define "static" }} + + + + +{{ end }} diff --git a/templates/templates.html b/templates/templates.html deleted file mode 100644 index 4d1c23f..0000000 --- a/templates/templates.html +++ /dev/null @@ -1,113 +0,0 @@ -{{ define "static" }} - - - - -{{ end }} - -{{ define "meta" }} - {{ .Title }} - - - - - - - - - - - - - - - - - - - -{{ end }} - -{{ define "static-meta" }} - Micrach - - - - - - - - - - - - - - - - - - - -{{ end }} - -{{ define "post-form" }} -
- -
- {{ if eq .FirstPostID 0 }} -
- {{ else }} - - {{ end }} - - {{ if eq .FirstPostID 0 }} - - {{ end }} - - - - -
- Captcha -
- - - -
- {{ if ne .FirstPostID 0 }} -
- - -
- {{ end }} - -
- -
-
-
-
- -
-{{ end }} \ No newline at end of file diff --git a/templates/thread.html b/templates/thread.html index d8b645f..ee59650 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -3,7 +3,7 @@ {{ template "static" }} - {{ template "meta" $FirstPost }} + {{ template "meta-tags-dynamic" $FirstPost }}