From 95301b02fcd0aa50b253058486bc069283f1aa4a Mon Sep 17 00:00:00 2001 From: litten Date: Tue, 27 Dec 2016 01:53:04 +0800 Subject: [PATCH] mobile && tag fix && js md5 --- layout/_partial/after-footer.ejs | 2 +- layout/_partial/left-col.ejs | 4 +- layout/_partial/mobile-nav.ejs | 43 +++--- layout/_partial/post/tag.ejs | 11 +- layout/_partial/script.ejs | 87 +++++++++++ layout/_partial/tools.ejs | 2 +- package.json | 1 + source-src/css/core/_animation.scss | 1 - source-src/css/fonts.scss | 4 + source-src/css/fonts/iconfont.eot | Bin 17266 -> 17814 bytes source-src/css/fonts/iconfont.svg | 19 ++- source-src/css/fonts/iconfont.ttf | Bin 16984 -> 17532 bytes source-src/css/fonts/iconfont.woff | Bin 11228 -> 11588 bytes source-src/css/grid.scss | 37 +---- source-src/css/mobile-slider.scss | 80 ---------- source-src/css/mobile.scss | 138 ++++++++++++++--- source-src/css/tools.scss | 5 + source-src/js/fix.js | 8 - source-src/js/main.js | 11 -- source-src/js/mobile.js | 221 +++++++++++----------------- source-src/js/slider.js | 8 +- source-src/script.ejs | 35 +++++ source/fonts/iconfont.eot | Bin 17266 -> 17814 bytes source/fonts/iconfont.svg | 19 ++- source/fonts/iconfont.ttf | Bin 16984 -> 17532 bytes source/fonts/iconfont.woff | Bin 11228 -> 11588 bytes source/main.cd42e4.js | 8 + source/main.css | 2 +- source/mobile.4bc492.js | 1 + source/slider.c3c609.js | 8 + webpack.config.js | 15 +- 31 files changed, 437 insertions(+), 333 deletions(-) create mode 100644 layout/_partial/script.ejs create mode 100644 source-src/script.ejs create mode 100644 source/main.cd42e4.js create mode 100644 source/mobile.4bc492.js create mode 100644 source/slider.c3c609.js diff --git a/layout/_partial/after-footer.ejs b/layout/_partial/after-footer.ejs index ee6e6db7d..815e800c7 100644 --- a/layout/_partial/after-footer.ejs +++ b/layout/_partial/after-footer.ejs @@ -12,7 +12,7 @@ } -<%- js('./main.js?v=4.0.0') %> +<%- partial('script') %> <% if (theme.mathjax){ %> <%- partial('mathjax') %> diff --git a/layout/_partial/left-col.ejs b/layout/_partial/left-col.ejs index 0873efd03..ad876d9f4 100644 --- a/layout/_partial/left-col.ejs +++ b/layout/_partial/left-col.ejs @@ -21,11 +21,9 @@ diff --git a/layout/_partial/mobile-nav.ejs b/layout/_partial/mobile-nav.ejs index 286b4e010..75f0d42b1 100644 --- a/layout/_partial/mobile-nav.ejs +++ b/layout/_partial/mobile-nav.ejs @@ -1,29 +1,27 @@ diff --git a/layout/_partial/post/tag.ejs b/layout/_partial/post/tag.ejs index f201ffdcd..fa4effdde 100644 --- a/layout/_partial/post/tag.ejs +++ b/layout/_partial/post/tag.ejs @@ -1,9 +1,12 @@ <% if (post.tags && post.tags.length){ %>
- <%- list_tags(post.tags, { - show_count: false, - class: 'article-tag' - }) %> +
<% } %> \ No newline at end of file diff --git a/layout/_partial/script.ejs b/layout/_partial/script.ejs new file mode 100644 index 000000000..a201bb5f0 --- /dev/null +++ b/layout/_partial/script.ejs @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + diff --git a/layout/_partial/tools.ejs b/layout/_partial/tools.ejs index 07cc7ce31..5f0fb39bc 100644 --- a/layout/_partial/tools.ejs +++ b/layout/_partial/tools.ejs @@ -20,7 +20,7 @@