https://github.com/tea3/hexo-tag-instagram
Embed instagram photo and movie tag plugin for Hexo.
https://github.com/tea3/hexo-tag-instagram
hexo hexo-plugin hexo-tag-instagram instagram
Last synced: 8 days ago
JSON representation
Embed instagram photo and movie tag plugin for Hexo.
- Host: GitHub
- URL: https://github.com/tea3/hexo-tag-instagram
- Owner: tea3
- License: mit
- Created: 2016-08-17T09:57:21.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-04-05T02:50:49.000Z (over 8 years ago)
- Last Synced: 2025-09-20T05:37:43.450Z (10 months ago)
- Topics: hexo, hexo-plugin, hexo-tag-instagram, instagram
- Language: JavaScript
- Size: 14.6 KB
- Stars: 24
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hexo-tag-instagram
Simply Embed Instagram photo and movie tag plugin for [Hexo](https://github.com/hexojs/hexo).
## Introduction
This is a Hexo tag plugin which allows you to simply embed Instagram photo on your blog posts.
## DEMO
- [https://photo-tea.com/p/hexo-tag-instagram/](https://photo-tea.com/p/hexo-tag-instagram/)
- [https://blog.eson.org/pub/fc959554/](https://blog.eson.org/pub/fc959554/)
## Installation
```
npm install hexo-tag-instagram --save
```
## Usage
```
{% instagram post-url %}
```
or
```
{% instagram shortcode %}
```
## Example
For example, if you want embed [this posts](https://www.instagram.com/p/BXkz1bYB1-N/) (This posts shortcode is *BXkz1bYB1-N*), please enter the following this.
```
{% instagram https://www.instagram.com/p/BXkz1bYB1-N/ %}
```
Also, the above example can coding differently.
```
{% instagram BXkz1bYB1-N %}
```
## Customization
This plugin can specify the following options.
- captioned
- width
## caption & size
You can decide whether to display the caption of posts of instagram. ( By default the caption is displayed. )
Please edit your `_config.yml` as following example.
```
# captioned: false. Hide the captions of all instagrams.
# width: set the width of all instagrams
tagInstagram:
captioned: false
width: 50%
```
Also, can customize individually by posts. please edit your `your-posts-markdown.md` as following example.
```
{% instagram false 50% https://www.instagram.com/p/BXkz1bYB1-N/ %}
```
## License
MIT
[Hexo]: http://hexo.io/