From 9cdd2e54c2a1b724fcba8257956c3981ea0017df Mon Sep 17 00:00:00 2001 From: Austin Ziegler Date: Wed, 1 Oct 2014 14:26:43 -0400 Subject: Use md5 against the file path for uniqueness. --- hugolib/shortcode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hugolib/shortcode.go') diff --git a/hugolib/shortcode.go b/hugolib/shortcode.go index 9f7a335a0..1635ece99 100644 --- a/hugolib/shortcode.go +++ b/hugolib/shortcode.go @@ -93,7 +93,7 @@ func ShortcodesHandle(stringToParse string, p *Page, t Template) string { var data = &ShortcodeWithPage{Params: params, Page: p} if endStart > 0 { s := stringToParse[leadEnd+3 : leadEnd+endStart] - data.Inner = template.HTML(renderBytes([]byte(CleanP(ShortcodesHandle(s, p, t))), p.guessMarkupType(), p.File.Name)) + data.Inner = template.HTML(renderBytes([]byte(CleanP(ShortcodesHandle(s, p, t))), p.guessMarkupType(), p.UniqueId())) remainder := CleanP(stringToParse[leadEnd+endEnd:]) return CleanP(stringToParse[:leadStart]) + -- cgit v1.2.3