jekyll-theme-chirpy 3.3.1 → 3.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/head.html +4 -3
- data/_sass/addon/module.scss +6 -6
- data/_sass/jekyll-theme-chirpy.scss +1 -1
- data/assets/js/dist/categories.min.js +1 -1
- data/assets/js/dist/home.min.js +1 -1
- data/assets/js/dist/page.min.js +1 -1
- data/assets/js/dist/post.min.js +1 -1
- data/assets/js/dist/pvreport.min.js +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4888248fd8e1c10a3febf1ba4bc3baa6764e3c04e9005be0a9ff294a1c50dddb
|
4
|
+
data.tar.gz: ee4e903c0fbdcafab43c981afa928475dcb64df073184c250a37d1bb7bb43c46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1cbee98a3a2754508c3d4ef1545ddf9de5769fc23f7499dd4c9ce9becf544f14d532b48fb24563d93624e06be204f6f9013504d277637c45823d5ac017f913d
|
7
|
+
data.tar.gz: e3906e145f72bb7a3e605f4e398b9d9f5ed9a30af3dcc3495ba12db2317e8fc59d530a19894c37951e1f058541710037c65a58e8f48502807b265ceeadb10021
|
data/_includes/head.html
CHANGED
@@ -7,19 +7,20 @@
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
8
8
|
|
9
9
|
{% if page.layout == 'home' or page.layout == 'post' %}
|
10
|
-
<meta name="pv-cache-enabled" content="{{ site.google_analytics.pv.enabled }}">
|
11
10
|
|
12
11
|
{% if site.google_analytics.pv.enabled %}
|
12
|
+
|
13
13
|
{% if site.google_analytics.pv.proxy_endpoint != ''
|
14
|
-
|
14
|
+
and site.google_analytics.pv.proxy_endpoint %}
|
15
15
|
<meta name="pv-proxy-endpoint" content="{{ site.google_analytics.pv.proxy_endpoint }}">
|
16
16
|
{% endif %}
|
17
17
|
|
18
18
|
{% if site.google_analytics.pv.cache %}
|
19
|
-
<meta name="pv-cache-
|
19
|
+
<meta name="pv-cache-path" content="{{ '/assets/js/data/pageviews.json' | relative_url }}">
|
20
20
|
{% endif %}
|
21
21
|
|
22
22
|
{% endif %}
|
23
|
+
|
23
24
|
{% endif %}
|
24
25
|
|
25
26
|
{% seo title=false %}
|
data/_sass/addon/module.scss
CHANGED
@@ -4,6 +4,12 @@
|
|
4
4
|
|
5
5
|
/* ---------- scss placeholder --------- */
|
6
6
|
|
7
|
+
%heading {
|
8
|
+
color: var(--heading-color);
|
9
|
+
font-weight: 400;
|
10
|
+
font-family: 'Lato', 'Microsoft Yahei', sans-serif;
|
11
|
+
}
|
12
|
+
|
7
13
|
%tag-hover {
|
8
14
|
background: var(--tag-hover);
|
9
15
|
transition: background 0.35s ease-in-out;
|
@@ -33,12 +39,6 @@
|
|
33
39
|
border-bottom: none;
|
34
40
|
}
|
35
41
|
|
36
|
-
%heading {
|
37
|
-
color: var(--heading-color);
|
38
|
-
font-weight: 400;
|
39
|
-
font-family: 'Lato', 'Microsoft Yahei', sans-serif;
|
40
|
-
}
|
41
|
-
|
42
42
|
%section {
|
43
43
|
#post-wrapper & {
|
44
44
|
line-height: 1.2;
|
data/assets/js/dist/home.min.js
CHANGED
data/assets/js/dist/page.min.js
CHANGED
data/assets/js/dist/post.min.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Chirpy v3.3.
|
2
|
+
* Chirpy v3.3.2 (https://github.com/cotes2020/jekyll-theme-chirpy/)
|
3
3
|
* © 2019 Cotes Chung
|
4
4
|
* MIT Licensed
|
5
5
|
*/
|
6
|
-
const getInitStatus=function(){let
|
6
|
+
const getInitStatus=function(){let e=!1;return()=>{var t=e;return e=e||!0,t}}(),PvOpts={getProxyEndpoint(){return $("meta[name=pv-proxy-endpoint]").attr("content")},getLocalData(){return $("meta[name=pv-cache-path]").attr("content")},hasLocalData(){var t=PvOpts.getLocalData();return void 0!==t&&!1!==t}},PvData=function(){const e="pv",a="pv_created_date",r="pv_source",n={ORIGIN:"origin",PROXY:"proxy"};function o(t){return localStorage.getItem(t)}function i(t,e){localStorage.setItem(t,e)}return{getData(){return JSON.parse(localStorage.getItem(e))},saveOriginCache(t){i(e,t),i(r,n.ORIGIN),i(a,(new Date).toJSON())},saveProxyCache(t){i(e,t),i(r,n.PROXY),i(a,(new Date).toJSON())},isFromOrigin(){return o(r)===n.ORIGIN},isFromProxy(){return o(r)===n.PROXY},isExpired(){if(PvData.isFromOrigin()){let t=new Date(o(a));return t.setDate(t.getDate()+1),Date.now()>=t.getTime()}if(PvData.isFromProxy()){let t=new Date(o(a));return t.setHours(t.getHours()+1),Date.now()>=t.getTime()}return!1},getAllPageviews(){return PvData.getData().totalsForAllResults["ga:pageviews"]},newerThan(t){return PvData.getAllPageviews()>t.totalsForAllResults["ga:pageviews"]},inspectKeys(){null!==localStorage.getItem(e)&&null!==localStorage.getItem(r)&&null!==localStorage.getItem(a)||localStorage.clear()}}}();function countUp(e,a,r){if(e<a){let t=new CountUp(r,e,a);t.error?console.error(t.error):t.start()}}function countPV(e,a){let r=0;if(void 0!==a)for(let t=0;t<a.length;++t)if(a[parseInt(t,10)][0]===e){r+=parseInt(a[parseInt(t,10)][1],10);break}return r}function tacklePV(t,e,a,r){let n=countPV(e,t);n=0===n?1:n,r?(r=parseInt(a.text().replace(/,/g,""),10),n>r&&countUp(r,n,a.attr("id"))):a.text((new Intl.NumberFormat).format(n))}function displayPageviews(t){if(void 0!==t){let e=getInitStatus();const a=t.rows;0<$("#post-list").length?$(".post-preview").each(function(){var t=$(this).find("a").attr("href");tacklePV(a,t,$(this).find(".pageviews"),e)}):0<$(".post").length&&(t=window.location.pathname,tacklePV(a,t,$("#pv"),e))}}function fetchProxyPageviews(){$.ajax({type:"GET",url:PvOpts.getProxyEndpoint(),dataType:"jsonp",jsonpCallback:"displayPageviews",success:(t,e,a)=>{PvData.saveProxyCache(JSON.stringify(t))},error:(t,e,a)=>{console.log("Failed to load pageviews from proxy server: "+a)}})}function fetchPageviews(t=!0,e=!1){t?fetch(PvOpts.getLocalData()).then(t=>t.json()).then(t=>{e&&PvData.newerThan(t)||(displayPageviews(t),PvData.saveOriginCache(JSON.stringify(t)))}).then(()=>fetchProxyPageviews()):fetchProxyPageviews()}$(function(){var t;$(".pageviews").length<=0||(PvData.inspectKeys(),(t=PvData.getData())?(displayPageviews(t),PvData.isExpired()?fetchPageviews(!0,PvData.isFromProxy()):PvData.isFromOrigin()&&fetchPageviews(!1)):fetchPageviews(PvOpts.hasLocalData()))});
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-chirpy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cotes Chung
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|