From 81a1d683343db96692a28faf11392d9182f3c42e Mon Sep 17 00:00:00 2001 From: Erik Winter Date: Thu, 31 Dec 2020 11:11:37 +0100 Subject: [PATCH] longer excerpts --- cmd/ssg/site/post.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ssg/site/post.go b/cmd/ssg/site/post.go index 0006c41..9655d26 100644 --- a/cmd/ssg/site/post.go +++ b/cmd/ssg/site/post.go @@ -64,7 +64,7 @@ func (p *Post) FullLink() string { func (p *Post) HTMLSummary() *HTMLSummary { summary := "" if len(p.doc.Content) > 0 { - summary = fmt.Sprintf("

%s...

", TruncateOnSpace(p.doc.Content[0].Text(), 150)) + summary = fmt.Sprintf("

%s...

", TruncateOnSpace(p.doc.Content[0].Text(), 300)) } return &HTMLSummary{