From a087ad2e7bbb8c5b3e0c4dbc2482279b57ffdb6f Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 10 Dec 2017 13:49:46 +1300 Subject: [PATCH] 'latest' link takes you to the latest for the currently selected hub --- ArchiveState.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ArchiveState.go b/ArchiveState.go index 86d5f75..22af35a 100644 --- a/ArchiveState.go +++ b/ArchiveState.go @@ -193,6 +193,11 @@ func (this *ArchiveState) renderTemplateHead(w http.ResponseWriter) { showPageURLs := (this.log != nil && len(this.query) == 0) + latestUrl := `/` + if this.log != nil { + latestUrl = fmt.Sprintf(`/%s/%d/%d`, url.PathEscape(this.logBestSlug), this.log.LatestDate().Year, this.log.LatestDate().Month) + } + w.Write([]byte(` @@ -208,7 +213,7 @@ func (this *ArchiveState) renderTemplateHead(w http.ResponseWriter) {
- Latest + Latest Font increase Font decrease Download backup