-
-
Notifications
You must be signed in to change notification settings - Fork 39
Conversation
oh you ! |
class LastModifiedAtGenerator << Generator | ||
|
||
def generate(site) | ||
%w(posts pages docs_to_write).each do |type| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is docs_to_write
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Collection
s have Document
s, only some of which should be written.
Does this also resolve the |
Also should I close your #20 ? |
…modified-at into last-modified-at-attr * 'last-modified-at-attr' of github.com:parkr/jekyll-last-modified-at: oh ruby subclassing... wat
This looks beyond great. Ready to merge if you're happy with it. |
@gjtorikian Have a bunch more tests to write – I'll ping you when I'm done 😄 |
@gjtorikian Done! Ready4u. |
before(:each) { site.process } | ||
|
||
it "understands happiness" do | ||
expect(File.read(subject)).to match(/19\-Jul\-14/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is causing the test to fail on Travis. Maybe it should be set to Time.now
and transformed with %e-%m-%y
?
OH YES |
Pretty sure I understand about 45% of this so I'll just mergit |
Create a custom class that can be used by either the tag or the attribute!