jekyll-lenciel-theme 1.0.24 → 1.0.29

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/assets/javascripts/Valine.min.js +11 -6
  3. data/assets/javascripts/app.js +0 -1
  4. data/assets/stylesheets/screen.css +1 -1
  5. data/index.html +1 -11
  6. data/plugins/blockquote.rb +82 -0
  7. data/plugins/category_feed.xml +26 -0
  8. data/plugins/category_generator.rb +177 -0
  9. data/plugins/category_index.html +17 -0
  10. data/plugins/img-tag-transform.rb +5 -0
  11. data/plugins/margin_note.rb +17 -0
  12. data/plugins/raw.rb +15 -0
  13. data/plugins/sidenote.rb +17 -0
  14. data/plugins/titlecase.rb +36 -0
  15. data/plugins/video_tag.rb +56 -0
  16. metadata +35 -43
  17. data/_includes/after_footer.html +0 -3
  18. data/_includes/archive_post.html +0 -8
  19. data/_includes/article.html +0 -38
  20. data/_includes/asides/recent_posts.html +0 -10
  21. data/_includes/custom/after_footer.html +0 -57
  22. data/_includes/custom/asides/about.html +0 -4
  23. data/_includes/custom/baidu_analytics.html +0 -0
  24. data/_includes/custom/footer.html +0 -11
  25. data/_includes/custom/head.html +0 -49
  26. data/_includes/custom/header.html +0 -6
  27. data/_includes/custom/navigation.html +0 -5
  28. data/_includes/custom/post/sharing.html +0 -35
  29. data/_includes/disqus.html +0 -21
  30. data/_includes/facebook_like.html +0 -10
  31. data/_includes/footer.html +0 -1
  32. data/_includes/google_analytics.html +0 -12
  33. data/_includes/google_plus_one.html +0 -9
  34. data/_includes/head.html +0 -30
  35. data/_includes/header.html +0 -1
  36. data/_includes/navigation.html +0 -15
  37. data/_includes/post/author.html +0 -8
  38. data/_includes/post/categories.html +0 -10
  39. data/_includes/post/date.html +0 -5
  40. data/_includes/post/disqus_thread.html +0 -1
  41. data/_includes/post/sharing.html +0 -23
  42. data/_includes/yarchive.html +0 -10
  43. data/_layouts/default.html +0 -18
  44. data/_layouts/home.html +0 -22
  45. data/_layouts/page.html +0 -49
  46. data/_layouts/post.html +0 -45
  47. data/_layouts/yarchive.html +0 -22
  48. data/assets/javascripts/libs/lazyload.min.js +0 -1
@@ -1,57 +0,0 @@
1
- <link rel="preload" href="{{ site.static_base }}/assets/stylesheets/screen.css" as="style"
2
- onload="this.onload=null;this.rel='stylesheet'">
3
- <link rel="stylesheet" href="{{ site.static_base }}/assets/stylesheets/screen.css">
4
-
5
- <script src="{{ site.static_base }}/assets/javascripts/app.js" defer></script>
6
-
7
- <script>
8
- (function () {
9
- window.lazyLoadOptions = {
10
- threshold: 0
11
- };
12
- })();
13
- </script>
14
- <script defer>
15
- document.addEventListener("DOMContentLoaded", (event) => {
16
- if ($('body').hasClass('no-sidebar')) {
17
- $('.sidenote').hide();
18
- $('.marginnote').hide();
19
- }
20
-
21
- if (!$('body').hasClass('sidebar-footer')) {
22
- $('#content').append('<span class="toggle-sidebar"></span>');
23
- $('.toggle-sidebar').bind('click', function (e) {
24
- e.preventDefault();
25
- if ($('body').hasClass('collapse-sidebar')) {
26
- $('body').removeClass('collapse-sidebar');
27
- $('.sidenote').show();
28
- $('.marginnote').show();
29
- } else {
30
- $('body').addClass('collapse-sidebar');
31
- $('.sidenote').hide();
32
- $('.marginnote').hide();
33
- }
34
- });
35
- }
36
- var sections = $('aside.sidebar > section');
37
- if (sections.length > 1) {
38
- sections.each(function (section, index) {
39
- if ((sections.length >= 3) && index % 3 === 0) {
40
- $(section).addClass("first");
41
- }
42
- var count = ((index + 1) % 2) ? "odd" : "even";
43
- $(section).addClass(count);
44
- });
45
- }
46
- if (sections.length >= 3) { $('aside.sidebar').addClass('thirds'); }
47
- });
48
- </script>
49
- <script>
50
- new Valine({
51
- placeholder: '说点儿什么...',
52
- el: '#vcomments',
53
- visitor: true,
54
- appId: '{{ site.comment_appId }}',
55
- appKey: '{{ site.comment_appKey }}'
56
- })
57
- </script>
@@ -1,4 +0,0 @@
1
- <section>
2
- <h1>About Me</h1>
3
- <p>A little something about me.</p>
4
- </section>
File without changes
@@ -1,11 +0,0 @@
1
- <p>
2
- Blog theme:
3
- <a href="https://github.com/lenciel/jekyll-lenciel-theme"
4
- >jekyll-lenciel-theme</a
5
- >
6
- <span class="theme-version"
7
- ><a href="https://beian.miit.gov.cn/">{{ site.beian }}</a
8
- >&nbsp;&nbsp;&nbsp;&nbsp;Copyright &copy; 2004-{{ site.time | date: "%Y" }}
9
- by <a href="mailto:{{ site.email }}">{{ site.author }}</a></span
10
- >
11
- </p>
@@ -1,49 +0,0 @@
1
- {% if page.title %}<meta property="og:title" content="{{ page.title }}" /><meta
2
- itemprop="name"
3
- content="{{ page.title }}"
4
- />{% endif %}
5
- <meta property="og:type" content="article" />
6
- <meta property="og:url" content="{{ canonical }}" />
7
- <meta
8
- property="og:description"
9
- content="{{ description | strip_html | condense_spaces | truncate:150 }}"
10
- />
11
- {% if page.ogimage %}<meta
12
- property="og:image"
13
- content="{{ page.ogimage }}"
14
- /><meta itemprop="image" content="{{ page.ogimage }}" />{% endif %}
15
- <meta property="og:site_name" content="{{ site.url }}" />
16
- <meta property="article:author" content="http://lenciel.com" />
17
- {% if page.date %}<meta
18
- property="article:published_time"
19
- content="{{ page.date }}"
20
- />{% endif %} {% capture category %}{% if page.categories %}{{ page.categories
21
- }}{% endif %}{% endcapture %} {% if page.categories %}<meta
22
- property="article:section"
23
- content="{{ page.categories }}"
24
- />{% endif %} {% if page.keywords %}<meta
25
- name="keywords"
26
- content="{{ page.keywords }}"
27
- />{% for keyword in page.keywords %}<meta
28
- property="article:tag"
29
- content="{{ keyword | replace: ',', '' }}"
30
- />{% endfor %}{% endif %} {% if page.mathjax %}
31
- <script
32
- type="text/javascript"
33
- src="https://cdn.bootcss.com/mathjax/2.7.7/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
34
- ></script>
35
- {% endif %}
36
-
37
- <script src="{{ site.static_base }}/assets/javascripts/Valine.min.js"></script>
38
- <script
39
- async
40
- defer
41
- data-website-id="57808f92-2188-4e05-bcc7-a27aa3262adf"
42
- src="https://umami.lenciel.com/umami.js"
43
- ></script>
44
- <!-- Prefetch DNS for external assets -->
45
- <link href="https://cdn.lenciel.com" rel="preconnect" crossorigin />
46
- <link rel="dns-prefetch" href="//stats.g.doubleclick.net" />
47
- <link rel="dns-prefetch" href="//www.google-analytics.com" />
48
- <link rel="dns-prefetch" href="//cdn.lenciel.com" />
49
- <link rel="dns-prefetch" href="//cdn.bootcss.com" />
@@ -1,6 +0,0 @@
1
- <hgroup>
2
- <h1><a href="{{ root_url }}/">{{ site.title }}</a></h1>
3
- {% if site.subtitle %}
4
- <h2>{{ site.subtitle }}</h2>
5
- {% endif %}
6
- </hgroup>
@@ -1,5 +0,0 @@
1
- <ul class="main-navigation">
2
- <li><a href="{{ root_url }}/"><i class="icon-home"></i>Home</a></li>
3
- <li><a href="{{ root_url }}/archives"><i class="icon-book-alt"></i>Archives</a><span class="divider"></span></li>
4
- <li><a href="/about"><i class="icon-user"></i>About</a><span class="divider"></span></li>
5
- </ul>
@@ -1,35 +0,0 @@
1
- <div class="sharing">
2
- {% if site.twitter_tweet_button %}
3
- <a href="http://twitter.com/share" class="twitter-share-button" data-url="{{ site.url }}{{ page.url }}"
4
- data-via="{{ site.twitter_user }}" data-counturl="{{ site.url }}{{ page.url }}">Tweet</a>
5
- {% endif %}
6
- {% if site.google_plus_one %}
7
- <div class="g-plusone" data-size="{{ site.google_plus_one_size }}"></div>
8
- {% endif %}
9
- {% if site.facebook_like %}
10
- <div class="fb-like" data-send="true" data-width="450" data-show-faces="false"></div>
11
- {% endif %}
12
- {% if site.weibo_share_button %}
13
- <script type="text/javascript" charset="utf-8">
14
- (function(){
15
- var _w = 72 , _h = 16;
16
- var param = {
17
- url:location.href,
18
- type:'3',
19
- count:'1', /**是否显示分享数,1显示(可选)*/
20
- appkey:'', /**您申请的应用appkey,显示分享来源(可选)*/
21
- title:"{{ site.url }}{{ page.url }}",/**分享的文字内容(可选,默认为所在页面的title)*/
22
- pic:'', /**分享图片的路径(可选)*/
23
- ralateUid:"{{ site.weibo_user }}", /**关联用户的UID,分享微博会@该用户(可选)*/
24
- language:'zh_cn', /**设置语言,zh_cn|zh_tw(可选)*/
25
- rnd:new Date().valueOf()
26
- }
27
- var temp = [];
28
- for( var p in param ){
29
- temp.push(p + '=' + encodeURIComponent( param[p] || '' ) )
30
- }
31
- document.write('<iframe allowTransparency="true" frameborder="0" scrolling="no" src="http://hits.sinajs.cn/A1/weiboshare.html?' + temp.join('&') + '" width="'+ _w+'" height="'+_h+'"></iframe>')
32
- })()
33
- </script>
34
- {% endif %}
35
- </div>
@@ -1,21 +0,0 @@
1
- {% comment %} Load script if disquss comments are enabled and `page.comments` is either empty (index) or set to true {% endcomment %}
2
- {% if site.disqus_short_name and page.comments != false %}
3
- <script type="text/javascript">
4
- var disqus_shortname = '{{ site.disqus_short_name }}';
5
- {% if page.comments == true %}
6
- {% comment %} `page.comments` can be only be set to true on pages/posts, so we embed the comments here. {% endcomment %}
7
- // var disqus_developer = 1;
8
- var disqus_identifier = '{{ site.url }}{{ page.url }}';
9
- var disqus_url = '{{ site.url }}{{ page.url }}';
10
- var disqus_script = 'embed.js';
11
- {% else %}
12
- {% comment %} As `page.comments` is empty, we must be on the index page. {% endcomment %}
13
- var disqus_script = 'count.js';
14
- {% endif %}
15
- (function () {
16
- var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
17
- dsq.src = '//' + disqus_shortname + '.disqus.com/' + disqus_script;
18
- (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
19
- }());
20
- </script>
21
- {% endif %}
@@ -1,10 +0,0 @@
1
- {% if site.facebook_like %}
2
- <div id="fb-root"></div>
3
- <script>(function(d, s, id) {
4
- var js, fjs = d.getElementsByTagName(s)[0];
5
- if (d.getElementById(id)) {return;}
6
- js = d.createElement(s); js.id = id; js.async = true;
7
- js.src = "//connect.facebook.net/en_US/all.js#appId=212934732101925&xfbml=1";
8
- fjs.parentNode.insertBefore(js, fjs);
9
- }(document, 'script', 'facebook-jssdk'));</script>
10
- {% endif %}
@@ -1 +0,0 @@
1
- {% include custom/footer.html %}
@@ -1,12 +0,0 @@
1
- {% if site.google_analytics_tracking_id %}
2
- <script>
3
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
4
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
5
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
6
- })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
7
-
8
- ga('create', '{{ site.google_analytics_tracking_id }}', 'auto');
9
- ga('send', 'pageview');
10
-
11
- </script>
12
- {% endif %}
@@ -1,9 +0,0 @@
1
- {% if site.google_plus_one %}
2
- <script type="text/javascript">
3
- (function() {
4
- var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true;
5
- script.src = 'https://apis.google.com/js/plusone.js';
6
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s);
7
- })();
8
- </script>
9
- {% endif %}
data/_includes/head.html DELETED
@@ -1,30 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
3
- <!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
4
- <!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
5
- <head>
6
- <meta charset="utf-8">
7
- <title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
8
- <meta name="author" content="{{ site.author }}">
9
-
10
- {% capture description %}{% if page.description %}{{ page.description }}{% else %}{{ content | raw_content }}{% endif %}{% endcapture %}
11
- <meta name="description" content="lenciel's blog">
12
- {% if page.keywords %}<meta name="keywords" content="{{ page.keywords }}">{% endif %}
13
-
14
- <meta name="HandheldFriendly" content="True">
15
- <meta name="MobileOptimized" content="320">
16
- <meta name="viewport" content="width=device-width, initial-scale=1">
17
-
18
- {% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %}
19
- <link rel="canonical" href="{{ canonical }}">
20
- <link rel="apple-touch-icon" sizes="180x180" href="{{ site.static_base }}/apple-touch-icon.png">
21
- <link rel="icon" type="image/png" sizes="32x32" href="{{ site.static_base }}/favicon-32x32.png">
22
- <link rel="icon" type="image/png" sizes="16x16" href="{{ site.static_base }}/favicon-16x16.png">
23
- <link rel="manifest" href="{{ site.static_base }}/site.webmanifest">
24
- <link rel="mask-icon" href="{{ site.static_base }}/safari-pinned-tab.svg" color="#5bbad5">
25
- <meta name="msapplication-TileColor" content="#da532c">
26
- <meta name="theme-color" content="#ffffff">
27
- <link href="{{ site.subscribe_rss }}" rel="alternate" title="{{site.title}}" type="application/atom+xml">
28
- {% include custom/head.html %}
29
- {% include google_analytics.html %}
30
- </head>
@@ -1 +0,0 @@
1
- {% include custom/header.html %}
@@ -1,15 +0,0 @@
1
- <ul class="subscription" data-subscription="rss{% if site.subscribe_email %} email{% endif %}">
2
- <li><a href="{{ site.subscribe_rss }}" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li>
3
- {% if site.subscribe_email %}
4
- <li><a href="{{ site.subscribe_email }}" rel="subscribe-email" title="subscribe via email">Email</a></li>
5
- {% endif %}
6
- </ul>
7
- {% if site.simple_search %}
8
- <form action="{{ site.simple_search }}" method="get">
9
- <fieldset role="search">
10
- <input type="hidden" name="sitesearch" value="{{ site.url | shorthand_url }}">
11
- <input class="search" type="text" name="q" results="0" placeholder="Search"/>
12
- </fieldset>
13
- </form>
14
- {% endif %}
15
- {% include custom/navigation.html %}
@@ -1,8 +0,0 @@
1
- {% if post.author %}
2
- {% assign author = post.author %}
3
- {% elsif page.author %}
4
- {% assign author = page.author %}
5
- {% else %}
6
- {% assign author = site.author %}
7
- {% endif %}
8
- {% if author %}<span class="byline author vcard">Posted by <span class="fn">{{ author }}</span></span>{% endif %}
@@ -1,10 +0,0 @@
1
- {% capture category %}{% if post %}{{ post.categories | category_links | size }}{% else %}{{ page.categories | category_links | size }}{% endif %}{% endcapture %}
2
- {% unless category == '0' %}
3
- <span class="categories">
4
- {% if post %}
5
- {{ post.categories | category_links }}
6
- {% else %}
7
- {{ page.categories | category_links }}
8
- {% endif %}
9
- </span>
10
- {% endunless %}
@@ -1,5 +0,0 @@
1
- {% if page.date %}{% capture time %}{{ page.date_time_html }}{% endcapture %}{% endif %}
2
- {% if post.date %}{% capture time %}{{ post.date_time_html }}{% endcapture %}{% endif %}
3
-
4
- {% if page.updated %}{% capture updated %}{{ page.date_time_updated_html }}{% endcapture %}{% endif %}
5
- {% if post.updated %}{% capture updated %}{{ post.date_time_updated_html }}{% endcapture %}{% endif %}
@@ -1 +0,0 @@
1
- <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
@@ -1,23 +0,0 @@
1
- <div class="sharing">
2
- {% if site.twitter_tweet_button %}
3
- <a href="//twitter.com/share" class="twitter-share-button" data-url="{{ site.url }}{{ page.url }}" data-via="{{ site.twitter_user }}" data-counturl="{{ site.url }}{{ page.url }}" >Tweet</a>
4
- {% endif %}
5
- {% if site.google_plus_one %}
6
- <div class="g-plusone" data-size="{{ site.google_plus_one_size }}"></div>
7
- {% endif %}
8
- {% if site.facebook_like %}
9
- <div class="fb-like" data-send="true" data-width="450" data-show-faces="false"></div>
10
- {% endif %}
11
- <!-- JiaThis Button BEGIN -->
12
- <!--<div class="jiathis_style_24x24">
13
- <a class="jiathis_button_qzone"></a>
14
- <a class="jiathis_button_tsina"></a>
15
- <a class="jiathis_button_tqq"></a>
16
- <a class="jiathis_button_weixin"></a>
17
- <a class="jiathis_button_renren"></a>
18
- <a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
19
- <a class="jiathis_counter_style"></a>
20
- </div>
21
- <script type="text/javascript" src="http://v3.jiathis.com/code/jia.js" charset="utf-8"></script>-->
22
- <!-- JiaThis Button END -->
23
- </div>
@@ -1,10 +0,0 @@
1
- <h1>Archive of posts from {{ page.date | date: "%Y" }}</h1>
2
-
3
- <ul class="posts">
4
- {% for post in page.posts %}
5
- <li>
6
- <span class="post-date">{{ post.date | date: "%b %-d, %Y" }}</span>
7
- <a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a>
8
- </li>
9
- {% endfor %}
10
- </ul>
@@ -1,18 +0,0 @@
1
- {% capture root_url %}{{ site.root | strip_slash }}{% endcapture %}
2
- {% include head.html %}
3
-
4
- <body {% if page.body_id %} id="{{ page.body_id }}" {% endif %} {% if post.sidebar==false or page.sidebar==false %}
5
- class="no-sidebar" {% endif %} {% if page.sidebar=='collapse' or site.sidebar=='collapse' or page.sidenote==false %}
6
- class="collapse-sidebar sidebar-footer" {% endif %}>
7
- <header role="banner">{% include header.html %}</header>
8
- <nav role="navigation">{% include navigation.html %}</nav>
9
- <div id="main">
10
- <div id="content">
11
- {{ content | expand_urls: root_url }}
12
- </div>
13
- </div>
14
- <footer role="contentinfo">{% include footer.html %}</footer>
15
- {% include after_footer.html %}
16
- </body>
17
-
18
- </html>
data/_layouts/home.html DELETED
@@ -1,22 +0,0 @@
1
- ---
2
- layout: default
3
- ---
4
-
5
- <div class="blog-index">
6
- {% assign index = true %}
7
- {% for post in site.posts %}
8
- {% assign content = post.content %}
9
- <article>
10
- {% include article.html %}
11
- </article>
12
- {% endfor %}
13
- <div class="pagination">
14
- {% if paginator.next_page %}
15
- <a class="prev" href="{{paginator.next_page_path}}">&larr; Older</a>
16
- {% endif %}
17
- <a href="/archives">Archives</a>
18
- {% if paginator.previous_page %}
19
- <a class="next" href="{{paginator.previous_page_path}}">Newer &rarr;</a>
20
- {% endif %}
21
- </div>
22
- </div>
data/_layouts/page.html DELETED
@@ -1,49 +0,0 @@
1
- ---
2
- layout: default
3
- ---
4
-
5
- <div>
6
- <article role="article">
7
- {% if page.title %}
8
- <header>
9
- <h1 class="entry-title">{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %}
10
- </h1>
11
- {% if page.date %}<p class="meta">{% include post/date.html %}{{ time }}</p>{% endif %}
12
- </header>
13
- {% endif %}
14
- {{ content }}
15
- {% unless page.footer == false %}
16
- <footer>
17
- {% if page.date or page.author %}<p class="meta">
18
- {% if page.author %}{% include post/author.html %}{% endif %}
19
- {% include post/date.html %}{% if updated %}{{ updated }}{% else %}{{ time }}{% endif %}
20
- {% if page.categories %}{% include post/categories.html %}{% endif %}
21
- </p>{% endif %}
22
- {% unless page.sharing == false %}
23
- {% include post/sharing.html %}
24
- {% endunless %}
25
- </footer>
26
- {% endunless %}
27
- </article>
28
- {% if site.disqus_short_name and page.comments == true %}
29
- <section>
30
- <h1>Comments</h1>
31
- <div id="disqus_thread" aria-live="polite">{% include post/disqus_thread.html %}</div>
32
- </section>
33
- {% endif %}
34
- {% if site.comment_appId and page.comments == true %}
35
- <section>
36
- <h1>欢迎留言</h1>
37
- <div id="vcomments" aria-live="polite"></div>
38
- </section>
39
- {% endif %}
40
- </div>
41
- {% unless page.sidebar == false %}
42
- <aside class="sidebar">
43
- {% if site.page_asides.size %}
44
- {% include_array page_asides %}
45
- {% else %}
46
- {% include_array default_asides %}
47
- {% endif %}
48
- </aside>
49
- {% endunless %}
data/_layouts/post.html DELETED
@@ -1,45 +0,0 @@
1
- ---
2
- layout: default
3
- single: true
4
- ---
5
-
6
- <div>
7
- <article class="hentry" role="article">
8
- {% include article.html %}
9
- <footer>
10
- <p class="meta">
11
- {% include post/author.html %}
12
- {% include post/date.html %}{{ time }}{% if updated %} {{ updated }}{% endif %}
13
- {% include post/categories.html %}
14
- </p>
15
- {% unless page.sharing == false %}
16
- {% include post/sharing.html %}
17
- {% endunless %}
18
- <p class="meta">
19
- {% if page.previous.url %}
20
- <a class="basic-alignment left" href="{{page.previous.url}}"
21
- title="Previous Post: {{page.previous.title}}">&laquo; {{page.previous.title}}</a>
22
- {% endif %}
23
- {% if page.next.url %}
24
- <a class="basic-alignment right" href="{{page.next.url}}"
25
- title="Next Post: {{page.next.title}}">{{page.next.title}} &raquo;</a>
26
- {% endif %}
27
- </p>
28
- </footer>
29
- </article>
30
- {% if site.comment_appId and page.comments == true %}
31
- <section>
32
- <h1>欢迎留言</h1>
33
- <div id="vcomments" aria-live="polite"></div>
34
- </section>
35
- {% endif %}
36
- </div>
37
- {% unless page.sidebar == false %}
38
- <aside class="sidebar">
39
- {% if site.page_asides.size %}
40
- {% include_array page_asides %}
41
- {% else %}
42
- {% include_array default_asides %}
43
- {% endif %}
44
- </aside>
45
- {% endunless %}
@@ -1,22 +0,0 @@
1
- ---
2
- layout: default
3
- ---
4
- <div>
5
- <article role="article">
6
- <header>
7
- <h1 class="entry-title">Archives</h1>
8
- </header>
9
- <div id="blog-archives">
10
- {% for post in page.posts %}
11
- {% capture this_year %}{{ page.date | date: "%Y" }}{% endcapture %}
12
- {% unless year == this_year %}
13
- {% assign year = this_year %}
14
- <h2>{{ page.date | date: "%Y" }}</h2>
15
- {% endunless %}
16
- <article>
17
- {% include archive_post.html %}
18
- </article>
19
- {% endfor %}
20
- </div>
21
- </article>
22
- </div>
@@ -1 +0,0 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).LazyLoad=e()}(this,(function(){"use strict";function t(){return(t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var e="undefined"!=typeof window,n=e&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),r=e&&"IntersectionObserver"in window,a=e&&"classList"in document.createElement("p"),o={elements_selector:"img",container:n||e?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_poster:"poster",class_loading:"loading",class_loaded:"loaded",class_error:"error",load_delay:0,auto_unobserve:!0,callback_enter:null,callback_exit:null,callback_reveal:null,callback_loaded:null,callback_error:null,callback_finish:null,use_native:!1},i=function(t,e){var n,r=new t(e);try{n=new CustomEvent("LazyLoad::Initialized",{detail:{instance:r}})}catch(t){(n=document.createEvent("CustomEvent")).initCustomEvent("LazyLoad::Initialized",!1,!1,{instance:r})}window.dispatchEvent(n)},s=function(t,e){return t.getAttribute("data-"+e)},c=function(t,e,n){var r="data-"+e;null!==n?t.setAttribute(r,n):t.removeAttribute(r)},l=function(t){return"true"===s(t,"was-processed")},u=function(t,e){return c(t,"ll-timeout",e)},d=function(t){return s(t,"ll-timeout")},f=function(t){for(var e,n=[],r=0;e=t.children[r];r+=1)"SOURCE"===e.tagName&&n.push(e);return n},_=function(t,e,n){n&&t.setAttribute(e,n)},v=function(t,e){_(t,"sizes",s(t,e.data_sizes)),_(t,"srcset",s(t,e.data_srcset)),_(t,"src",s(t,e.data_src))},g={IMG:function(t,e){var n=t.parentNode;n&&"PICTURE"===n.tagName&&f(n).forEach((function(t){v(t,e)}));v(t,e)},IFRAME:function(t,e){_(t,"src",s(t,e.data_src))},VIDEO:function(t,e){f(t).forEach((function(t){_(t,"src",s(t,e.data_src))})),_(t,"poster",s(t,e.data_poster)),_(t,"src",s(t,e.data_src)),t.load()}},h=function(t,e){var n,r,a=e._settings,o=t.tagName,i=g[o];if(i)return i(t,a),e.loadingCount+=1,void(e._elements=(n=e._elements,r=t,n.filter((function(t){return t!==r}))));!function(t,e){var n=s(t,e.data_src),r=s(t,e.data_bg);n&&(t.style.backgroundImage='url("'.concat(n,'")')),r&&(t.style.backgroundImage=r)}(t,a)},m=function(t,e){a?t.classList.add(e):t.className+=(t.className?" ":"")+e},b=function(t,e){a?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\s+)"+e+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")},p=function(t,e,n,r){t&&(void 0===r?void 0===n?t(e):t(e,n):t(e,n,r))},y=function(t,e,n){t.addEventListener(e,n)},E=function(t,e,n){t.removeEventListener(e,n)},w=function(t,e,n){E(t,"load",e),E(t,"loadeddata",e),E(t,"error",n)},I=function(t,e,n){var r=n._settings,a=e?r.class_loaded:r.class_error,o=e?r.callback_loaded:r.callback_error,i=t.target;b(i,r.class_loading),m(i,a),p(o,i,n),n.loadingCount-=1,0===n._elements.length&&0===n.loadingCount&&p(r.callback_finish,n)},k=function(t,e){var n=function n(a){I(a,!0,e),w(t,n,r)},r=function r(a){I(a,!1,e),w(t,n,r)};!function(t,e,n){y(t,"load",e),y(t,"loadeddata",e),y(t,"error",n)}(t,n,r)},A=["IMG","IFRAME","VIDEO"],L=function(t,e){var n=e._observer;z(t,e),n&&e._settings.auto_unobserve&&n.unobserve(t)},z=function(t,e,n){var r=e._settings;!n&&l(t)||(A.indexOf(t.tagName)>-1&&(k(t,e),m(t,r.class_loading)),h(t,e),function(t){c(t,"was-processed","true")}(t),p(r.callback_reveal,t,e))},O=function(t){var e=d(t);e&&(clearTimeout(e),u(t,null))},N=function(t,e,n){var r=n._settings;p(r.callback_enter,t,e,n),r.load_delay?function(t,e){var n=e._settings.load_delay,r=d(t);r||(r=setTimeout((function(){L(t,e),O(t)}),n),u(t,r))}(t,n):L(t,n)},C=function(t){return!!r&&(t._observer=new IntersectionObserver((function(e){e.forEach((function(e){return function(t){return t.isIntersecting||t.intersectionRatio>0}(e)?N(e.target,e,t):function(t,e,n){var r=n._settings;p(r.callback_exit,t,e,n),r.load_delay&&O(t)}(e.target,e,t)}))}),{root:(e=t._settings).container===document?null:e.container,rootMargin:e.thresholds||e.threshold+"px"}),!0);var e},x=["IMG","IFRAME"],M=function(t){return Array.prototype.slice.call(t)},R=function(t,e){return function(t){return t.filter((function(t){return!l(t)}))}(M(t||function(t){return t.container.querySelectorAll(t.elements_selector)}(e)))},T=function(t){var e=t._settings,n=e.container.querySelectorAll("."+e.class_error);M(n).forEach((function(t){b(t,e.class_error),function(t){c(t,"was-processed",null)}(t)})),t.update()},j=function(n,r){var a;this._settings=function(e){return t({},o,e)}(n),this.loadingCount=0,C(this),this.update(r),a=this,e&&window.addEventListener("online",(function(t){T(a)}))};return j.prototype={update:function(t){var e,r=this,a=this._settings;(this._elements=R(t,a),!n&&this._observer)?(function(t){return t.use_native&&"loading"in HTMLImageElement.prototype}(a)&&((e=this)._elements.forEach((function(t){-1!==x.indexOf(t.tagName)&&(t.setAttribute("loading","lazy"),z(t,e))})),this._elements=R(t,a)),this._elements.forEach((function(t){r._observer.observe(t)}))):this.loadAll()},destroy:function(){var t=this;this._observer&&(this._elements.forEach((function(e){t._observer.unobserve(e)})),this._observer=null),this._elements=null,this._settings=null},load:function(t,e){z(t,this,e)},loadAll:function(){var t=this;this._elements.forEach((function(e){L(e,t)}))}},e&&function(t,e){if(e)if(e.length)for(var n,r=0;n=e[r];r+=1)i(t,n);else i(t,e)}(j,window.lazyLoadOptions),j}));