1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Added custom about page

This commit is contained in:
Zack Scholl
2016-02-10 16:51:19 -05:00
parent b0b5bd7319
commit 61149c3790
2 changed files with 23 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ package main
import (
"flag"
"fmt"
"io/ioutil"
"log"
"path"
"runtime"
@@ -63,7 +64,8 @@ Options:`)
defer Close()
// Default page
p := WikiData{"about", aboutPageText + "\n" + VersionNum, []string{}, []string{}}
aboutFile, _ := ioutil.ReadFile(path.Join(RuntimeArgs.SourcePath, "templates/aboutpage.md"))
p := WikiData{"about", string(aboutFile), []string{}, []string{}}
p.save(aboutPageText)
// var q WikiData