mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-27 21:02:11 +00:00
Use to most specific interface in WriteDestPage
This commit is contained in:
parent
c2277fcbc1
commit
b678e90db7
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue