From 98c7ee4b61985b0d7704ceeb4fbce26f570cc1e1 Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Wed, 13 Sep 2023 18:09:20 +0300 Subject: [PATCH] feat: sitemap and updated robots Signed-off-by: HeshamTB --- assets/sitemap.txt | 3 +++ main.go | 1 + static/robots.txt | 4 ++++ 3 files changed, 8 insertions(+) create mode 100644 assets/sitemap.txt diff --git a/assets/sitemap.txt b/assets/sitemap.txt new file mode 100644 index 0000000..e3bcbed --- /dev/null +++ b/assets/sitemap.txt @@ -0,0 +1,3 @@ +https://viddl.cc +https://viddl.cc/robots.txt + diff --git a/main.go b/main.go index d88350a..c6d08a3 100644 --- a/main.go +++ b/main.go @@ -126,6 +126,7 @@ func init() { log.Println("[ init ] Starting...") templates = template.Must(template.ParseFS(TemplatesFS , "templates/*.html")) log.Println("[ init ] Templates Loaded") + log.Println(AssetsFS.ReadDir("assets")) } diff --git a/static/robots.txt b/static/robots.txt index 2370031..23150bd 100644 --- a/static/robots.txt +++ b/static/robots.txt @@ -1 +1,5 @@ # Go carzy + +User-agent: * +Sitemap: https://viddl.cc/sitemap.txt +