aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAnirudh Oppiliappan <x@icyphox.sh>2022-12-17 12:45:21 +0530
committerAnirudh Oppiliappan <x@icyphox.sh>2022-12-17 12:45:21 +0530
commitd083d5d72e4bf496b8152d14986818a5b63fe301 (patch)
treeae5dbe4a26ca13a66e02f1c67229548913433c27 /config
parentreadme: some bs (diff)
downloadlegitrx-d083d5d72e4bf496b8152d14986818a5b63fe301.tar.gz
legitrx-d083d5d72e4bf496b8152d14986818a5b63fe301.tar.zst
legitrx-d083d5d72e4bf496b8152d14986818a5b63fe301.zip
routes: serve static content from /static
Diffstat (limited to '')
-rw-r--r--config.yaml5
-rw-r--r--config/config.go7
2 files changed, 7 insertions, 5 deletions
diff --git a/config.yaml b/config.yaml
index 59e903a..5dbe023 100644
--- a/config.yaml
+++ b/config.yaml
@@ -8,8 +8,9 @@ repo:
mainBranch:
- master
- main
-template:
- dir: ./templates
+dirs:
+ templates: ./templates
+ static: ./static
meta:
title: git good
description: i think it's a skill issue
diff --git a/config/config.go b/config/config.go
index 278e17e..4b89dc1 100644
--- a/config/config.go
+++ b/config/config.go
@@ -13,9 +13,10 @@ type Config struct {
Readme []string `yaml:"readme"`
MainBranch []string `yaml:"mainBranch"`
} `yaml:"repo"`
- Template struct {
- Dir string `yaml:"dir"`
- } `yaml:"template"`
+ Dirs struct {
+ Templates string `yaml:"templates"`
+ Static string `yaml:"static"`
+ } `yaml:"dirs"`
Meta struct {
Title string `yaml:"title"`
Description string `yaml:"description"`