diff --git a/templates/index.html b/templates/index.html index c343433..3d46276 100644 --- a/templates/index.html +++ b/templates/index.html @@ -35,7 +35,14 @@ {{ if ne $Post.Title "" }}
{{$Post.Title}}
{{ end }} + + {{ $textLength := len $Post.Text }} + {{ if gt $textLength 300 }} +

{{ slice $Post.Text 0 300 }} ...

+ {{ else }}

{{$Post.Text}}

+ {{ end }} + Open