/hexo-douban

A simple plugin for hexo that helps us generate pages for douban books and movies.

Primary LanguageHTMLMIT LicenseMIT

hexo-douban

douban plugin for Hexo.

npm Build Status Coverage Status NPM version npm Package quality

Installation

$ npm install hexo-douban --save

Options

You should copy the following text to the bottom of _config.yml of your blog.

douban:
  user: mythsman
  book:
    title: 'This is my book title'
    quote: 'This is my book quote'
  movie:
    title: 'This is my movie title'
    quote: 'This is my movie quote'
  • user: Your douban Id . You can see it from the url of your douban homepage.For example, you should click on your "个人主页" and you can see your id from the url "https://www.douban.com/people/xxxxxx/".
  • title: Your title in that page.
  • quote: Your quote in that page.

Show

If all the above is done , you can now check http://yourblog/books and http://yourblog/movies , and you will see the result.

Menu

If all the above is done , you can add them to the _config.yml of your theme like this:

menu:
  Home: /
  Archives: /archives
  Books: /books     #This is your books page
  Movies: /movies   #This is your movies page

Screenshot

We just test the plugin in the following themes.

hexo-theme-landscape

landscape

hexo-theme-next

next

hexo-theme-yilia

yilia

hexo-theme-indigo

indigo

Online demo

books

movies

Lisense

MIT