From 60573896b4d4cc6820172cc9ad2d4355f7168662 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 30 Sep 2016 18:24:14 -0400 Subject: sitegen stuff --- util.rb | 8 -------- 1 file changed, 8 deletions(-) (limited to 'util.rb') 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 ||= "

The content of this page is Copyright © #{date.year unless date.nil?} #{author.html}.

\n" + "

This page is licensed under the #{license.html} license.

" -- cgit v1.2.3