aboutsummaryrefslogtreecommitdiffstats
path: root/site.go
diff options
context:
space:
mode:
authorEddy Pedroni <eddy@0xf7.com>2020-02-01 17:24:34 +0100
committerEddy Pedroni <eddy@0xf7.com>2020-02-01 17:24:34 +0100
commita34c18ba4135b14dc6d3502f194b3a1bbc89aae1 (patch)
tree873f74591ed383aaf587b4cb3a5e88468ed3f927 /site.go
parented306e653641769ffb8d084ea7717f18a5a9239c (diff)
Generation is working correctly, without temporary output directory
Diffstat (limited to 'site.go')
-rw-r--r--site.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/site.go b/site.go
index 8a9f08d..4050bf0 100644
--- a/site.go
+++ b/site.go
@@ -6,13 +6,13 @@ import (
)
type siteData struct {
- name string
- rawName string
- baseUrl string
+ name string
+ rawName string
+ baseUrl string
outputPath string
- sourcePath string
- pages map[string]page
- nav []navItem
+ sourcePath string
+ pages map[string]page
+ nav []navItem
}
func getSites(cfg config) (sites []siteData) {
@@ -24,11 +24,11 @@ func getSites(cfg config) (sites []siteData) {
for _, f := range files {
if f.IsDir() && f.Name() != ".git" {
newSite := siteData{
- name: nameify(f.Name()),
- rawName: f.Name(),
- baseUrl: filepath.Join(cfg.BaseUrl, f.Name()),
+ name: nameify(f.Name()),
+ rawName: f.Name(),
+ baseUrl: filepath.Join(cfg.BaseUrl, f.Name()),
outputPath: filepath.Join(cfg.TargetDir, f.Name()),
- sourcePath: filepath.Join(cfg.DocsRoot, f.Name())}
+ sourcePath: filepath.Join(cfg.DocsRoot, f.Name())}
sites = append(sites, newSite)
}
}