URI: 
       Only do one livereload replacement - hugo - [fork] hugo port for 9front
  HTML git clone git@git.drkhsh.at/hugo.git
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
   DIR commit 08b582e18730d44111203e28e761c5c7c07062bf
   DIR parent dd1db334ac15f3bdb67b40973668d1d7b9ca7f08
  HTML Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
       Date:   Sat,  6 Feb 2016 19:22:12 +0100
       
       Only do one livereload replacement
       
       Diffstat:
         M transform/livereloadinject.go       |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/transform/livereloadinject.go b/transform/livereloadinject.go
       @@ -24,12 +24,12 @@ func LiveReloadInject(ct contentTransformer) {
                replaceTemplate := `<script data-no-instant>document.write('<script src="/livereload.js?mindelay=10"></' + 'script>')</script>%s`
                replace := []byte(fmt.Sprintf(replaceTemplate, endBodyTag))
        
       -        newcontent := bytes.Replace(ct.Content(), match, replace, -1)
       +        newcontent := bytes.Replace(ct.Content(), match, replace, 1)
                if len(newcontent) == len(ct.Content()) {
                        endBodyTag = "</BODY>"
                        replace := []byte(fmt.Sprintf(replaceTemplate, endBodyTag))
                        match := []byte(endBodyTag)
       -                newcontent = bytes.Replace(ct.Content(), match, replace, -1)
       +                newcontent = bytes.Replace(ct.Content(), match, replace, 1)
                }
        
                ct.Write(newcontent)