mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-11 20:03:58 +02:00
commands: Fix embed in livereload.go
This commit is contained in:
@@ -43,6 +43,8 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
|
_ "embed"
|
||||||
|
|
||||||
"github.com/gorilla/websocket"
|
"github.com/gorilla/websocket"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -152,7 +154,7 @@ func liveReloadJS() []byte {
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
// This is a patched version, see https://github.com/livereload/livereload-js/pull/84
|
// This is a patched version, see https://github.com/livereload/livereload-js/pull/84
|
||||||
// go:embed livereload.js
|
//go:embed livereload.js
|
||||||
livereloadJS string
|
livereloadJS string
|
||||||
hugoLiveReloadPlugin = fmt.Sprintf(`
|
hugoLiveReloadPlugin = fmt.Sprintf(`
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user