diff --git a/templates/components/captcha.html b/templates/components/captcha.html index 06edfbe..f820dc6 100644 --- a/templates/components/captcha.html +++ b/templates/components/captcha.html @@ -1,7 +1,7 @@ {{ define "captcha" }} -
- Captcha -
- - +
+ Captcha +
+ + {{ end }} diff --git a/templates/components/footer.html b/templates/components/footer.html index a7425a2..b8613a3 100644 --- a/templates/components/footer.html +++ b/templates/components/footer.html @@ -1,9 +1,9 @@ {{ define "footer" }} - + {{ end }} diff --git a/templates/components/header.html b/templates/components/header.html index 439310a..c8d78db 100644 --- a/templates/components/header.html +++ b/templates/components/header.html @@ -1,17 +1,17 @@ {{ define "header" }} {{ if . }} - -

- {{ if ne . "" }} - {{ . }} - {{ else }} - Welcome to Micrach - {{ end }} -

-
+ +

+ {{ if ne . "" }} + {{ . }} + {{ else }} + Welcome to Micrach + {{ end }} +

+
{{ else }} -

Welcome to Micrach

+

Welcome to Micrach

{{ end }} {{ end }} diff --git a/templates/components/pagiantion.html b/templates/components/pagiantion.html index 66a79bd..813f5f9 100644 --- a/templates/components/pagiantion.html +++ b/templates/components/pagiantion.html @@ -1,12 +1,12 @@ {{ define "pagiantion" }} - + {{ end }} diff --git a/templates/components/post-form.html b/templates/components/post-form.html index 668a811..0bde441 100644 --- a/templates/components/post-form.html +++ b/templates/components/post-form.html @@ -1,46 +1,46 @@ {{ define "post-form" }} -
- -
- {{ if eq .FirstPostID 0 }} -
- {{ else }} - - {{ end }} +
+
{{ if eq .FirstPostID 0 }} - + + {{ else }} + {{ end }} - - - - {{ if .IsCaptchaActive }} - {{ template "captcha" .CaptchaID }} - {{ end }} - -
- {{ if ne .FirstPostID 0 }} -
- - -
+ {{ if eq .FirstPostID 0 }} + {{ end }} -
- -
-
- -
+ + + + {{ if .IsCaptchaActive }} + {{ template "captcha" .CaptchaID }} + {{ end }} -
+
+ {{ if ne .FirstPostID 0 }} +
+ + +
+ {{ end }} + +
+ +
+
+ +
+ +
{{ end }} diff --git a/templates/components/post.html b/templates/components/post.html index 267f522..41b8781 100644 --- a/templates/components/post.html +++ b/templates/components/post.html @@ -1,20 +1,20 @@ {{ define "post" }} -
- {{ $filesLength := len .Files }} - {{ if gt $filesLength 0 }} -
- {{ range $File := .Files }} -
- - Uploaded picture - +
+ {{ $filesLength := len .Files }} + {{ if gt $filesLength 0 }} +
+ {{ range $File := .Files }} +
+ + Uploaded picture + +
+ {{ end }}
{{ end }} -
- {{ end }} -
-

{{.Text}}

+
+

{{.Text}}

+
-
{{ end }} \ No newline at end of file diff --git a/templates/components/thread-card.html b/templates/components/thread-card.html index e438ae4..1a86f1c 100644 --- a/templates/components/thread-card.html +++ b/templates/components/thread-card.html @@ -1,26 +1,26 @@ {{ define "thread-card" }} -
-
- {{ $length := len .Files }} - {{ if gt $length 0 }} - {{ $FirstFile := index .Files 0 }} - Uploaded picture - {{ end }} - -
- {{ if ne .Title "" }} -
{{.Title}}
+
+
+ {{ $length := len .Files }} + {{ if gt $length 0 }} + {{ $FirstFile := index .Files 0 }} + Uploaded picture {{ end }} - {{ $textLength := len .Text }} - {{ if gt $textLength 300 }} -

{{ slice .Text 0 300 }} ...

- {{ else }} -

{{.Text}}

- {{ end }} +
+ {{ if ne .Title "" }} +
{{.Title}}
+ {{ end }} - Open + {{ $textLength := len .Text }} + {{ if gt $textLength 300 }} +

{{ slice .Text 0 300 }} ...

+ {{ else }} +

{{.Text}}

+ {{ end }} + + Open +
-
{{ end }} diff --git a/templates/head/meta-tags-dynamic.html b/templates/head/meta-tags-dynamic.html index 732525c..91707d4 100644 --- a/templates/head/meta-tags-dynamic.html +++ b/templates/head/meta-tags-dynamic.html @@ -1,31 +1,31 @@ {{ define "meta-tags-dynamic" }} -{{ $SeoImageUrl := "" }} -{{ if .Files }} - {{ $FirstFile := index .Files 0 }} - {{ $SeoImageUrl = printf "https://micrach.igonin.dev/uploads/%d/t/%d.%s" .ID $FirstFile.ID $FirstFile.Ext }} -{{ else }} - {{ $SeoImageUrl = "https://memepedia.ru/wp-content/uploads/2018/03/ebanyy-rot-etogo-kazino.png" }} -{{ end }} + {{ $SeoImageUrl := "" }} + {{ if .Files }} + {{ $FirstFile := index .Files 0 }} + {{ $SeoImageUrl = printf "https://micrach.igonin.dev/uploads/%d/t/%d.%s" .ID $FirstFile.ID $FirstFile.Ext }} + {{ else }} + {{ $SeoImageUrl = "https://memepedia.ru/wp-content/uploads/2018/03/ebanyy-rot-etogo-kazino.png" }} + {{ end }} -{{ .Title }} - - - - - + {{ .Title }} + + + + + - - - - - - + + + + + + - - - - - - + + + + + + {{ end }} \ No newline at end of file diff --git a/templates/head/meta-tags-static.html b/templates/head/meta-tags-static.html index 25d2fed..28be81e 100644 --- a/templates/head/meta-tags-static.html +++ b/templates/head/meta-tags-static.html @@ -1,22 +1,22 @@ {{ define "meta-tags-static" }} -Micrach - - - - - + Micrach + + + + + - - - - - - + + + + + + - - - - - - + + + + + + {{ end }} \ No newline at end of file diff --git a/templates/head/static.html b/templates/head/static.html index 0f48603..a7cf3d6 100644 --- a/templates/head/static.html +++ b/templates/head/static.html @@ -1,16 +1,16 @@ {{ define "static" }} - - - - - + + + + + {{ end }}