0.0.9 • Published 4 years ago
hexo-random-top-img v0.0.9
hexo-random-top-img
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