/hexo-tag-instagram

Embed instagram photo and movie tag plugin for Hexo.

Primary LanguageJavaScriptMIT LicenseMIT

hexo-tag-instagram

Simply Embed Instagram photo and movie tag plugin for Hexo.

Introduction

This is a Hexo tag plugin which allows you to simply embed Instagram photo on your blog posts.

DEMO

https://tea3.github.io/p/hexo-tag-instagram/

Installation

npm install hexo-tag-instagram --save

Usage

{% instagram post-url %}

or

{% instagram shortcode %}

Example

For example, if you want embed this posts (This posts shortcode is 8ppwIyE6lU), please enter the following this.

{% instagram https://www.instagram.com/p/8ppwIyE6lU/ %}

Also, the above example can coding differently.

{% instagram 8ppwIyE6lU %}

Option

This plugin can specify the following options.

Caption option

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.

# Hide the captions of all instagrams.
tagInstagram:
  captioned: false

Also, can customize individually by posts. please edit your your-posts-markdown.md as following example.

{% instagram false https://www.instagram.com/p/8ppwIyE6lU/ %}

License

MIT