mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +00:00
Add custom protocol support in Permalink
This commit is contained in:
@@ -197,7 +197,8 @@ func (o OutputFormats) Get(name string) *OutputFormat {
|
||||
// Permalink returns the absolute permalink to this output format.
|
||||
func (o *OutputFormat) Permalink() string {
|
||||
rel := o.p.createRelativePermalinkForOutputFormat(o.f)
|
||||
return o.p.s.permalink(rel)
|
||||
perm, _ := o.p.s.permalinkForOutputFormat(rel, o.f)
|
||||
return perm
|
||||
}
|
||||
|
||||
// Permalink returns the relative permalink to this output format.
|
||||
|
Reference in New Issue
Block a user