0.0.9 • Published 4 years ago

hexo-random-top-img v0.0.9

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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
0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago