Skip to content

sbanwart/hexo-global-license

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-global-license


A generator for the Hexo static site generator that adds a license statement to every page. It natively supports Creative Commons v4.0 or a custom license template.

Downloads npm LICENSE

Installation

npm install --save hexo-global-license

Usage

  • Add the global license helper to your theme template
    • <%- globalLicense(config) %>
  • Add settings to the Hexo configuration file
    • licenseType: Specify the type of Creative Commons license, or custom
      • by: CC Attribution
      • by-nd: CC Attribution-NoDerivatives
      • by-sa: CC Attribution-ShareAlike
      • by-nc: CC Attribution-NonCommercial
      • by-nc-nd: CC Attribution-NonCommercial-NoDerivatives
      • by-nc-sa: CC Attribution-NonCommercial-ShareAlike
      • custom: Specify your own custom license HTML
    • licenseIconSize: Specify the size of the Creative Commons image
      • normal
      • small
    • customLicense: The markup and text of a custom license statement; only needed when licenseType is set to 'custom'

Examples

Creative Commons

licenseType: by-sa
licenseIconSize: normal

Custom

licenseType: custom
customLicense: <div>My custom license text.</div>

License

Copyright (c) 2017, Scott Banwart. Licensed under the MIT license.

About

A generator for Hexo that adds a license statement to every page.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published