diff --git a/app/models/post.rb b/app/models/post.rb index 2141e6a..57a07a8 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -27,6 +27,10 @@ class Post :layout, :permalink, :dir, { lang: {} }, { tags: [] }, { categories: [] }] + def inspect + "#" + end + # Trabajar con posts. Si estamos creando uno nuevo, el **site** y # el **front_matter** son necesarios, sino, **site** y **post**. # XXX chequear que se den las condiciones diff --git a/app/models/site.rb b/app/models/site.rb index aaa88e0..85b9e25 100644 --- a/app/models/site.rb +++ b/app/models/site.rb @@ -5,6 +5,10 @@ class Site attr_accessor :jekyll, :collections attr_reader :path + def inspect + "#" + end + def initialize(jekyll:, path: nil) @jekyll = jekyll @path = path || @jekyll.config['source']