~aleteoryx/webjrnl

1e443982e8af8b448ea9c9be789cad6ba38374c5 — Aleteoryx 22 days ago 63a1a15
change to link prefixes
1 files changed, 2 insertions(+), 2 deletions(-)

M web.go
M web.go => web.go +2 -2
@@ 188,7 188,7 @@ func BuildLinks(r *http.Request, jrnl *Jrnl) template.HTML {
		return template.HTML("")
	}

	pfx := strings.Repeat("../", strings.Count(r.URL.Path, "/"))
	pfx := strings.Repeat("../", strings.Count(r.URL.Path, "/") - 1)
	links := fmt.Sprintf("<a href=\"%sdash\">dash</a>", pfx)

	years, _ := jrnl.ListYears()


@@ 249,7 249,7 @@ type NtriesPageData struct {
	Pfx string
}
func NtriesPage(w http.ResponseWriter, r *http.Request, jrnl *Jrnl, Title, Blurb string, ntries []EntryVersion) {
	pfx := strings.Repeat("../", strings.Count(r.URL.Path, "/"))
	pfx := strings.Repeat("../", strings.Count(r.URL.Path, "/") - 1)
	ReplyTemplate(
		w, r, jrnl, "ntries.html",
		NtriesPageData {