gokarna-theme / gokarna-hugo

A minimal opinionated theme for Hugo
https://gokarna-hugo.netlify.app
GNU General Public License v3.0
358 stars 140 forks source link

Add a license header to the footer #111

Closed jamesericdavidson closed 2 years ago

jamesericdavidson commented 2 years ago

Example: ae5e0d26c43965fb0e4e530a556f92143ddacb39 (revert if unwanted)

Screenshot of license header

Documentation: 7881161b3b5b724671ef1498082f6c73cf344a70

Screenshot of documentation

Implementation: a4ab53ede7ee1881200c538dbe30d09ac54672db

The licenseHeader variable in config.toml is used to print a Markdown string in the footer.

The variable should contain the license header used by the content on your website, in this example Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0) .

netlify[bot] commented 2 years ago

Deploy Preview for gokarna-hugo ready!

Name Link
Latest commit 4cee9e00175f8a5856446ca8b83833acb9a42cd5
Latest deploy log https://app.netlify.com/sites/gokarna-hugo/deploys/62ee797fc8fcb700080eb7a6
Deploy Preview https://deploy-preview-111--gokarna-hugo.netlify.app/posts/theme-documentation-basics
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

jamesericdavidson commented 2 years ago

Sorry for the late addition, but I thought a per-page license would be nice too.

526avijitgupta commented 2 years ago

@jamesericdavidson Unfortunately we'll have to close this one. License header is not a hugo param and a footer text can be added to any content, I don't think we need to support it out of the box.

The proactiveness is still appreciated. I hope this doesn't discourage you from making contributions to Gokarna in the future :)

jamesericdavidson commented 2 years ago

License header is not a hugo param

@526avijitgupta Would you support the site variable .Site.Copyright in that case?

https://gohugo.io/variables/site/#site-variables-list