summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-04-14 15:35:54 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-04-14 15:36:50 -0600
commitca9db4335ec863ace3f098adeef36529fb6fa859 (patch)
tree6be93d02cde3c07fb82c973117d5752459930fe3
parent852304f6bc479a8279eebb3f011c2b15ec946d89 (diff)
Upgrade from CC BY-SA 3.0 to CC BY-SA 4.0
-rw-r--r--util.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/util.rb b/util.rb
index 0611d27..cff8f1b 100644
--- a/util.rb
+++ b/util.rb
@@ -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