A tiny library for embedding your latest DEV posts, sorted by popularity. Explainer post here!
Creates a feed of DEV posts.
- Parameters:
elemβElementβ Place list of posts inside this element.usernameβstringβ DEV username, e.g. 'ben'.numberOfPostsβnumberβ Number of posts to list.
Generates HTML that looks like this:
<div class="example">
<ul class="dev-feed-list">
<li class="dev-feed-item">
<a href="https://dev.to/devteam/dev-community-is-open-sourcing-its-performance-metrics-via-skylight-221m">
DEV Community Is Open-Sourcing Its Performance Metrics via Skylight
</a>
</li>
</ul>
</div>Use .dev-feed-list to style the list and .dev-feed-item to style the items.
Accepting PRs/issues π