Last active
December 15, 2015 00:09
-
-
Save mikeumus/5170882 to your computer and use it in GitHub Desktop.
docpad-feedr error.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default.html.eco: | |
<% if tweet in @feedr.feeds.twitter: %> | |
<li datetime="<%=tweet.created_at%>"> | |
<a href="https://twitter.com/#!/<%=tweet.user.screen_name%>/status/<%=tweet.id_str%>" title="View on Twitter"> | |
<%=tweet.text%> | |
</a> | |
</li> | |
<% end %> | |
-^-^-^-^-^-^_^_^_ | |
docpad.coffee: | |
plugins: | |
feedr: | |
feeds: | |
twitter: | |
url: "https://api.twitter.com/1/statuses/user_timeline.json?screen_name=kariadamskc&count=1&include_entities=true&include_rts=true" | |
-^-^-^-^-^-^_^_^_ | |
Outputs a error too long to see it's begining in Git bash. Not sure why the long error? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solution
The exact example from the docpad-plugin-feedr works and then you use the
&count=1
in the docpad.coffee twitter.url to set the number of tweets pulled.-v-v-v-v-v-v_V_V_V
`
`<% for tweet in @feedr.feeds.twitter: %>
<% continue if tweet.in_reply_to_user_id %>
<%=tweet.text%>
<% end %>