Add custom protocol support in Permalink

This commit is contained in:
Bjørn Erik Pedersen 2017-03-23 20:05:10 +01:00
parent 8bcc08e3b0
commit d851d6b98f
9 changed files with 171 additions and 37 deletions

View file

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