mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
parent
b6538532f4
commit
bcf7421ea5
2 changed files with 8 additions and 2 deletions
|
@ -492,10 +492,15 @@ func (h *HugoSites) writeBuildStats() error {
|
|||
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 {
|
||||
return err
|
||||
}
|
||||
js := buf.Bytes()
|
||||
|
||||
filename := filepath.Join(h.Configs.LoadingInfo.BaseConfig.WorkingDir, files.FilenameHugoStatsJSON)
|
||||
|
||||
|
|
|
@ -1116,7 +1116,7 @@ minify = %t
|
|||
|
||||
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>
|
||||
|
||||
|
@ -1144,6 +1144,7 @@ Some text.
|
|||
"d",
|
||||
"e",
|
||||
"hover:text-gradient",
|
||||
"[&>p]:text-red-600",
|
||||
"inline-block",
|
||||
"lowercase",
|
||||
"pb-1",
|
||||
|
|
Loading…
Reference in a new issue