~srivathsan/blaze

1125d5fdeae771a9019d1a9cd96fde5c8b531e9a — Srivathsan Murali 3 years ago d57ab7d
paginate: convert md to html
1 files changed, 4 insertions(+), 0 deletions(-)

M builder/templates.go
M builder/templates.go => builder/templates.go +4 -0
@@ 37,6 37,10 @@ func getTemplateFuncs(config *config.BlazeConfig) template.FuncMap {
				return nil
			}

			for _, p := range pages {
				p.Content = ToHTML(p.Content)
			}

			// Sort descending order of the date
			sort.Slice(pages, func(i, j int) bool {
				return pages[j].Date.Before(pages[i].Date)