diff options
-rw-r--r-- | util.rb | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4,7 +4,7 @@ require 'erb' require 'date' $license_urls = { - "CC BY-SA-3.0" => 'https://creativecommons.org/licenses/by-sa/3.0/', + "CC BY-SA 4.0" => 'https://creativecommons.org/licenses/by-sa/4.0/', 'WTFPL-2' => "http://www.wtfpl.net/txt/copying/", } $person_uris = { @@ -78,8 +78,8 @@ class Page end def title ; @title ||= pandoc['title'] || input.split("\n",2).first ; end - def author ; @author ||= Person.new( pandoc['author'] || "Luke T. Shumaker") ; end - def license ; @license ||= License.new(pandoc['license'] || "CC BY-SA-3.0") ; end + def author ; @author ||= Person.new( pandoc['author'] || "Luke T. Shumaker") ; end + def license ; @license ||= License.new(pandoc['license'] || "CC BY-SA 4.0") ; end def date ; @date ||= Date.parse(pandoc['date']) unless pandoc['date'].nil? ; end def slug ; @slug ||= infile.sub(/\..*$/,'').sub(/^.*\//,'') ; end def content ; @content ||= pandoc.to('html5') ; end |