summaryrefslogtreecommitdiff
path: root/util.rb
diff options
context:
space:
mode:
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>"