fix(addJs): valid path

This commit is contained in:
curben 2019-08-26 09:27:38 +09:30
parent 65d463bc9d
commit d4af69e1dc
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
2 changed files with 3 additions and 3 deletions

View File

@ -3,4 +3,4 @@
<% } %> <% } %>
<%/* javascript of Typing theme */%> <%/* javascript of Typing theme */%>
<%- addJs('js/typing.js') %> <%- addJs('/js/typing.js') %>

View File

@ -43,12 +43,12 @@
<link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml"> <link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml">
<%/* Fallback function for SRI */%> <%/* Fallback function for SRI */%>
<%- addJs('js/sri.min.js') %> <%- addJs('/js/sri.min.js') %>
<%/* Polyfill for <img loading="lazy"> */%> <%/* Polyfill for <img loading="lazy"> */%>
<%- addJs('/js/loading-attribute-polyfill.min.js') %> <%- addJs('/js/loading-attribute-polyfill.min.js') %>
<%- addCss('css/typing.css') %> <%- addCss('/css/typing.css') %>
<% if (theme.icons) { %> <% if (theme.icons) { %>
<%- addCss({ href: 'https://cdnjs.cloudflare.com/ajax/libs/fork-awesome/1.1.7/css/fork-awesome.min.css', 'data-sri-fallback': '/forkawesome/css/fork-awesome.min.css', integrity: 'sha384-mByhW6NjnxyShh67P9+fepUvYSd7Uz/qV6e2u4kA2Fi4ZkjXxIP2mRkyK9dwK24W', crossorigin: 'anonymous' }) %> <%- addCss({ href: 'https://cdnjs.cloudflare.com/ajax/libs/fork-awesome/1.1.7/css/fork-awesome.min.css', 'data-sri-fallback': '/forkawesome/css/fork-awesome.min.css', integrity: 'sha384-mByhW6NjnxyShh67P9+fepUvYSd7Uz/qV6e2u4kA2Fi4ZkjXxIP2mRkyK9dwK24W', crossorigin: 'anonymous' }) %>