New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add live-blog example #3741
add live-blog example #3741
Conversation
@cramforce @ericlindley-g PTAL |
757c7f7
to
d505554
Compare
This is the best thing I've ever seen in my life. |
return values[Math.round(Math.random() * (max - min))] | ||
}; | ||
// Generate a 3 to 7 worded headline | ||
var headline = bacon(range(3, 7)); |
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.
How about adding a http://placekitten.com/300/350 to some of the entries at random?
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.
done! also added https://baconmockup.com/300/350/ !
d505554
to
1cb50ea
Compare
This is fantastic! (Random kittens also delightful) Is there a way to put a user-visible time-stamp on each entry? |
9f922e6
to
301d64f
Compare
@ericlindley-g done |
Would you point to the source code so we can follow an example? |
LGTM |
301d64f
to
641885b
Compare
@jaygray0919 mind clarifying? not sure what you meant by "source code". thanks |
poor choice of words ... |
@jaygray0919 gotcha, the code generating new entries is here https://github.com/ampproject/amphtml/blob/master/build-system/server.js#L223 and the starting markup for amp-live-list is here https://github.com/ampproject/amphtml/blob/master/examples/live-blog.amp.html#L192 . feel free to ask more questions if this doesnt cover what you are looking for |
TY @erwinmombay . Background: we have redesigned our site based on AMP and are migrating content now. We have one We also are looking at this: https://github.com/erwinmombay/amphtml/blob/03a0670debea10f1f5f3e373e347d10f03fc6994/extensions/amp-live-list/amp-live-list.md Final question: the sample has |
I can tell you that That said, we tried to make that component as flexible as possible, so it can just scroll if there are 30+ items in there. And if you need to create expanding subsections in the menu to organize the information, you can use As for the best documenation for The answer to your last question is that the button is not present by default, only appearing when there are updates that haven't been slotted into the page. When the user presses this button, the updates are slotted in, and the button should disappear automatically (unless its And one last note regarding schema markup: you will want to look at https://schema.org/LiveBlogPosting if you are marking up live blogs. We're starting to work that into our samples, as well. |
You blokes are very helpful - TY. |
No description provided.