mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
Add custom protocol support in Permalink
This commit is contained in:
@@ -862,7 +862,12 @@ func (p *Page) initURLs() error {
|
||||
p.outputFormats = p.s.outputFormats[p.Kind]
|
||||
}
|
||||
rel := p.createRelativePermalink()
|
||||
p.permalink = p.s.permalink(rel)
|
||||
|
||||
var err error
|
||||
p.permalink, err = p.s.permalinkForOutputFormat(rel, p.outputFormats[0])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
rel = p.s.PathSpec.PrependBasePath(rel)
|
||||
p.relPermalink = rel
|
||||
p.layoutDescriptor = p.createLayoutDescriptor()
|
||||
|
Reference in New Issue
Block a user