5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 04:41:43 +00:00

inspeccionar para que no se pongan pesados los tracebacks

This commit is contained in:
f 2018-10-16 19:46:14 -03:00
parent f68977e53d
commit cd1c678f60
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7
2 changed files with 8 additions and 0 deletions

View file

@ -27,6 +27,10 @@ class Post
:layout, :permalink, :dir,
{ lang: {} }, { tags: [] }, { categories: [] }]
def inspect
"#<Post @id=#{id} @site=#{site.name}>"
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

View file

@ -5,6 +5,10 @@ class Site
attr_accessor :jekyll, :collections
attr_reader :path
def inspect
"#<Site @id=#{name}>"
end
def initialize(jekyll:, path: nil)
@jekyll = jekyll
@path = path || @jekyll.config['source']