diff options
| author | Arun <me@arunmathaisk.in> | 2024-09-14 00:40:35 +0530 | 
|---|---|---|
| committer | Arun <me@arunmathaisk.in> | 2024-09-14 00:40:35 +0530 | 
| commit | 974bc9f6ffa10d22c5d6f692fe79d71606bbb2d3 (patch) | |
| tree | 1b7a4217c2f42ba1cb48de6c58997ed97141f6f6 /layouts | |
| parent | aafdd813d7e7d169f64a3081ed6fecd8f6f72569 (diff) | |
feat: Content License and Copyright holder as Footer
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/baseof.html | 9 | ||||
| -rw-r--r-- | layouts/partials/footer-license.html | 6 | 
2 files changed, 14 insertions, 1 deletions
| diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 373e635..fdee79d 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -25,7 +25,14 @@      </div>      <footer> -      {{ partial "footer.html" . }} +      {{ if .Param "showFooterLicense" }} +      <div> +        {{ partial "footer-license.html" . }} +      </div> +      {{ end }} +      <div> +        {{ partial "footer.html" . }} +      </div>      </footer>    </body> diff --git a/layouts/partials/footer-license.html b/layouts/partials/footer-license.html new file mode 100644 index 0000000..6b05b04 --- /dev/null +++ b/layouts/partials/footer-license.html @@ -0,0 +1,6 @@ +<p> +	All content licensed under +	<b>{{ .Param "licenseType" }}</b> +	license unless otherwise stated. +	<b>Copyright © {{ .Param "copyrightYear" }} {{ .Param "copyrightHolder" }}.</b> +  </p> | 
