Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
67 lines (62 sloc) 2.62 KB
extends base
block description
if page.desc
meta(name='description', content=page.desc)
else
meta(name='description', content=config.description)
block robots
if page.disallow
meta(name='robots', content='noindex,nofollow')
block title
title= page.title + ' - ' + config.SEOTitle
block content
.post
h1.post-title= page.title
.post-meta= page.date.format('ll')
if page.categories.length > 0
span= ' | '
span.category
for category in page.categories.toArray()
a(href=url_for(category.path))= category.name
if theme.duoshuo
a.ds-thread-count(data-thread-key=page.path, href=url_for(page.path) + '#comments')
if theme.disqus
a.disqus-comment-count(data-disqus-identifier=page.path, href=url_for(page.path) + '#disqus_thread')
if theme.gentie
a.ds-thread-count(class='cloud-tie-join-count', href=url_for(page.path) + '#comments')
span.join-count(style='font-size: 15px; color: #6E7173;') 0
span= ' ' + __('Discuss')
if theme.changyan
a.ds-thread-count(href=url_for(page.path) + '#SOHUCS')
span#changyan_count_unit(style='font-size: 15px; color: #6E7173;') 0
span= ' ' + __('Comment')
script(src='https://assets.changyan.sohu.com/upload/plugins/plugins.count.js', async)
if page.toc
div(class='clear')
div(id='toc' class='toc-article')
div(class='toc-title')= __('contents')
!= toc(page.content, {list_number: theme.toc_number})
.post-content
!= page.content
if theme.shareto == true
script(type='text/javascript', src=url_for(theme.js) + '/share.js' + '?v=' + theme.version, async)
a.article-share-link(data-url='#{page.permalink}', data-id='#{page._id}')= __('shareto')
include _partial/tag
include _partial/post_nav
if theme.duoshuo
div(class='ds-share flat' data-thread-key=page.path, data-title=page.title, data-url=page.permalink)
.ds-share-inline
ul.ds-share-icons-16
li(data-toggle='ds-share-icons-more')
a(class='ds-more' href='javascript:void(0);') 分享到:
li
a(class='ds-weibo' href='javascript:void(0);' data-service='weibo') 微博
li
a(class='ds-qzone' href='javascript:void(0);' data-service='qzone') QQ空间
li
a(class='ds-qqt' href='javascript:void(0);' data-service='qqt') 腾讯微博
li
a(class='ds-wechat' href='javascript:void(0);' data-service='wechat') 微信
.ds-share-icons-more
if page.comments
include _partial/comments