mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-19 12:54:57 -04: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)
|
||||
}
|
||||
|
||||
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…
x
Reference in New Issue
Block a user