longer excerpts
This commit is contained in:
parent
60853fcbe2
commit
81a1d68334
|
@ -64,7 +64,7 @@ func (p *Post) FullLink() string {
|
||||||
func (p *Post) HTMLSummary() *HTMLSummary {
|
func (p *Post) HTMLSummary() *HTMLSummary {
|
||||||
summary := ""
|
summary := ""
|
||||||
if len(p.doc.Content) > 0 {
|
if len(p.doc.Content) > 0 {
|
||||||
summary = fmt.Sprintf("<p>%s...</p>", TruncateOnSpace(p.doc.Content[0].Text(), 150))
|
summary = fmt.Sprintf("<p>%s...</p>", TruncateOnSpace(p.doc.Content[0].Text(), 300))
|
||||||
}
|
}
|
||||||
|
|
||||||
return &HTMLSummary{
|
return &HTMLSummary{
|
||||||
|
|
Loading…
Reference in New Issue