diff --git a/.gitignore b/.gitignore index aa5bac14d030e..97cc35437d998 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# hugo artifacts +.hugo_build.lock + # Eclipse artifacts .project .pydevproject @@ -34,4 +37,4 @@ out/** go/** # archived site version -archived_version \ No newline at end of file +archived_version diff --git a/config.toml b/config.toml index c5db71804e480..ca2a65004a0d0 100644 --- a/config.toml +++ b/config.toml @@ -274,4 +274,8 @@ disableAliases = true weight = 5 [permalinks] - case-studies = "/:slug" \ No newline at end of file + case-studies = "/:slug" + +[security] + [security.funcs] + getenv = ['^HUGO_','URL'] diff --git a/scripts/lint_site.sh b/scripts/lint_site.sh index 4df7d07df2f3d..a3360d3452844 100755 --- a/scripts/lint_site.sh +++ b/scripts/lint_site.sh @@ -107,7 +107,7 @@ SKIP_LANGS=( en zh pt-br ) for lang in $LANGS; do for i in "${!SKIP_LANGS[@]}"; do if [[ "${SKIP_LANGS[$i]}" = "${lang}" ]]; then - unset SKIP_LANGS["${i}"] + unset 'SKIP_LANGS[${i}]' fi done SKIP_LANGS=( "${SKIP_LANGS[@]}" )