From ca9db4335ec863ace3f098adeef36529fb6fa859 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sun, 14 Apr 2024 15:35:54 -0600 Subject: Upgrade from CC BY-SA 3.0 to CC BY-SA 4.0 --- util.rb | 6 +++--- 1 file 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 -- cgit v1.1-4-g5e80