Wowchemy-hugo-modules: Creative Commons license

Created on 9 Mar 2018  路  4Comments  路  Source: wowchemy/wowchemy-hugo-modules

At the bottom of our theme we have a copyright statement. This is good and proper. I am wondering if anyone else sees a reason or a need to also have a Creative commons license also in the footer.
creative commons
What I am imagining is that many CVs should have a BY-ND-SA. I think that is really is the nature of how many of us relate to the usage of our CVs. But other scenarios are also possible. So, I would think that it might be possible to add something to the footer that says: "Content licenses under ______X____" where X is a value in the .toml document where we set the copyright info. Thoughts?

BTW: I am not saying that the theme should be Creative Commons licensed, rather that the content is licensed per the author's choosing...

Most helpful comment

I have made the following changes in the config.toml to provide a CC license on the footer of my website:

  • I commented out the original line # copyright = "© 2016 Your Name".
  • Instead, I added the following text:

copyright = '<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img class="display-centered" alt="Creative Commons License" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">This work</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="/" property="cc:attributionName" rel="cc:attributionURL">Peter Baumgartner</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.<br />Permissions beyond the scope of this license may be available at <a xmlns:cc="http://creativecommons.org/ns#" href="http://peter.baumgartner.name/kontakt" rel="cc:morePermissions">http://peter.baumgartner.name/kontakt</a>.'

You can see the result in the footer at: https://portfolio.peter-baumgartner.net/. (Sorry, my website is still under construction!)

Two more remarks:

  1. You will get the above text as a template when you generate your CC license.
  2. Concerning your considerations refering to the theme and work by Georg Cushen I have added the link to his github address of his academic website framework.

All 4 comments

I have made the following changes in the config.toml to provide a CC license on the footer of my website:

  • I commented out the original line # copyright = "&copy; 2016 Your Name".
  • Instead, I added the following text:

copyright = '<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img class="display-centered" alt="Creative Commons License" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">This work</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="/" property="cc:attributionName" rel="cc:attributionURL">Peter Baumgartner</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.<br />Permissions beyond the scope of this license may be available at <a xmlns:cc="http://creativecommons.org/ns#" href="http://peter.baumgartner.name/kontakt" rel="cc:morePermissions">http://peter.baumgartner.name/kontakt</a>.'

You can see the result in the footer at: https://portfolio.peter-baumgartner.net/. (Sorry, my website is still under construction!)

Two more remarks:

  1. You will get the above text as a template when you generate your CC license.
  2. Concerning your considerations refering to the theme and work by Georg Cushen I have added the link to his github address of his academic website framework.

Thanks for documenting how you integrated a CC license.

I'm closing this, as the HTML snippet can easily be added to the copyright parameter as you documented or pasted at the bottom of blog post files.

Addendum: give the <img /> tag of the autogenerated HTML snippet the following styles to make it centered in the footer:

<img style="display:block;margin: 0 auto" ...

I had figured for awhile and found the answer on how why text-align is ignored for images here.

Addendum 2: If you don't want to have the entire HTML string squashed onto a single line, you can using """ to make multiline strings in a .toml file. ie:

copyright = """                                                                                      
<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">                              
<img style="display:block;margin: 0 auto" class="display-centered" alt="Creative Commons License"    
src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" />                                         
</a>                                                                                                 
<br />                                                                                               
<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">                                    
This work</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="/" property="cc:attributionName"
rel="cc:attributionURL">James Wright</a> is licensed under a <a rel="license"                        
href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.<br />                                                                     
Permissions beyond the scope of this license may be available at 
<a xmlns:cc="http://creativecommons.org/ns#" href="mailto:[email protected]"                        
rel="cc:morePermissions">[email protected]</a>."""
Was this page helpful?
0 / 5 - 0 ratings

Related issues

petzi53 picture petzi53  路  4Comments

chris-prener picture chris-prener  路  3Comments

jooyoungseo picture jooyoungseo  路  3Comments

brianguay picture brianguay  路  4Comments

saadjavaid picture saadjavaid  路  3Comments