Skip to content

Commit

Permalink
Add the feature 'ReadMore Tag' mentioned in issue #3
Browse files Browse the repository at this point in the history
  • Loading branch information
hpcslag committed Sep 23, 2017
1 parent bd69992 commit 53a1516
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 0 additions & 3 deletions _config.yml
Expand Up @@ -39,9 +39,6 @@ fb_app_id:
enabled_disqus : true
disqus_url : 'https://morgan-hexo-theme.disqus.com/embed.js'

#page setting - index excerpt (per article display length)
excerpt_length : 400

#page setting - slogan
slogan : [ "Hallo, dit is mijn blog", "嗨,這是我的博客!","안녕하세요, 제 블로그입니다.", "Hi, This is my blog!", "こんにちは、私のブログへようこそ!", "مرحبا، مرحبا بك في مدونتي" ]
slogan_random_display : false
Expand Down
6 changes: 1 addition & 5 deletions layout/index.ejs
Expand Up @@ -9,11 +9,7 @@
<!-- Articles -->
<% for(var i = 0;i < page.posts.data.length;i++){
var post = page.posts.data[i];
var content = "";
if(post.content.length > theme.excerpt_length){
content = post.content.toString();
content = content.substr(0,theme.excerpt_length).concat('...').toString();
}
var content = post.excerpt;
var date = new Date(post.date);
%>
<div class="ts horizontally fitted basic segment">
Expand Down

0 comments on commit 53a1516

Please sign in to comment.