Merge pull request #437 from writeas/post-signature-pinned-posts

Post signature improvements
pull/390/merge
Matt Baer 4 years ago committed by GitHub
commit 811f996e84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      postrender.go

@ -60,6 +60,14 @@ func (p *PublicPost) formatContent(cfg *config.Config, isOwner bool) {
}
func (p *Post) augmentContent(c *Collection) {
if p.PinnedPosition.Valid {
// Don't augment posts that are pinned
return
}
if strings.Index(p.Content, "<!--nosig-->") > -1 {
// Don't augment posts with the special "nosig" shortcode
return
}
// Add post signatures
if c.Signature != "" {
p.Content += "\n\n" + c.Signature

Loading…
Cancel
Save