Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aleks/jekyll_preview_tag
A little Jekyll plugin to generate previews of linked articles/sites.
https://github.com/aleks/jekyll_preview_tag
jekyll jekyll-plugin previews
Last synced: 20 days ago
JSON representation
A little Jekyll plugin to generate previews of linked articles/sites.
- Host: GitHub
- URL: https://github.com/aleks/jekyll_preview_tag
- Owner: aleks
- Created: 2014-01-17T13:52:42.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-09-24T13:58:03.000Z (over 8 years ago)
- Last Synced: 2024-11-29T13:25:19.488Z (28 days ago)
- Topics: jekyll, jekyll-plugin, previews
- Language: Ruby
- Size: 2.93 KB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Jekyll Preview Tag
==================
This plugin uses nokogiri and ruby-readability to create previews and a locally cached snippets.Required Gems/Libraries: nokogiri, open-uri, ruby-readability, digest
Usage:
1. Generate a new folder called "```_cache```" in your Jekyll directory.
This will hold all linked snippets, so you don't need to regenerate them on every regeneration of your site.
2. Use the following link syntax:
```{% preview http://example.com/some-article.html %}```
3. In case we can't fetch the Title from a linksource, you can set it manually:```{% preview "Some Article" http://example.com/some-article.html %}```
Feel free to send a pull-request!