From: Sergey Matveev Date: Sat, 14 Mar 2020 12:04:51 +0000 (+0300) Subject: No new/old terminology X-Git-Tag: v0.4.0^0 X-Git-Url: http://www.git.stargrave.org/?p=sgblog.git;a=commitdiff_plain;h=8da41b7d7a2871116afd41f3c05468828800753b No new/old terminology --- diff --git a/cmd/sgblog/http.go b/cmd/sgblog/http.go index cf05f1e..7275c71 100644 --- a/cmd/sgblog/http.go +++ b/cmd/sgblog/http.go @@ -352,12 +352,12 @@ func serveHTTP() { } else { href = cfg.URLPrefix + "/" } - links = append(links, ``) + links = append(links, ``) refs.WriteString("\n" + makeA(href, "[prev]")) } if !logEnded { href = cfg.URLPrefix + "/?offset=" + strconv.Itoa(offset+PageEntries) - links = append(links, ``) + links = append(links, ``) refs.WriteString("\n" + makeA(href, "[next]")) } @@ -470,7 +470,7 @@ func serveHTTP() { var parent string if len(commit.ParentHashes) > 0 { parent = commit.ParentHashes[0].String() - links = append(links, ``) + links = append(links, ``) } out.Write([]byte(startHTML(fmt.Sprintf("%s (%s)", title, when), links))) if cfg.AboutURL != "" { @@ -478,10 +478,7 @@ func serveHTTP() { } out.Write([]byte(fmt.Sprintf("[%s]\n", makeA(cfg.URLPrefix+"/", "index")))) if parent != "" { - out.Write([]byte(fmt.Sprintf( - "[%s]\n", - makeA(cfg.URLPrefix+"/"+parent, "older"), - ))) + out.Write([]byte(fmt.Sprintf("[%s]\n", makeA(cfg.URLPrefix+"/"+parent, "prev")))) } out.Write([]byte(fmt.Sprintf( "[%s]\n"+