{{- /* metadata-license.html (partial): If set-up in the frontmatter displays a copyright/license notice applicable to the current page Features: - Displays a copyright notice with 'author, year' info or 'site title, year' if author is not defined. - Displays a license notice, that can be fully copyrighted (All Rights) or one of the main Creative Commons Licenses (with link to the CC license page) Repo: https://github.com/oxypteros/alpha */ -}} {{- $year := .Date | time.Format "2006" -}} {{- $author := .Page.Params.author | default .Site.Title -}} {{- $license := .Page.Params.license -}} {{- $validLicenses := dict "copyright" (dict "text" "AllRights" "url" "" "label" "Copyright") "CC0" (dict "text" "NoRights" "url" "https://creativecommons.org/publicdomain/zero/1.0/" "label" "CC0 1.0") "CC-BY" (dict "text" "SomeRights" "url" "https://creativecommons.org/licenses/by/4.0/" "label" "CC BY 4.0") "CC-BY-SA" (dict "text" "SomeRights" "url" "https://creativecommons.org/licenses/by-sa/4.0/" "label" "CC BY-SA 4.0") "CC-BY-ND" (dict "text" "SomeRights" "url" "https://creativecommons.org/licenses/by-nd/4.0/" "label" "CC BY-ND 4.0") "CC-BY-NC" (dict "text" "SomeRights" "url" "https://creativecommons.org/licenses/by-nc/4.0/" "label" "CC BY-NC 4.0") "CC-BY-NC-SA" (dict "text" "SomeRights" "url" "https://creativecommons.org/licenses/by-nc-sa/4.0/" "label" "CC BY-NC-SA 4.0") "CC-BY-NC-ND" (dict "text" "SomeRights" "url" "https://creativecommons.org/licenses/by-nc-nd/4.0/" "label" "CC BY-NC-ND 4.0") -}} {{- if and (eq .Kind "page") (ne .Page.Params.layout "story")}}