File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99{% if page.layout == 'home' %}
1010
11+ {% if site.google_analytics.pv.cache and site.google_analytics.pv.enabled %}
12+ < script src ="{{ '/assets/js/data/pv-cache.js' | relative_url }} "> </ script >
13+ {% endif %}
14+
1115 < script src ="{{ '/assets/js/home.min.js' | relative_url }} " async > </ script >
1216
1317{% elsif page.layout == 'post' %}
1418
19+ {% if site.google_analytics.pv.cache and site.google_analytics.pv.enabled %}
20+ < script src ="{{ '/assets/js/data/pv-cache.js' | relative_url }} "> </ script >
21+ {% endif %}
22+
1523 < script src ="{{ '/assets/js/post.min.js' | relative_url }} " async > </ script >
1624
1725 {% if page.math %}
Original file line number Diff line number Diff line change 1313
1414{ % if site . google_analytics . pv . enabled % }
1515
16- { % include_relative data / pv - data . js % }
16+ const proxyData = '{"url": "{{ site.google_analytics.pv.proxy_endpoint }}"}' ;
1717
1818 { % include_relative _utils / pageviews . js % }
1919
Original file line number Diff line number Diff line change @@ -106,6 +106,6 @@ const include = [
106106] ;
107107
108108const exclude = [
109- '/assets/js/data/pv-data .js' ,
109+ '/assets/js/data/pv-cache .js' ,
110110 '/img.shields.io/'
111111] ;
Original file line number Diff line number Diff line change 1+ -- -
2+ layout : compress
3+ -- -
4+
5+ { % - capture pv_data - % }
6+ { % - if site . google_analytics . pv . cache and site . google_analytics . pv . enabled - % }
7+ { % include_relative _pageviews . json % }
8+ { % - endif - % }
9+ { % - endcapture - % }
10+
11+ const pageviews = '{{ pv_data }}' ;
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments