From 4a3a404a5cb2a8d5be83e28cec5c539928fa30f4 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 6 Jan 2017 23:18:24 -0500 Subject: aaaah --- lib/page_remote.rb | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'lib/page_remote.rb') diff --git a/lib/page_remote.rb b/lib/page_remote.rb index a754af6..e886283 100644 --- a/lib/page_remote.rb +++ b/lib/page_remote.rb @@ -3,7 +3,6 @@ require 'date' require 'config' require 'page' -require 'tag' class RemotePage < Page def initialize(metadata) @@ -14,27 +13,27 @@ class RemotePage < Page return Config::get.url + @metadata['url'] end - def title + def atom_title @metadata['title'] end - def author + def atom_author Person::new(@metadata['author'] || Config::get.default_author) end - def content + def atom_content return nil end - def rights + def atom_rights return nil end - def _tags - @metadata['tags'] || [] + def page_cagetories + @metadata['categories'] || [] end - def _published + def page_published str = @metadata['published'] if str.nil? return nil @@ -42,7 +41,7 @@ class RemotePage < Page return Date::parse(str) end - def _updated + def page_updated str = @metadata['updated'] if str.nil? return nil @@ -50,7 +49,7 @@ class RemotePage < Page return Date::parse(str) end - def _years + def page_years return [] end end -- cgit v1.2.3-54-g00ecf