diff --git a/README.md b/README.md index eafb86a..30f02c3 100644 --- a/README.md +++ b/README.md @@ -4,30 +4,6 @@ My capsule in Gemini space. Built with zord-tree support - -## TODO - -* refactor layout -* security -* citata from some file -* add pagehint counter in abcex -* add gallery categories. index.md with secret to dynamic generators on build -__DONE__ -* remove capsule title from simple page -* main.go:173 add content type by extension -* add image or other file not `gmi` download -* feed -* add category view -* add tag view -* add file view -* about -* migrate to gRPC -* routing, not found -* template engine -* all other languages under sgs -* index file redirects to category -* index file displayed as intro to category - ## Run dev go run . -hostname=localhost -certificatePath=~/ -fileSrvHost=localhost -fileSrvPort=8301 -defaultLang=sgs -supportedLang=lt -key 123 diff --git a/formatter.go b/formatter.go index 02cef31..dbb6676 100644 --- a/formatter.go +++ b/formatter.go @@ -83,7 +83,7 @@ func (tree *Tree) GetIndexFile() (*TreeFile, error) { func GetLastFiles(files []*TreeFile) []*TreeFile { sortingFiles := make(map[string]*TreeFile) for _, f := range files { - sortingFiles[f.Id] = f + sortingFiles[f.Created] = f } keys := make([]string, 0, len(sortingFiles)) diff --git a/templates/en/about.gmi b/templates/en/about.gmi index dd985ae..00cf4f2 100644 --- a/templates/en/about.gmi +++ b/templates/en/about.gmi @@ -29,7 +29,7 @@ Articles I wrote simply in files and put them in my self-hosted cloud by created From this service it is served to gemini service what is written in Go, too, or to http service (backend on Go, frontend on Vue.js). For communications I use gRPC. -=> /en/f/gemini/arns_lt more... +=> /f/gemini/arns_lt more... => https://g.arns.lt/zordsdavini/zord-tree zord-tree library to build tree from files => https://g.arns.lt/zordsdavini/arns-lt-tree-push-service service written on top of zord-tree to serve files => https://g.arns.lt/zordsdavini/arns-lt-gemini gemini service