Permalink
Browse files

Merge pull request #2 from HugeTimor/master

主页会预览描述优先显示meta description
  • Loading branch information...
2 parents c8c3e4a + 11c0550 commit 558c9be84632991bf94218e1bde57f6fd5fd44eb @microud committed May 28, 2016
Showing with 5 additions and 1 deletion.
  1. +5 −1 next-mist/index.hbs
View
@@ -31,7 +31,11 @@
</div>
</header>
<div class="post-body" itemprop="articleBody">
- {{content words="32"}}
+ {{#if meta_description}}
+ {{meta_description}}
+ {{else}}
+ {{content words="32"}}
+ {{/if}}
<div class="post-more-link text-center">
<a class="btn" href="{{url}}" rel="contents">阅读全文 »</a>
</div>

0 comments on commit 558c9be

Please sign in to comment.