|
|
@ -39,6 +39,7 @@ type Breadcrumb struct { |
|
|
|
Name string |
|
|
|
} |
|
|
|
|
|
|
|
// Context passed to template.
|
|
|
|
type Context struct { |
|
|
|
Content template.HTML |
|
|
|
Breadcrumbs []Breadcrumb |
|
|
@ -90,7 +91,7 @@ func main() { |
|
|
|
//
|
|
|
|
// * For index.md files, create a index.html file.
|
|
|
|
// * For images (jpg, png), copy the image and produce a thumbnail.
|
|
|
|
// * Any other files are simply coppied.
|
|
|
|
// * Any other files are simply copied.
|
|
|
|
walk := func(srcPath string, info os.FileInfo, err error) error { |
|
|
|
srcPath, err = filepath.Abs(srcPath) |
|
|
|
if err != nil { |
|
|
|