summaryrefslogtreecommitdiff
path: root/util.rb
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-09-30 18:24:14 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-09-30 18:24:14 -0400
commit60573896b4d4cc6820172cc9ad2d4355f7168662 (patch)
tree2c26fdefa9e1edcba31d755b0632fd417d97a71a /util.rb
parent6f7d74f8a0c5a77441b34e3b42950c18127da3d7 (diff)
sitegen stuff
Diffstat (limited to 'util.rb')
-rw-r--r--util.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/util.rb b/util.rb
index 160a74d..31c605f 100644
--- a/util.rb
+++ b/util.rb
@@ -84,14 +84,6 @@ class Page
def slug ; @slug ||= infile.sub(/\..*$/,'').sub(/^.*\//,'') ; end
def content ; @content ||= pandoc.to('html5') ; end
- def gitdate
- if @gitdate.nil?
- raw = `git log -n1 --format='%cI' -- #{infile}`
- @gitdate = DateTime.iso8601(raw) unless raw.empty?
- end
- @gitdate
- end
-
def rights
@rights ||= "<p>The content of this page is Copyright © #{date.year unless date.nil?} #{author.html}.</p>\n" +
"<p>This page is licensed under the #{license.html} license.</p>"