fix: get license from footer.copyright.license (#2638)

See #2601
This commit is contained in:
Foivos authored and GitHub committed 2022-02-26 12:49:02 +00:00
1 parent ebcb34b523
commit 55d7a2bff4
1 file changed
+3 -3
@@ -5,9 +5,9 @@
{{ if ($copyright_license.enable | default false) }}
{{ $allow_commercial := .Params.copyright.license.allow_commercial | default site.Params.copyright.license.allow_commercial }}
{{ $allow_derivatives := .Params.copyright.license.allow_derivatives | default site.Params.copyright.license.allow_derivatives }}
{{ $share_alike := .Params.copyright.license.share_alike | default site.Params.copyright.license.share_alike }}
{{ $allow_commercial := $copyright_license.allow_commercial | default false }}
{{ $allow_derivatives := $copyright_license.allow_derivatives | default false }}
{{ $share_alike := $copyright_license.share_alike | default true }}
{{ $cc_code := "by" }}
{{ if not $allow_commercial }}