diff options
author | Kato Kazuyoshi <kato.kazuyoshi@gmail.com> | 2015-10-17 06:45:49 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2015-11-23 19:41:29 +0300 |
commit | 99acbb2eb273500596a0da5b51b490fefc0829c4 (patch) | |
tree | a646365c82c408f5d6712028f9f34b5479b710c0 /target | |
parent | 5838420aa1f5dfb6aa73479caa60467cc27dee82 (diff) |
Permalink on Node and Page should be of string
This change fixes #1384.
Diffstat (limited to 'target')
-rw-r--r-- | target/htmlredirect.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/htmlredirect.go b/target/htmlredirect.go index 41fd42a10..75f3b088e 100644 --- a/target/htmlredirect.go +++ b/target/htmlredirect.go @@ -26,7 +26,7 @@ func init() { type AliasPublisher interface { Translator - Publish(string, template.HTML) error + Publish(string, string) error } type HTMLRedirectAlias struct { @@ -107,10 +107,10 @@ func (h *HTMLRedirectAlias) Translate(alias string) (aliasPath string, err error } type AliasNode struct { - Permalink template.HTML + Permalink string } -func (h *HTMLRedirectAlias) Publish(path string, permalink template.HTML) (err error) { +func (h *HTMLRedirectAlias) Publish(path string, permalink string) (err error) { if path, err = h.Translate(path); err != nil { jww.ERROR.Printf("%s, skipping.", err) return nil |