diff --git a/templates/index.html b/templates/index.html index b715673..95db773 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,26 +1,10 @@ - + {{ template "static" }} + Micrach - - - - - - + diff --git a/templates/templates.html b/templates/templates.html new file mode 100644 index 0000000..c2ba6f1 --- /dev/null +++ b/templates/templates.html @@ -0,0 +1,41 @@ +{{ define "static" }} + + + + +{{ end }} + +{{ define "meta" }} + {{ .Title }} + + + + + + + + + + + + + + + + + + + +{{ end }} \ No newline at end of file diff --git a/templates/thread.html b/templates/thread.html index 8dd00a1..fab475d 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -2,44 +2,8 @@ - - {{$FirstPost.Title}} - - - - - - - - - - - - - - - - - - - - - - - - + {{ template "static" }} + {{ template "meta" $FirstPost }}