diff --git a/layout/_partials/head/head-unique.njk b/layout/_partials/head/head-unique.njk index af3af80..16e4179 100644 --- a/layout/_partials/head/head-unique.njk +++ b/layout/_partials/head/head-unique.njk @@ -6,7 +6,7 @@ // https://hexo.io/docs/variables.html CONFIG.page = { - sidebar: {{ page.sidebar | json }}, + sidebar: {{ page.sidebar | safedump }}, isHome : {{ is_home() }}, isPost : {{ is_post() }}, lang : '{{ page.lang }}' diff --git a/layout/_scripts/pages/schedule.njk b/layout/_scripts/pages/schedule.njk index 51d8992..ce1dc4c 100644 --- a/layout/_scripts/pages/schedule.njk +++ b/layout/_scripts/pages/schedule.njk @@ -12,7 +12,7 @@ }; // Read config form theme config file - Object.assign(calendar, {{ theme.calendar | json }}); + Object.assign(calendar, {{ theme.calendar | safedump }}); var now = new Date(); var timeMax = new Date(); diff --git a/layout/_third-party/comments/disqus.njk b/layout/_third-party/comments/disqus.njk index a9be0d2..9c3353a 100644 --- a/layout/_third-party/comments/disqus.njk +++ b/layout/_third-party/comments/disqus.njk @@ -13,9 +13,9 @@ {%- if page.comments %}