mirror of
https://github.com/gohugoio/hugo.git
synced 2024-07-05 00:32:03 +00:00
Use to most specific interface in WriteDestPage
This commit is contained in:
parent
c2277fcbc1
commit
b678e90db7
|
@ -2116,9 +2116,9 @@ func (s *Site) WriteDestFile(path string, reader io.Reader) (err error) {
|
||||||
return s.fileTarget().Publish(path, reader)
|
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)
|
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) {
|
func (s *Site) WriteDestAlias(path string, permalink string) (err error) {
|
||||||
|
|
Loading…
Reference in a new issue