// DeprecateLevel informs about a deprecation logging at the given level.
func deprecateLevelWithLogger(item, alternative, version string, level logg.Level, log logg.Logger) {
+ //if strings.Contains(item, "module.mounts.lang") || strings.Contains(item, "includeFiles") {
+ // hdebug.Panicf("Deprecated")
+ //}
var msg string
if level == logg.LevelError {
// Useful to debug deprecation errors that needs to be removedor fixed. Comment out when done debugging.
[[module.mounts]]
source = 'content4'
target = 'content/excludedsome'
-excludeFiles = 'p1.md'
+files = '! p1.md'
[[module.mounts]]
source = 'content5'
target = 'content/excludedall'
-excludeFiles = '/**'
+files = '! /**'
[[module.mounts]]
source = "hugo_stats.json"
target = "assets/watching/hugo_stats.json"
[[module.imports.mounts]]
source="myacontent"
target="content/blog"
-lang="en"
+[module.imports.mounts.sites.matrix]
+languages = "en"
[[module.imports]]
path="b"
[[module.imports.mounts]]
source="mybcontent"
target="content/blog"
-lang="nn"
+[module.imports.mounts.sites.matrix]
+languages = "nn"
[[module.imports]]
path="c"
[[module.imports]]
[[module.mounts]]
source = 'content'
target = 'content'
-excludeFiles = "/a/c/**"
+files = "! /a/c/**"
[[module.mounts]]
source = 'static'
target = 'static'
[[module.mounts]]
source = 'layouts'
target = 'layouts'
-excludeFiles = "/**/foo.html"
+files = "! /**/foo.html"
[[module.mounts]]
source = 'data'
target = 'data'
-includeFiles = "/mydata/**"
+files = "/mydata/**"
[[module.mounts]]
source = 'assets'
target = 'assets'
-excludeFiles = ["/**exclude.*", "/moooo.*"]
+files = ["! /**exclude.*", "! /moooo.*"]
[[module.mounts]]
source = 'i18n'
target = 'i18n'