|
@@ -10,10 +10,11 @@
|
|
{{ $return = merge $return $publish_mode }}
|
|
{{ $return = merge $return $publish_mode }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
|
|
-{{ if site.Params.cms.local_backend }}
|
|
|
|
- {{ $local_backend := dict "local_backend" true }}
|
|
|
|
- {{ $return = merge $return $local_backend }}
|
|
|
|
|
|
+{{ $local_backend := false }}
|
|
|
|
+{{ if site.Params.cms.local_backend | or (not hugo.IsProduction) }}
|
|
|
|
+ {{ $local_backend = true }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
+{{ $return = merge $return (dict "local_backend" $local_backend) }}
|
|
|
|
|
|
{{ $backend := dict "backend" $backend_opts }}
|
|
{{ $backend := dict "backend" $backend_opts }}
|
|
{{ $return := merge $return $backend }}
|
|
{{ $return := merge $return $backend }}
|