jekyll-theme-h2o-ac 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_config.yml +2 -2
- data/_includes/analytics.html +3 -3
- data/_includes/head.html +4 -3
- data/_includes/pageNav.html +2 -2
- data/_includes/post-head.html +4 -3
- data/_layouts/default.html +2 -2
- data/assets/js/index.min.js +1 -1
- metadata +3 -4
- data/blog/search.json +0 -13
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3b07e454038e7bc395b4512513c1d351b1a910a3ed9161b0ecd18d127f8d8434
|
|
4
|
+
data.tar.gz: 4801248dacbf089706ba4d8be7aa2c2dd93718401336e7a9d44cb6039c8acfe3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: de68bf539aad5fb55ab1eb4a81a3f139f890fc796a43dbcb5a0ef685b6dfdddaac2c7849539ceb853ced496ac16a87dede9c1392caced8a45c41cb15a1205162
|
|
7
|
+
data.tar.gz: 243b8b1b26275c59382656ef907d12c835045078b2dd3138db02e7ba05c2b6297c9b008c1921fa86fe38c4547d6bea27767238ccea606e4642a7afbe8e3daa38
|
data/_config.yml
CHANGED
|
@@ -82,11 +82,11 @@ cclicense: true
|
|
|
82
82
|
|
|
83
83
|
# CNZZ Analytics
|
|
84
84
|
# cnzz: 1234567891
|
|
85
|
-
cnzz:
|
|
85
|
+
cnzz:
|
|
86
86
|
|
|
87
87
|
# Google Analytics
|
|
88
88
|
# google_analytics: UA-XXXXXXXXX-X
|
|
89
|
-
google_analytics:
|
|
89
|
+
google_analytics:
|
|
90
90
|
|
|
91
91
|
# Tags 设置标签
|
|
92
92
|
recommend-tags: true # whether or not display recommend-tags on the sidebar
|
data/_includes/analytics.html
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{% if site.google_analytics %}
|
|
2
2
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
|
3
|
-
<script async src="https://www.googletagmanager.com/gtag/js?id={{
|
|
3
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{google_analytics}}"></script>
|
|
4
4
|
<script>
|
|
5
5
|
window.dataLayer = window.dataLayer || [];
|
|
6
6
|
function gtag(){dataLayer.push(arguments);}
|
|
7
7
|
gtag('js', new Date());
|
|
8
8
|
|
|
9
|
-
gtag('config', '{{
|
|
9
|
+
gtag('config', '{{google_analytics}}');
|
|
10
10
|
</script>
|
|
11
|
-
{% endif %}
|
|
11
|
+
{% endif %}
|
data/_includes/head.html
CHANGED
|
@@ -9,13 +9,14 @@
|
|
|
9
9
|
<meta property="og:title" content="{% if page.title %}{{ page.title }} - {{ site.title }}{% else %}{{ site.title }}{% endif %}">
|
|
10
10
|
<meta property="og:type" content="website">
|
|
11
11
|
<meta property="og:url" content="{{ page.url | prepend: site.url }}">
|
|
12
|
+
<meta property="og:baseurl" content="{{ site.baseurl }}">
|
|
12
13
|
<meta property="og:description" content="{{ site.description }}">
|
|
13
14
|
<meta property="og:site_name" content="{{ site.title }}">
|
|
14
15
|
<link rel="Shortcut Icon" href="{{ site.favicon | prepend: site.baseurl }}">
|
|
15
16
|
<link rel="bookmark" href="{{ site.favicon | prepend: site.baseurl }}" type="image/x-icon" />
|
|
16
17
|
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/normalize.min.css">
|
|
17
|
-
<link rel="stylesheet" href="{{ "/assets/css/plugins.min.css" |
|
|
18
|
-
<link rel="preload" href="{{ "/assets/fonts/Merriweather-Regular.ttf" |
|
|
19
|
-
<link rel="stylesheet" href="{{ "/assets/css/app.min.css" |
|
|
18
|
+
<link rel="stylesheet" href="{{ "/assets/css/plugins.min.css" | prepend: site.baseurl }}">
|
|
19
|
+
<link rel="preload" href="{{ "/assets/fonts/Merriweather-Regular.ttf" | prepend: site.baseurl }}" as="font" crossorigin="anonymous">
|
|
20
|
+
<link rel="stylesheet" href="{{ "/assets/css/app.min.css" | prepend: site.baseurl }}">
|
|
20
21
|
<script src="//cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
|
|
21
22
|
</head>
|
data/_includes/pageNav.html
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<nav class="pagination">
|
|
2
2
|
<input type="hidden" id="total_pages" value="{{ paginator.total_pages }}">
|
|
3
3
|
<input type="hidden" id="current_pages" value="{{ paginator.page }}">
|
|
4
|
-
<input type="hidden" id="base_url" value="{{ "/blog/" |
|
|
4
|
+
<input type="hidden" id="base_url" value="{{ "/blog/" | prepend: site.baseurl }}">
|
|
5
5
|
<div class="page-links">
|
|
6
6
|
{% if paginator.previous_page %}
|
|
7
7
|
{% if paginator.previous_page == 1 %}
|
|
8
|
-
<a href="{{ "/blog/" |
|
|
8
|
+
<a href="{{ "/blog/" | prepend: site.baseurl }}/index.html" class="page-link" title="Previous Page">«</a>
|
|
9
9
|
{% else %}
|
|
10
10
|
<a href="{{ site.baseurl }}/blog/page{{ paginator.previous_page }}/index.html" class="page-link" title="Previous Page">«</a>
|
|
11
11
|
{% endif %}
|
data/_includes/post-head.html
CHANGED
|
@@ -9,15 +9,16 @@
|
|
|
9
9
|
<meta property="og:title" content="{% if page.title %}{{ page.title }} - {{ site.title }}{% else %}{{ site.title }}{% endif %}">
|
|
10
10
|
<meta property="og:type" content="website">
|
|
11
11
|
<meta property="og:url" content="{{ page.url | prepend: site.url }}">
|
|
12
|
+
<meta property="og:baseurl" content="{{ site.baseurl }}">
|
|
12
13
|
<meta property="og:description" content="{{ site.description }}">
|
|
13
14
|
<meta property="og:site_name" content="{{ site.title }}">
|
|
14
15
|
<link rel="Shortcut Icon" href="{{ site.favicon | prepend: site.baseurl }}">
|
|
15
16
|
<link rel="bookmark" href="{{ site.favicon | prepend: site.baseurl }}" type="image/x-icon" />
|
|
16
17
|
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/normalize.min.css">
|
|
17
18
|
<link rel="stylesheet" href="//at.alicdn.com/t/font_roc50gemkxpw4s4i.css">
|
|
18
|
-
<link rel="stylesheet" href="{{ "/assets/css/plugins.min.css" |
|
|
19
|
-
<link rel="preload" href="{{ "/assets/fonts/Merriweather-Regular.ttf" |
|
|
20
|
-
<link rel="stylesheet" href="{{ "/assets/css/app.min.css" |
|
|
19
|
+
<link rel="stylesheet" href="{{ "/assets/css/plugins.min.css" | prepend: site.baseurl }}">
|
|
20
|
+
<link rel="preload" href="{{ "/assets/fonts/Merriweather-Regular.ttf" | prepend: site.baseurl }}" as="font" crossorigin="anonymous">
|
|
21
|
+
<link rel="stylesheet" href="{{ "/assets/css/app.min.css" | prepend: site.baseurl }}">
|
|
21
22
|
<!-- <link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css"> -->
|
|
22
23
|
<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css" />
|
|
23
24
|
<script src="//cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
|
data/_layouts/default.html
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
{{ content }}
|
|
11
11
|
</div>
|
|
12
12
|
<script src="//cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
|
|
13
|
-
<script src="{{ "/assets/js/prism.js" |
|
|
14
|
-
<script src="{{ "/assets/js/index.min.js" |
|
|
13
|
+
<script src="{{ "/assets/js/prism.js" | prepend: site.baseurl }}"></script>
|
|
14
|
+
<script src="{{ "/assets/js/index.min.js" | prepend: site.baseurl }}"></script>
|
|
15
15
|
</body>
|
|
16
16
|
</html>
|
data/assets/js/index.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
$(document).ready(function(){var t,o,n,s,r,c,e,a,i=$(".g-nav");function
|
|
1
|
+
$(document).ready(function(){var t,o,n,s,r,c,e,a,i=$(".g-nav"),l=$("meta[property='og:baseurl']").attr("content");function h(){var t,o,n,e=$("#search_input"),a=$(".search_result");e.focus(function(){$(".icon-search").css("color","#3199DB"),a.show()}),e.keyup((t=this.autoComplete,o=o||120,function(){var e=this,a=arguments;clearTimeout(n),n=setTimeout(function(){t.apply(e,a)},o)})),$(document).click(function(e){"search_input"!==e.target.id&&"search_result"!==e.target.className&&"search_item"!==e.target.className&&($(".icon-search").css("color","#CAD3DC"),a.hide())})}$("#menu-toggle").on("click",function(e){i.slideToggle(200),$(document).on("click",function(){i.slideUp(200)}),e.stopPropagation()}),i.on("click",function(e){e.stopPropagation()}),695<$(window).width()&&(t=$(".g-header"),o=t.outerHeight(),n=$(".g-logo"),s=i.find("a"),r=$(".g-banner").attr("data-theme"),c=$(document).scrollTop(),$(document).scroll(function(){var e=$(this).scrollTop(),a="nav-"+r;o<e?(3*o<e&&t.addClass("headerUp"),t.css({"background-color":"rgba(255, 255, 255, .98)","box-shadow":"0 1px 12px rgba(0, 0, 0, .08)"}),n.css({background:"url("+l+"/assets/icons/logo_"+r+".svg) no-repeat center","background-size":"100% 100%"}),s.css("color","#666"),i.addClass(a)):(t.removeClass("headerUp"),t.css({"background-color":"transparent","box-shadow":"none"}),n.css({background:"url("+l+"/assets/icons/logo.svg) no-repeat center","background-size":"100% 100%"}),s.css("color","#fff"),i.removeClass(a)),e<c?t.addClass("headerDown"):t.removeClass("headerDown"),c=e})),$(".read-next-item section").each(function(){var e=$(this).height(),a=$(".read-next-item").height();$(this).css("margin-top",(a-e)/2+"px"),$(this).fadeIn()}),$(".read-next-item img").each(function(){var e,a,t,o,n,s;e=$(this),a=$(".read-next-item"),t=e.width(),o=a.width(),n=e.height(),s=a.height(),n<s?(e.css({width:"auto",height:"100%"}),t=e.width(),o=a.width(),e.css("margin-left","-"+(t-o)/2+"px")):e.css("margin-top",(s-n)/2+"px"),e.fadeIn()}),function(){for(var e=parseInt($("#total_pages").val()),a=parseInt($("#current_pages").val()),t=$("#base_url").val(),o="",n=a-3;n<a;n++)0<n&&1!==n?o+='<a href="'+t+"page"+n+'" class="page-link page-num">'+n+"</a>":1===n&&(o+='<a href="'+t+'" class="page-link page-num">'+n+"</a>");o+='<span class="page-link page-num active">'+a+"</span>";for(var s=a+1;s<=a+3;s++)s<=e&&(o+='<a href="'+t+"page"+s+'" class="page-link page-num">'+s+"</a>");$("#page-link-container").html(o)}(),h.prototype.autoComplete=function(){var r=this.value.toLowerCase();r.length?$(".icon-search").css("color","#3199DB"):$(".icon-search").css("color","#CAD3DC"),$.getJSON(l+"/search.json").done(function(e){var a,t="";for(a in e){var o=e[a],n=o.title,s=o.tags;o.url;""!==r&&0<=(n+s).toLowerCase().indexOf(r)&&(t+='<a class="search_item" href="'+o.url+'">'+o.title+"</a>")}$(".search_result").html(t)})},new h,"true"===$("#nm-switch").val()&&(e=$("body"),((a=(new Date).getHours())<=6||18<=a)&&e.addClass("night-mode")),$(".post-content").on("mouseup",function(e){var a,t=window.getSelection();30<=t.toString().length&&(a=t,a+="\n\n著作权归作者所有。\n商业转载请联系作者获得授权,非商业转载请注明出处。\n原文: "+location.href,$(".post-content").on("copy",function(e){(window.clipboardData||e.originalEvent.clipboardData).setData("text/plain",a),e.preventDefault()}))})});
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-theme-h2o-ac
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- zhonger
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-01-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|
|
@@ -71,7 +71,6 @@ files:
|
|
|
71
71
|
- assets/js/social-share.min.js
|
|
72
72
|
- assets/js/util.js
|
|
73
73
|
- assets/search.json
|
|
74
|
-
- blog/search.json
|
|
75
74
|
- search.json
|
|
76
75
|
homepage: https://github.com/zhonger/jekyll-theme-H2O-ac
|
|
77
76
|
licenses:
|
|
@@ -92,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
92
91
|
- !ruby/object:Gem::Version
|
|
93
92
|
version: '0'
|
|
94
93
|
requirements: []
|
|
95
|
-
rubygems_version: 3.2.
|
|
94
|
+
rubygems_version: 3.2.3
|
|
96
95
|
signing_key:
|
|
97
96
|
specification_version: 4
|
|
98
97
|
summary: A Jekyll theme for researchers and maintainers based on Jekyll and H2O theme.
|
data/blog/search.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
layout: null
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[
|
|
6
|
-
{% for post in site.posts %}
|
|
7
|
-
{
|
|
8
|
-
"title" : "{{ post.title | escape }}",
|
|
9
|
-
"tags" : "{% for tag in post.tags %}{% if forloop.rindex != 1 %}{{ tag }} {% else %}{{ tag }}{% endif %}{% endfor %}",
|
|
10
|
-
"url" : "{{ post.url | relative_url }}"
|
|
11
|
-
} {% unless forloop.last %},{% endunless %}
|
|
12
|
-
{% endfor %}
|
|
13
|
-
]
|