diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-09-30 18:24:14 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-09-30 18:24:16 -0400 |
commit | 6035c2082b29564eb1e6d956f9653d188362832a (patch) | |
tree | 4fee68848a64c2a2cd48a06d15d36836587ee83c /util.rb | |
parent | 0d05aa02b65941586a22f283a9c0f617f0314d0f (diff) | |
parent | 60573896b4d4cc6820172cc9ad2d4355f7168662 (diff) |
make: sitegen stuff
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>" |