前言今天谈谈如何在Hexo页面嵌入豆瓣个人主页。
使用插件Butterfly主题使用hexo-butterfly-douban插件
其他非Butterfly主题使用hexo-douban插件
这两个插件的功能相同,但hexo-Butterfly-douban插件符合butterfly主题,可以配置meta、top_img、comments和aside
安装Hexo-butterfly-douban插件-在hexo博客根目录中,右键单击Git Bash,然后输入以下命令安装插件:
npminstallhexo-butterfly-douban-- savehexo-douban插件:在hexo博客根目录中右键单击Git Bash,然后输入以下命令以安装插件
NPM安装hexo-douban-- save配置以下教程使用hexo-butterfly-douban插件
将以下配置写入站点配置文件_config.yml (不是主题配置文件) :
douban :用户: { yourdoubanid } bilt in : false book : title :’thisismybooktitle’quote :’thisismybookquote’meta 3360 true commments 3360 true top 59 cdd cdn/img.jpg aside : true movie : title :’thisismymovietitle’quote :’thisismymoviequote’meta 3: true comene Amnesia-f/cdn/img.jpg aside : true game : title :’thisismygametitle’quote :’thisismygamequote’meta : true coments 3360 ts amnesia-f/cdn/img.jpg aside 3360 truetime out :100003358 www.Sina.com/:你的豆瓣xxxxx
x/”,其中'