Closed lxg1208 closed 7 years ago
你好,我按照文档试了几次,各种配置都修改过了,但是不是渲染成下面这样就是空白页。能否直接来一个配置好的博客项目demo,谢谢。
extends base - var current_title = page.title || tag.name || category.name || site.title block title if config.subtitle title= config.title + ' | ' + config.subtitle else title= config.title block content for post in page.posts.toArray() .post h1.post-title include _partial/helpers a(href=url_for(post.path)) +title(post) .post-meta= post.date.format(config.date_format) if theme.duoshuo a.ds-thread-count(data-thread-key=post.path, href=url_for(post.path) + '#comments') if theme.disqus a.disqus-comment-count(data-disqus-identifier=post.path, href=url_for(post.path) + '#disqus_thread') if theme.gentie a.ds-thread-count(class='cloud-tie-join-count', href=url_for(post.path) + '#comments') span.join-count(lang='join-count' style='margin: 0 3px 0 1px;' data-url='#{config.url}#{url_for(post.path)}') 0 span= ' ' + __('Discuss') if post.description .post-content != post.description else if post.excerpt .post-content != post.excerpt else if post.content - var br = 0 - for (var i = 0; i < 5; ++i) { - br = post.content.indexOf('\n',br+1) if br<0 - break if br >150 - break - } if br < 0 .post-content != post.content else .post-content != post.content.substring(0, br) p(class='readmore') a(href=url_for(post.path))= __('Readmore') include _partial/paginator if theme.disqus script(id='dsq-count-scr', src='//#{theme.disqus}.disqus.com/count.js', async) if theme.gentie script. var yunModuleEnv = true; script(src='//img1.cache.netease.com/f2e/tie/yun/sdk/loader.js') script. var yunTieProductKey = '#{theme.gentie}'; Tie.loader('aHR0cHM6Ly9hcGkuZ2VudGllLjE2My5jb20vZXh0ZW5kL2xpc3Rfam9pbl9zY3JpcHQuaHRtbA==', true);
see #272
你好,我按照文档试了几次,各种配置都修改过了,但是不是渲染成下面这样就是空白页。能否直接来一个配置好的博客项目demo,谢谢。