0.0.3 • Published 8 years ago
hexo-tag-flickr-extended v0.0.3
Intro
hexo-tag-flickr-extended is a Hexo plugin for inserting image from Flickr in Hexo posts.This plugin is based on plugin.And add http proxy support.
Installation
Run command in the hexo root directory :
npm install hexo-tag-flickr-extended --save
Usage
In _config.yml of hexo :
# Flickr API key
flickr_ext_api_key: your_flickr_api_key
# Http proxy host & port,e.g. http://127.0.0.1:1080
flickr_ext_proxy_config: your_http_server
# Cache file path & expiry time in milliseconds
flickr_ext_cache_file_path: flickr_img_cache.json
flickr_ext_cache_expires: 2592000000Then,you can insert hexo tag in markdown file like this :
{% flickrExt flickr_image_id size_suffix %} Available size suffixes :
ssmall square 75x75qlarge square 150x150tthumbnail, 100 on longest sidemsmall, 240 on longest sidensmall, 320 on longest side-medium, 500 on longest sidezmedium 640, 640 on longest sidecmedium 800, 800 on longest side†blarge, 1024 on longest side*hlarge 1600, 1600 on longest side†klarge 2048, 2048 on longest side†ooriginal image, either a jpg, gif or png, depending on source format
License
MIT