Refactor app.rb to use paged.
Create new pages relative to current directory.
This commit is contained in:
@@ -7,6 +7,10 @@ module Precious
|
||||
DATE_FORMAT = "%Y-%m-%d %H:%M:%S"
|
||||
DEFAULT_AUTHOR = 'you'
|
||||
|
||||
def new_page_data_variables
|
||||
%{ data-path="#{@path}"} if @path
|
||||
end
|
||||
|
||||
def title
|
||||
@page.url_path.gsub("-", " ")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user