Server static files
This commit is contained in:
parent
2ba0a0024e
commit
73a1c8bc02
7 changed files with 52 additions and 14 deletions
|
|
@ -4,14 +4,20 @@ import (
|
|||
"log"
|
||||
"os"
|
||||
|
||||
"github.com/pelletier/go-toml"
|
||||
"github.com/pelletier/go-toml/v2"
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
Extension string
|
||||
NotesDir string
|
||||
TemplatesDir string
|
||||
BaseTemplate string
|
||||
Extension string
|
||||
NotesDir string
|
||||
Templates struct {
|
||||
Dir string
|
||||
Base string
|
||||
}
|
||||
Static struct {
|
||||
Dir string
|
||||
Root string
|
||||
}
|
||||
}
|
||||
|
||||
var Conf Config
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue