mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-28 06:30:33 +03:00
Add custom protocol support in Permalink
This commit is contained in:
parent
8bcc08e3b0
commit
d851d6b98f
9 changed files with 171 additions and 37 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue