mirror of
https://github.com/danog/gojekyll.git
synced 2024-12-02 14:47:47 +01:00
-d can contain a dot
This commit is contained in:
parent
9a4759b0a5
commit
f773473860
@ -43,10 +43,11 @@ func (s *Site) WriteFiles() (count int, err error) {
|
|||||||
// It attends to options.dry_run.
|
// It attends to options.dry_run.
|
||||||
func (s *Site) WriteDoc(d pages.Document) error {
|
func (s *Site) WriteDoc(d pages.Document) error {
|
||||||
from := d.SourcePath()
|
from := d.SourcePath()
|
||||||
to := filepath.Join(s.DestDir(), d.Permalink())
|
rel := d.Permalink()
|
||||||
if !d.Static() && filepath.Ext(to) == "" {
|
if !d.Static() && filepath.Ext(rel) == "" {
|
||||||
to = filepath.Join(to, "index.html")
|
rel = filepath.Join(rel, "index.html")
|
||||||
}
|
}
|
||||||
|
to := filepath.Join(s.DestDir(), rel)
|
||||||
if s.config.Verbose {
|
if s.config.Verbose {
|
||||||
fmt.Println("create", to, "from", d.SourcePath())
|
fmt.Println("create", to, "from", d.SourcePath())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user