Реки и копирование темплейтов в озу

This commit is contained in:
lost+skunk 2024-07-06 20:06:04 +03:00
parent 7f1ab1b73d
commit ff4f1a2422
7 changed files with 73 additions and 38 deletions

View file

@ -38,6 +38,12 @@
{{.Templates.Deviation.Post.Description}}
</figcaption>
{{end}}
{{if ne .Templates.Deviation.Related ""}}
<details>
<summary>Related content</summary>
{{.Templates.Deviation.Related}}
</details>
{{end}}
{{if (ne .Templates.Deviation.Comments "")}}
{{.Templates.Deviation.Comments}}
{{end}}

View file

@ -18,7 +18,7 @@
</header>
{{if ne .Templates.Search.List ""}}
{{if ne .Templates.Search.Content.Total 0}}
<h1>Total resuls: {{.Templates.Search.Content.Total}}</h1>
<h1>Results by request '{{.QueryRaw}}': {{.Templates.Search.Content.Total}}</h1>
{{end}}
{{.Templates.Search.List}}
{{else}}