hexo-random-top-img

0.0.9 • Public • Published

hexo-random-top-img

npmGitHub package.json versionGitHub package.json version (branch)

Get a random image for top img.

Install

$ npm install hexo-random-top-img --save

or

$ yarn add hexo-random-top-img

Use

If you use the theme, its top_img format is as follows, you can use directly

title: Hello World
top_img: https://via.placeholder.com/1600x900.png?text=Your+Image+Url

or you can put your custom key in _config.yml

title: Hello World
img: https://via.placeholder.com/1600x900.png?text=Your+Image+Url

_config.yml

random_top_img:
  enable: true
  # save: true
  size: 1600x900 # size
  # custom_key: img  # custom key
  keywords: sky, cloud # keywords
  ignore: # ingore page
    - tags
    - categories
    - about

optional

if you want to save the images,uncomment save,and images will be save to source/img/ directory.its top img format will be as follows

title: Hello World
top_img: /img/img.jpeg

Readme

Keywords

Package Sidebar

Install

npm i hexo-random-top-img

Weekly Downloads

0

Version

0.0.9

License

MIT

Unpacked Size

4.74 kB

Total Files

5

Last publish

Collaborators

  • ironz