diff --git a/assets/paste.html b/assets/paste.html index 44eaa1d..cdac78d 100644 --- a/assets/paste.html +++ b/assets/paste.html @@ -35,7 +35,10 @@
- Raw +
+ Home + Raw +
diff --git a/assets/syntax.html b/assets/syntax.html index 3d23d8d..2791a1f 100644 --- a/assets/syntax.html +++ b/assets/syntax.html @@ -35,7 +35,10 @@
- Raw +
+ Home + Raw +
diff --git a/main.go b/main.go index 4008ee6..0aafe02 100644 --- a/main.go +++ b/main.go @@ -235,7 +235,8 @@ func pasteHandler(w http.ResponseWriter, r *http.Request) { p := &Page{ Title: paste, Body: []byte(s), - Link: link, + Raw: link, + Home: ADDRESS, } t, err := template.ParseFiles("assets/paste.html") if err != nil { @@ -246,7 +247,7 @@ func pasteHandler(w http.ResponseWriter, r *http.Request) { } else { dat, err := ioutil.ReadFile("assets/syntax.html") check(err) - fmt.Fprintf(w, string(dat), paste, paste, s, link) + fmt.Fprintf(w, string(dat), paste, paste, s, ADDRESS, link) } }