letiantian / huno

A responsible theme for Hexo
494 stars 114 forks source link

Recommend changing the readme file #2

Closed jonocosa closed 10 years ago

jonocosa commented 10 years ago

Hi, I love the template you made, but there are some small problems I run into while installing it.

First of in your installation guide you say to

git clone git://github.com/someus/huno.git themes/modernist

and then to alter the theme setting in the _config.yml file to huno.

This doesn't work because we named the theme directory to /modernist. So we have to either change the theme setting to modernist, or change the theme directory name tu huno. Is a small issue but it can lead to confusion for people who unfamiliar with hexo.

The other isio I ran into is the one who has been already closed. I got the error message because my site description was empty.

TypeError: /Users/yangjie/Developer/blog/themes/huno/layout/layout.ejs:7
   5|     <meta http-equiv="X-UA-Compatible" content="chrome=1">
   6| 
>> 7|     <%
   8|     var title = page.title;
   9|     var description = page.description || '';
   10| 

I recommend making note in the readme file so that people know the problem.

s1hon commented 10 years ago

Hi, In the blog config file, _config.yml, try to set the web property: title: xxx subtitle: xxx description: xx the 'description' property cannot be null, i think so

letiantian commented 10 years ago
git clone git://github.com/someus/huno.git themes/modernist

should be

git clone git://github.com/someus/huno.git themes/huno

modernist is the name of another theme...This is my negligence.

As opjlmi said, page.title and page.description are defined in hexo config file _config.yml