https://github.com/healeycodes/embed-dev-posts
Embed a list of your most recent DEV posts with this tiny library 💌
https://github.com/healeycodes/embed-dev-posts
Last synced: 11 months ago
JSON representation
Embed a list of your most recent DEV posts with this tiny library 💌
- Host: GitHub
- URL: https://github.com/healeycodes/embed-dev-posts
- Owner: healeycodes
- License: mit
- Created: 2019-04-06T10:54:03.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-06T21:23:48.000Z (almost 7 years ago)
- Last Synced: 2025-04-30T07:08:20.701Z (11 months ago)
- Language: HTML
- Homepage: https://healeycodes.github.io/embed-DEV-posts/example/
- Size: 22.5 KB
- Stars: 6
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Embed Your Latest DEV Posts Anywhere!
A tiny library for embedding your latest DEV posts, sorted by popularity. Explainer post [here](https://dev.to/healeycodes/embed-your-latest-dev-posts-anywhere-lj9)!
#### `function createFeed(elem, username, numberOfPosts = 5)`
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:
```html
```
Use `.dev-feed-list` to style the list and `.dev-feed-item` to style the items.
Accepting PRs/issues 👍