diff --git a/content/en/functions/default.md b/content/en/functions/default.md index c4cc166a7..f3493fb26 100644 --- a/content/en/functions/default.md +++ b/content/en/functions/default.md @@ -51,7 +51,7 @@ Both of the above `default` function calls return `Roboto`. A `default` value, however, does not need to be hard coded like the previous example. The `default` value can be a variable or pulled directly from the front matter using dot notation: -{{< code file="variable-as-default-value.html" nocopy="true" >}} +{{< code file="variable-as-default-value.html" copy="false" >}} {{$old := .Params.oldparam }}

{{ .Params.newparam | default $old }}

{{< /code >}} @@ -78,14 +78,14 @@ The following have equivalent return values but are far less terse. This demonst Using `if`: -{{< code file="if-instead-of-default.html" nocopy="true" >}} +{{< code file="if-instead-of-default.html" copy="false" >}} {{if .Params.seo_title}}{{.Params.seo_title}}{{else}}{{.Title}}{{end}} => Sane Defaults {{< /code >}} Using `with`: -{{< code file="with-instead-of-default.html" nocopy="true" >}} +{{< code file="with-instead-of-default.html" copy="false" >}} {{with .Params.seo_title}}{{.}}{{else}}{{.Title}}{{end}} => Sane Defaults {{< /code >}}