Fixed the PV cache.

This commit is contained in:
Cotes Chung
2020-06-23 13:10:28 +08:00
parent 42e0617bde
commit e87ef0d40e
5 changed files with 21 additions and 11 deletions

View File

@@ -0,0 +1,11 @@
---
layout: compress
---
{%- capture pv_data -%}
{%- if site.google_analytics.pv.cache and site.google_analytics.pv.enabled -%}
{% include_relative _pageviews.json %}
{%- endif -%}
{%- endcapture -%}
const pageviews = '{{ pv_data }}';