Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
225 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,10 @@ | ||
<div class="container container-fluid"> | ||
<div class="row"> | ||
<div class="{{theme.layout.index.main}}"> | ||
{% if is_home() %} | ||
{{ partial('post/index') }} | ||
{% elseif is_archive() || is_category() || is_tag() %} | ||
{{ partial('post/archive') }} | ||
{% elseif is_post() %} | ||
{% set show_toc = theme.toc.post || page.toc %} | ||
{{ partial('post/post', {post: page}) }} | ||
{% endif %} | ||
</div> | ||
<!-- aside --> | ||
<div class="{{theme.layout.index.widgets}}"> | ||
<aside> | ||
{%- if show_toc %} | ||
<!-- toc --> | ||
{% else %} | ||
{% for widget in theme.post_widgets %} | ||
{{ partial('post/widget_' + widget) }} | ||
{% endfor %} | ||
{%- endif %} | ||
</aside> | ||
</div> | ||
</div> | ||
</div> | ||
<!--多说js加载开始,一个页面只需要加载一次 --> | ||
<script type="text/javascript"> | ||
var duoshuoQuery = {short_name:"{{theme.comments.duoshuo.short_name}}"}; | ||
(function() { | ||
var ds = document.createElement('script'); | ||
ds.type = 'text/javascript';ds.async = true; | ||
ds.src = 'http://static.duoshuo.com/embed.js'; | ||
ds.charset = 'UTF-8'; | ||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ds); | ||
})(); | ||
</script> | ||
<!--多说js加载结束,一个页面只需要加载一次 --> | ||
{%- extends 'post.swig' %} | ||
{%- block page-widget %} | ||
{%- for widget in theme.post_widgets %} | ||
{{ partial('post/widget_' + widget) }} | ||
{%- endfor %} | ||
{%- endblock %} | ||
|
||
{%- block page-suffix %} | ||
{% parent %} | ||
{%- endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,4 +42,4 @@ | |
{{ partial('partial/baidu_search_script') }} | ||
{{ partial('partial/lc') }} | ||
</body> | ||
</html> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,19 @@ | ||
<article class="article post" itemscope="itemscope" itemtype="http://schema.org/Article"> | ||
<header class="article-header"> | ||
<div class="page-path"><span class="post-category">{{ page_path(post)}}</span></div> | ||
{%- extends '../page/article.swig' %} | ||
{%- block article-header %} | ||
<div class="page-path"><span class="post-category">{{ page_path(page)}}</span></div> | ||
<div class="divider"></div> | ||
{%- if is_post() %} | ||
<h1 class="article-title" itemprop="name">{{ post.title }}</h1> | ||
{%- else %} | ||
<h1> | ||
<a href="{{ url_for_lang(post.path) }}" class="article-title" itemprop="name headline">{{ post.title }}</a> | ||
</h1> | ||
{%- endif %} | ||
<h1 class="article-title" itemprop="name headline">{{ post.title }}</h1> | ||
<div class="post-header clearfix"> | ||
<span class="post-date"><span class="hidden-xs icon nova-calendar">{{__('page.written_on')}}</span> | ||
<time datetime="{{ date_xml(post.date) }}" itemprop="datePublished">{{ time_tag(post.date) }}</time> | ||
<time datetime="{{ date_xml(page.date) }}" itemprop="datePublished">{{ time_tag(page.date) }}</time> | ||
</span> | ||
{{ post_tags(post) }} | ||
<span class="post-share"> | ||
<a href="#share" class="icon nova-share"><span class="hidden-xs">{{__('sns.share')}}</span><span class="jiathis_counter_style"></span></a> | ||
<a href="#comment" class="icon nova-bubbles"><span class="ds-thread-count" data-thread-key="{{page_uid()}}"></span><!-- <span class="hidden-xs">{{__('sns.comment')}}</span> --></a> | ||
<a href="#like" class="icon nova-heart2-full"><span class="count"></span><span class="hidden-xs">{{__('sns.like')}}</span></a> | ||
<a href="#" class="icon nova-eye"><span class="count"></span><span class="hidden-xs">{{__('article.views')}}</span></a> | ||
<a href="#" class="icon nova-eye"><span class="count lc-count"></span><span class="hidden-xs">{{__('article.views')}}</span></a> | ||
</span> | ||
</div> | ||
<div class="divider"></div> | ||
</header> | ||
<div class="article-content" itemprop="articleBody" id="post-content"> | ||
{{ post.content }} | ||
</div> | ||
<footer class="article-footer"> | ||
<time class="article-footer-updated" datetime="{{ date_xml(page.updated) }}" itemprop="dateModified"> | ||
{{__('page.last_updated', '') }} <span class="{%- if page_new() %}red-text{%- endif %}">{{date(page.updated)}}</span> | ||
</time> | ||
{{ partial('../partial/share_jiathis_footer') }} | ||
</footer> | ||
<span itemprop="author publisher" itemscope="itemscope" itemtype="http://schema.org/Organization"> | ||
<meta content="{{ config.url }}" itemprop="url"> | ||
<meta content="{{__('site.title')}}" itemprop="name"> | ||
<meta content="/image/logo.png" itemprop="logo"> | ||
</span> | ||
</article> | ||
<div> | ||
<nav>{{ nova_paginator2({show_name: true}) }}</nav> | ||
{{ partial('../partial/donate') }} | ||
{{ partial('../partial/comment') }} | ||
</div> | ||
{%- endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.