mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
@@ -492,10 +492,15 @@ func (h *HugoSites) writeBuildStats() error {
|
|||||||
HTMLElements: *htmlElements,
|
HTMLElements: *htmlElements,
|
||||||
}
|
}
|
||||||
|
|
||||||
js, err := json.MarshalIndent(stats, "", " ")
|
var buf bytes.Buffer
|
||||||
|
enc := json.NewEncoder(&buf)
|
||||||
|
enc.SetEscapeHTML(false)
|
||||||
|
enc.SetIndent("", " ")
|
||||||
|
err := enc.Encode(stats)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
js := buf.Bytes()
|
||||||
|
|
||||||
filename := filepath.Join(h.Configs.LoadingInfo.BaseConfig.WorkingDir, files.FilenameHugoStatsJSON)
|
filename := filepath.Join(h.Configs.LoadingInfo.BaseConfig.WorkingDir, files.FilenameHugoStatsJSON)
|
||||||
|
|
||||||
|
@@ -1116,7 +1116,7 @@ minify = %t
|
|||||||
|
|
||||||
Some text.
|
Some text.
|
||||||
|
|
||||||
<div class="c d e" id="el2">Foo</div>
|
<div class="c d e [&>p]:text-red-600" id="el2">Foo</div>
|
||||||
|
|
||||||
<span class=z>FOO</span>
|
<span class=z>FOO</span>
|
||||||
|
|
||||||
@@ -1144,6 +1144,7 @@ Some text.
|
|||||||
"d",
|
"d",
|
||||||
"e",
|
"e",
|
||||||
"hover:text-gradient",
|
"hover:text-gradient",
|
||||||
|
"[&>p]:text-red-600",
|
||||||
"inline-block",
|
"inline-block",
|
||||||
"lowercase",
|
"lowercase",
|
||||||
"pb-1",
|
"pb-1",
|
||||||
|
Reference in New Issue
Block a user