hexo-theme-amane/layout/common/scripts.ejs

26 lines
821 B
Plaintext
Raw Normal View History

<%- _js(cdn('jquery', '3.3.1', 'dist/jquery.min.js')) %>
<%- _js(cdn('moment', '2.22.2', 'min/moment-with-locales.min.js')) %>
2018-10-16 05:28:42 +00:00
<script>moment.locale("<%= get_config('language', 'en') %>");</script>
2016-02-02 16:19:44 +00:00
<script>
var IcarusThemeSettings = {
article: {
highlight: {
clipboard: <%= get_config('article.highlight.clipboard', true) %>,
fold: '<%= get_config('article.highlight.fold', true) %>'
}
}
};
</script>
<% if (get_config('article.highlight.clipboard')) { %>
<%- _js(cdn('clipboard', '2.0.4', 'dist/clipboard.min.js'), true) %>
<% } %>
2018-10-16 05:28:42 +00:00
<% if (has_config('plugins')) { %>
<% for (let plugin in get_config('plugins')) { %>
<%- _partial('plugin/' + plugin, { head: false, plugin: get_config('plugins')[plugin] }) %>
2018-10-16 05:28:42 +00:00
<% } %>
<% } %>
<%- _js('js/main', true) %>