Combine local JS.
’yui-compressor’ is no longer used.
This commit is contained in:
9
assets/js/data/pv-data.js
Normal file
9
assets/js/data/pv-data.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const proxyData = '{"url": "{{ site.google_analytics.pv.proxy_endpoint }}"}';
|
||||
|
||||
{%- capture pv_data -%}
|
||||
{%- if site.google_analytics.pv.cache and site.google_analytics.pv.enabled -%}
|
||||
{% include_relative data/_pageviews.json %}
|
||||
{%- endif -%}
|
||||
{%- endcapture -%}
|
||||
|
||||
const pageviews = '{{ pv_data }}';
|
||||
Reference in New Issue
Block a user