shithub: hugo

Download patch

ref: 2aaf92b515f14bb8df4baa150fd3683cf073e154
parent: be7ba0e98f5ea5debcd34288224f57c360c63dd0
author: spf13 <[email protected]>
date: Fri Oct 4 12:07:24 EDT 2013

Summary can now contain short codes when using <!--more--> to define end of summary.

--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -247,6 +247,7 @@
 func (s *Site) ProcessShortcodes() {
 	for _, page := range s.Pages {
 		page.Content = template.HTML(ShortcodesHandle(string(page.Content), page, s.Tmpl))
+		page.Summary = template.HTML(ShortcodesHandle(string(page.Summary), page, s.Tmpl))
 	}
 }