switch from date to hex for gemlog listing
")
", post.Slug, post.Date.Format("2006-01-02")hexNum, post.Title))
This commit is contained in:
parent
6c00846379
commit
fda9d22b83
2 changed files with 9 additions and 6 deletions
|
|
@ -72,8 +72,10 @@ func (g *Gemlog) serveIndex(w gemini.ResponseWriter, req *gemini.Request) {
|
|||
} else {
|
||||
content.WriteString("## Posts\n\n")
|
||||
|
||||
for _, post := range posts {
|
||||
content.WriteString(fmt.Sprintf("=> /gemlog/post/%s %s - %s\n", post.Slug, post.Date.Format("2006-01-02"), post.Title))
|
||||
for i, post := range posts {
|
||||
i = len(posts) - i
|
||||
hexNum := fmt.Sprintf("0x%04x", i)
|
||||
content.WriteString(fmt.Sprintf("=> /gemlog/post/%s %s - %s\n", post.Slug, hexNum, post.Title))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
task: add hexidecimal numbering to gemlog
|
||||
task: implement dir codeview pages
|
||||
task: implement codbase root codeview pages
|
||||
-----------DONE LINE-----------
|
||||
|
||||
DONE task: add hexidecimal numbering to gemlog
|
||||
DONE task: add request counter
|
||||
DONE task: embed static pages
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue