diff --git a/static/post-form.css b/static/post-form.css new file mode 100644 index 0000000..1222f54 --- /dev/null +++ b/static/post-form.css @@ -0,0 +1,3 @@ +#postForm > * { + margin-bottom: 1rem; +} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index e62fdf2..fffd9ad 100644 --- a/templates/index.html +++ b/templates/index.html @@ -13,11 +13,7 @@

Welcome to Micrach

-
- - - -
+ {{ template "post-form" }}
{{range $Post := .}} diff --git a/templates/templates.html b/templates/templates.html index 5fdfc33..982b53b 100644 --- a/templates/templates.html +++ b/templates/templates.html @@ -11,6 +11,10 @@ crossorigin="anonymous"> + {{ end }} {{ define "meta" }} @@ -57,4 +61,14 @@ +{{ end }} + +{{ define "post-form" }} +
+
+ + + +
+
{{ end }} \ No newline at end of file diff --git a/templates/thread.html b/templates/thread.html index bee29de..f143b74 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -10,11 +10,7 @@

Welcome to Micrach

-
- - - -
+ {{ template "post-form" $FirstPost.ID }}
{{range $Post := .}}