Skip to content
This repository has been archived by the owner on Jul 25, 2020. It is now read-only.

MakerGYT/hexo-tag-book

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-tag-book-douban

hexo-tag-book-douban license last-commit

NPM

A tag to display the information of Douban books in hexo post/page.

Feature

  • Rendering book information according to book ISBN
  • Responsive design

How to use

  1. Install
npm i hexo-tag-book-douban --save
  1. Import
# Hexo/source/_posts/xxx.md
{% dbook [ISBN] %}

The {% dbook %} options are shown below:

Option Default Description
ISBN required New version of ISBN, consisting of 13 pure numbers without-
width 40% component width
  1. (Optional) Config The default config:
# Hexo/_config.yml
dbook:
  enable: true # Recommended to set it to false during `hexo server` and open during `hexo generate` to reduce requests.
  proxy: https://douban.uieee.com # Current limit that everyone shares : 10000 times / 1 hour
  powered: true  

Sample:

Demo

{% dbook 4913064 40% %}

Screenshot:

Dependencies

Troubleshoot

  1. Theme-next _data/next.yml config doesn't work Issue #1

If there are other bugs, please feedback through issues or connect: me@makergyt.com

Todo

  • Support other data sources to avoid official interface offline

License

MIT License

Reference

  • hexo-tag-douban: Didn't work because official interface requires authorization.

About

A tag to display the information of Douban books in hexo post/page.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published