Permalink
Browse files

index page will show meta description instead of post content overvie…

…w if post has meta description
  • Loading branch information...
1 parent c8c3e4a commit 11c0550798725361884fc4a550b51f526312a6f5 @HugeTimor HugeTimor committed May 27, 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 11c0550

Please sign in to comment.