mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Improved robots, added sitemap. Locking is simpler now and allows direct click to edit.
This commit is contained in:
3
utils.go
3
utils.go
@@ -16,7 +16,6 @@ import (
|
||||
|
||||
var animals []string
|
||||
var adjectives []string
|
||||
var robotsTxt string
|
||||
var aboutPageText string
|
||||
|
||||
type versionsInfo struct {
|
||||
@@ -30,8 +29,6 @@ func init() {
|
||||
animals = strings.Split(string(animalsText), ",")
|
||||
adjectivesText, _ := ioutil.ReadFile(path.Join(RuntimeArgs.SourcePath, "static/text/adjectives"))
|
||||
adjectives = strings.Split(string(adjectivesText), "\n")
|
||||
robotsTxtFile, _ := ioutil.ReadFile(path.Join(RuntimeArgs.SourcePath, "static/text/robots.txt"))
|
||||
robotsTxt = string(robotsTxtFile)
|
||||
}
|
||||
|
||||
func randomAnimal() string {
|
||||
|
||||
Reference in New Issue
Block a user