From 2dacb8f5fedf6a175854774ac1d53008b2587af0 Mon Sep 17 00:00:00 2001 From: curben <2809763-curben@users.noreply.gitlab.com> Date: Mon, 26 Aug 2019 08:15:31 +0930 Subject: [PATCH] fix: use addJs() helper --- themes/typing/layout/_partial/after-footer.ejs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/typing/layout/_partial/after-footer.ejs b/themes/typing/layout/_partial/after-footer.ejs index b45ea8e..64d8ae1 100644 --- a/themes/typing/layout/_partial/after-footer.ejs +++ b/themes/typing/layout/_partial/after-footer.ejs @@ -1,6 +1,6 @@ <% if (is_post()) { %> - +<%- addJs({ src: 'https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js', 'data-sri-fallback': '/js/clipboard.min.js', integrity: 'sha384-8CYhPwYlLELodlcQV713V9ZikA3DlCVaXFDpjHfP8Z36gpddf/Vrt47XmKDsCttu', crossorigin: 'anonymous'}) %> <% } %> <%/* javascript of Typing theme */%> -<%- js('js/typing') %> +<%- addJs('js/typing') %>