summaryrefslogtreecommitdiff
path: root/util.rb
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-04-14 15:38:21 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-04-14 15:38:35 -0600
commit816165d16faec8692d3dbbd80bc6497f13f4997e (patch)
tree699fdf16f07114dae36c67229753e95bd771493f /util.rb
parent705487d6b3fd418c39d453ef24d8e425d335ba3e (diff)
parentca9db4335ec863ace3f098adeef36529fb6fa859 (diff)
make: Upgrade from CC BY-SA 3.0 to CC BY-SA 4.0
Diffstat (limited to 'util.rb')
-rw-r--r--util.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/util.rb b/util.rb
index 31c605f..cff8f1b 100644
--- a/util.rb
+++ b/util.rb
@@ -4,14 +4,14 @@ 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 = {
- "Luke Shumaker" => "https://lukeshu.com/",
+ "Luke T. Shumaker" => "https://lukeshu.com/",
}
$person_emails = {
- "Luke Shumaker" => "lukeshu@sbcglobal.net",
+ "Luke T. Shumaker" => "lukeshu@lukeshu.com",
}
class Person
@@ -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 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
@@ -90,7 +90,7 @@ class Page
end
def breadcrumbs
- @breadcrumbs ||= '<a href="/">Luke Shumaker</a> » ' + ( (slug == 'index') ? "blog" : "<a href=/blog>blog</a> » #{slug}" )
+ @breadcrumbs ||= '<a href="/">Luke T. Shumaker</a> » ' + ( (slug == 'index') ? "blog" : "<a href=/blog>blog</a> » #{slug}" )
end
end