xiangming / landscape-plus

针对中国大陆地区对hexo官方主题landscape进行优化。
http://xiangming.github.io/landscape-plus/
MIT License
508 stars 107 forks source link

add links false #118

Closed fowse42 closed 7 years ago

fowse42 commented 7 years ago

I use Hexo landscape

  1. add as QA to landscape _config.yml,the Sidebar did not appear links
  2. modify the _config.yml of themes in the same way, when generate there is a "WARN Partial _widget/links does not exist. (in _partial/sidebar.ejs)"
  3. is there any way to add links?PL tell me the details

已解决如下:

1、在themes/landscape/layout/_widget中新建名为links.ejs的文件,编辑内容如下:

<div class="widget tag"> 
   <h3 class="title">友情链接</h3> 
   <ul class="entry"> 
    <li><a href="http://www.xxx.com" title="xyz">xxx</a></li> 
   </ul> 
</div>

2、在themes/landscape/_config.yml中,添加如下:

widgets:
- links