mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-08 19:36:36 +02:00
20
testscripts/commands/hugo__path-warnings-postprocess.txt
Normal file
20
testscripts/commands/hugo__path-warnings-postprocess.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
hugo --printPathWarnings
|
||||
|
||||
! stdout 'Duplicate'
|
||||
|
||||
-- hugo.toml --
|
||||
-- assets/css/styles.css --
|
||||
body {
|
||||
background-color: #000;
|
||||
}
|
||||
-- content/p1.md --
|
||||
-- content/p2.md --
|
||||
-- content/p3.md --
|
||||
-- layouts/index.html --
|
||||
Home.
|
||||
-- layouts/_default/single.html --
|
||||
{{ $css := resources.Get "css/styles.css" }}
|
||||
{{ $css := $css | minify | fingerprint | resources.PostProcess }}
|
||||
CSS: {{ $css.RelPermalink }}
|
||||
{{ .Title }}
|
||||
|
26
testscripts/commands/hugo__path-warnings.txt
Normal file
26
testscripts/commands/hugo__path-warnings.txt
Normal file
@@ -0,0 +1,26 @@
|
||||
hugo --printPathWarnings
|
||||
|
||||
stdout 'Duplicate'
|
||||
|
||||
-- hugo.toml --
|
||||
-- assets/css/styles.css --
|
||||
body {
|
||||
background-color: #000;
|
||||
}
|
||||
-- content/p1.md --
|
||||
---
|
||||
url: /p1/
|
||||
---
|
||||
-- content/p2.md --
|
||||
---
|
||||
url: /p1/
|
||||
---
|
||||
-- content/p3.md --
|
||||
---
|
||||
url: /p1/
|
||||
---
|
||||
-- layouts/index.html --
|
||||
Home.
|
||||
-- layouts/_default/single.html --
|
||||
Single.
|
||||
|
Reference in New Issue
Block a user