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:
committed by
Bjørn Erik Pedersen
parent
5838420aa1
commit
99acbb2eb2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user