~jzs/sketchground.site

0ea686ea8f30dfb2a4e410f556206b893d928e45 — Jens Zeilund 10 months ago e17ffd1
Remove unused code
1 files changed, 0 insertions(+), 22 deletions(-)

M main.go
M main.go => main.go +0 -22
@@ 439,17 439,6 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
		}

		w.Write(MarkdownToHtml(t, file, r.URL.Path != "/index.md"))
		/*
			if err := t.Execute(w, struct {
				HasBack bool
				Content template.HTML
			}{
				HasBack: r.URL.Path != "/index.md",
				Content: template.HTML(blackfriday.Run(file)),
			}); err != nil {
				log.Println(err)
			}
		*/

		return
	}


@@ 463,17 452,6 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
		}

		w.Write(MarkdownToHtml(t, file, r.URL.Path != "/index.md"))
		/*
			if err := t.Execute(w, struct {
				HasBack bool
				Content template.HTML
			}{
				HasBack: r.URL.Path != "/index.md",
				Content: template.HTML(blackfriday.Run(file)),
			}); err != nil {
				log.Println(err)
			}
		*/

		return
	}