Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorKato Kazuyoshi <kato.kazuyoshi@gmail.com>2015-10-17 06:45:49 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2015-11-23 19:41:29 +0300
commit99acbb2eb273500596a0da5b51b490fefc0829c4 (patch)
treea646365c82c408f5d6712028f9f34b5479b710c0 /target
parent5838420aa1f5dfb6aa73479caa60467cc27dee82 (diff)
Permalink on Node and Page should be of string
This change fixes #1384.
Diffstat (limited to 'target')
-rw-r--r--target/htmlredirect.go6
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