Use to most specific interface in WriteDestPage

This commit is contained in:
Bjørn Erik Pedersen 2016-04-02 00:04:08 +02:00
parent c2277fcbc1
commit b678e90db7

View file

@ -2116,9 +2116,9 @@ func (s *Site) WriteDestFile(path string, reader io.Reader) (err error) {
return s.fileTarget().Publish(path, reader)
}
func (s *Site) WriteDestPage(path string, target target.Output, reader io.Reader) (err error) {
func (s *Site) WriteDestPage(path string, publisher target.Publisher, reader io.Reader) (err error) {
jww.DEBUG.Println("creating page:", path)
return target.Publish(path, reader)
return publisher.Publish(path, reader)
}
func (s *Site) WriteDestAlias(path string, permalink string) (err error) {