summaryrefslogtreecommitdiffstats
path: root/hugolib/shortcode.go
diff options
context:
space:
mode:
authorAustin Ziegler <austin@zieglers.ca>2014-10-01 14:26:43 -0400
committerspf13 <steve.francia@gmail.com>2014-10-07 16:45:23 -0400
commit9cdd2e54c2a1b724fcba8257956c3981ea0017df (patch)
treec36bf463c493f427dbe2396041c474b36b216f8b /hugolib/shortcode.go
parent603b24a16344b1da485043e8a60b0505ad18cee6 (diff)
Use md5 against the file path for uniqueness.
Diffstat (limited to 'hugolib/shortcode.go')
-rw-r--r--hugolib/shortcode.go2
1 files changed, 1 insertions, 1 deletions
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]) +