A-limon / pacman

Pacman is a flat and responsive design theme for Hexo.
http://yangjian.me/pacman
MIT License
548 stars 187 forks source link

作者头像没有显示怎么设置呢? #53

Open qijinzhixing opened 8 years ago

qijinzhixing commented 8 years ago

使用这个主题后,但就是作者的头像不显示,请问如何设置呢?

bianle commented 8 years ago

themes/pacman/_config.yml里这段代码

#### Author Avatar Picture
author_img_enable: true ## display author avatar picture
dataURI: false
## if the picture's format is dataURI please set the value to true,otherwise set the value to false.
## convert an image into base 64 data URIs http://websemantics.co.uk/online_tools/image_to_data_uri_convertor/ .
author_img_data: ''
## paste the dataURI in ONE LINE and included it by ''.
author_img: https://avatars.githubusercontent.com/bianle ## size:220px*220px.
## if the picture's format is `.png` or `.jpg`  instead of dataURI,you should set the `dataURI` value to false.
qijinzhixing commented 8 years ago

恩恩,十分感谢您啦!通过您的方法解决了我的问题!是图片路径的问题!

Eliothu commented 8 years ago

有一个问题 你的theme中得img有一张头像图片,不能加载本地图片, 只能加载url么

bianle commented 8 years ago

@Eliothu _config.yml

author_img: ../img/author.jpg

或:

author_img: /img/author.jpg