diff options
Diffstat (limited to 'util.rb')
-rw-r--r-- | util.rb | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -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>" |