1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00

Permalink on Node and Page should be of string

This change fixes #1384.
This commit is contained in:
Kato Kazuyoshi
2015-10-16 20:45:49 -07:00
committed by Bjørn Erik Pedersen
parent 5838420aa1
commit 99acbb2eb2
3 changed files with 9 additions and 9 deletions

View File

@@ -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