aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAnirudh Oppiliappan <x@icyphox.sh>2022-12-12 20:53:58 +0530
committerAnirudh Oppiliappan <x@icyphox.sh>2022-12-12 20:53:58 +0530
commit82b8afe19b77fe02e1a29a5b5e20882d8e5c3fc5 (patch)
tree2173a518664b81e0134853c4c6dee09973377a87 /config
parenttemplates: fix 404 and 500 (diff)
downloadlegitrx-82b8afe19b77fe02e1a29a5b5e20882d8e5c3fc5.tar.gz
legitrx-82b8afe19b77fe02e1a29a5b5e20882d8e5c3fc5.tar.zst
legitrx-82b8afe19b77fe02e1a29a5b5e20882d8e5c3fc5.zip
routes: render readme
Diffstat (limited to '')
-rw-r--r--config.yaml5
-rw-r--r--config/config.go3
2 files changed, 7 insertions, 1 deletions
diff --git a/config.yaml b/config.yaml
index fad606a..25fc992 100644
--- a/config.yaml
+++ b/config.yaml
@@ -1,5 +1,10 @@
git:
scanPath: /home/icy/code/tmp
+ readme:
+ - readme
+ - README
+ - readme.md
+ - README.md
template:
dir: ./templates
meta:
diff --git a/config/config.go b/config/config.go
index 71bc8dc..65d1a71 100644
--- a/config/config.go
+++ b/config/config.go
@@ -9,7 +9,8 @@ import (
type Config struct {
Git struct {
- ScanPath string `yaml:"scanPath"`
+ ScanPath string `yaml:"scanPath"`
+ Readme []string `yaml:"readme"`
} `yaml:"git"`
Template struct {
Dir string `yaml:"dir"`