diff --git a/common/hugio/writers.go b/common/hugio/writers.go
index 82c4dca52e4..d8be83a4043 100644
--- a/common/hugio/writers.go
+++ b/common/hugio/writers.go
@@ -18,6 +18,14 @@ import (
"io/ioutil"
)
+// As implemented by strings.Builder.
+type FlexiWriter interface {
+ io.Writer
+ io.ByteWriter
+ WriteString(s string) (int, error)
+ WriteRune(r rune) (int, error)
+}
+
type multiWriteCloser struct {
io.Writer
closers []io.WriteCloser
diff --git a/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/baseof.html b/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/baseof.html
index 47019072c2d..e2886a0b88c 100644
--- a/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/baseof.html
+++ b/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/baseof.html
@@ -66,6 +66,14 @@
{{ block "footer" . }}{{ partialCached "site-footer.html" . }}{{ end }}
+ {{ if .Page.Store.Get "hasMermaid" }}
+
+
+{{ end }}
+
+