diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-04-14 15:38:21 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-04-14 15:38:35 -0600 |
commit | 816165d16faec8692d3dbbd80bc6497f13f4997e (patch) | |
tree | 699fdf16f07114dae36c67229753e95bd771493f /util.rb | |
parent | 705487d6b3fd418c39d453ef24d8e425d335ba3e (diff) | |
parent | ca9db4335ec863ace3f098adeef36529fb6fa859 (diff) |
make: Upgrade from CC BY-SA 3.0 to CC BY-SA 4.0
Diffstat (limited to 'util.rb')
-rw-r--r-- | util.rb | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |