From 4e1129f36187897e2154edbe4c68f5e0e0c21a5e Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 3 Jan 2017 19:05:27 -0500 Subject: Add "class" metadata attribute; use it instead of separate CSS files. --- bin/page.html.erb | 2 +- bin/util.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/page.html.erb b/bin/page.html.erb index 64afdf0..354b123 100644 --- a/bin/page.html.erb +++ b/bin/page.html.erb @@ -7,7 +7,7 @@ <%= @page.head %> - + class="<%= @page.class %>"<% end %>>

AndrewDM

diff --git a/bin/util.rb b/bin/util.rb index 3376699..1318f28 100644 --- a/bin/util.rb +++ b/bin/util.rb @@ -118,6 +118,7 @@ class Page def slug ; @slug ||= infile.sub(/\..*$/,'').sub(/^.*\//,'') ; end def content ; @content ||= pandoc.to('html5 '+(pandoc['pandoc_flags']||'')) ; end def head ; @head ||= pandoc['html_head_extra'] ; end + def class ; @class ||= pandoc['class'] ; end def tags if @tags.nil? -- cgit v1.2.3