diff --git a/_config.yml b/_config.yml index 137a0ce..547dd70 100644 --- a/_config.yml +++ b/_config.yml @@ -1,45 +1,34 @@ -# Theme Info -theme_name: ILS-X - -theme_version: 1.0.0 +# theme basic info +theme_info: + author: XPoet + name: ILS-X + version: 1.0.0 + repository: https://github.com/XPoet/hexo-theme-ils +# navigation menu menu: Home: / Archives: /archives About: /about +# RSS rss: /atom.xml +# favicon favicon: images/favicon.png -avatar: images/avatar.png - -# Social Links. -# Usage: `Key: permalink || icon` -# Key is the link label showing to end users. -# Value before `||` delimeter is the target permalink. -# Value after `||` delimeter is the name of FontAwesome icon. -social: - #GitHub: https://github.com/yourname || github - #E-Mail: mailto:yourmail || envelope - #Google: https://plus.google.com/yourname || google - #Twitter: https://twitter.com/yourname || twitter - #Weibo: https://www.facebook.com/yourname || weibo - #FB Page: https://www.facebook.com/yourname || facebook - #VK Group: https://vk.com/yourname || vk - #StackOverflow: https://stackoverflow.com/yourname || stack-overflow - #Instagram: https://instagram.com/yourname || instagram - -# Valine. -# You can get your appid and appkey from https://leancloud.cn -# more info please open https://github.com/xCss/Valine -valine: - enable: false - appid: # your leancloud application appid - appkey: # your leancloud application appkey - notify: false # mail notifier, https://github.com/xCss/Valine/wiki - verify: false # Verification code - placeholder: 评论一下再走吧~ +# comment system +comments: + # Valine. + # You can get your appid and appkey from https://leancloud.cn + # more info please open https://github.com/xCss/Valine + valine: + enable: false + appid: # your leancloud application appid + appkey: # your leancloud application appkey + notify: false # mail notifier, https://github.com/xCss/Valine/wiki + verify: false # Verification code + placeholder: 填写昵称和邮箱才能收到回复通知哦~ # Show PV/UV of the website/page with busuanzi. # Get more information on http://ibruce.info/2015/04/04/busuanzi/ @@ -65,10 +54,4 @@ local_search: # Unescape html strings to the readable one. unescape: false # Preload the search data when the page loads. - preload: false - - -# Assets -css: css -js: js -images: images \ No newline at end of file + preload: false \ No newline at end of file diff --git a/layout/_partial/footer.ejs b/layout/_partial/footer.ejs index 362fe7e..1dd7340 100644 --- a/layout/_partial/footer.ejs +++ b/layout/_partial/footer.ejs @@ -5,7 +5,7 @@
<%- __('powered_by', 'Hexo') %>. <%- __('theme_for') %> <%= theme.theme_name %> v<%= theme.theme_version %> + href="https://github.com/XPoet/hexo-theme-ils" target="_blank"><%= theme.theme_info.name %> v<%= theme.theme_info.version %>
<% if (theme.busuanzi_count.enable) { %> diff --git a/layout/_partial/header.ejs b/layout/_partial/header.ejs index 81dc2d5..3e6c683 100644 --- a/layout/_partial/header.ejs +++ b/layout/_partial/header.ejs @@ -2,7 +2,7 @@
- + <%= config.title %> diff --git a/layout/_partial/tools.ejs b/layout/_partial/tools.ejs index 539a042..226e509 100644 --- a/layout/_partial/tools.ejs +++ b/layout/_partial/tools.ejs @@ -4,7 +4,7 @@ - <%- next_js('local-search.js') %> + <%- js('js/local-search.js') %> <% } %>
  • diff --git a/layout/_partial/valine.ejs b/layout/_partial/valine.ejs index f635762..253de26 100755 --- a/layout/_partial/valine.ejs +++ b/layout/_partial/valine.ejs @@ -1,16 +1,16 @@ -<% if(theme.valine.enable && theme.valine.appid && theme.valine.appkey) { %> +<% if(theme.comments.valine.enable && theme.comments.valine.appid && theme.comments.valine.appkey) { %>
    diff --git a/layout/archive-content.ejs b/layout/archive-content.ejs index f53e79c..4f3cfd2 100644 --- a/layout/archive-content.ejs +++ b/layout/archive-content.ejs @@ -6,7 +6,6 @@ const postList = createNewArchivePosts(is_archive() ? site.posts : page.posts)
    <%= postYear.year %> - - <%= postYear.postList.length %> -
      <% postYear.postList.forEach(post => { %> diff --git a/layout/article-content.ejs b/layout/article-content.ejs index 7c6fd36..2c1db1c 100644 --- a/layout/article-content.ejs +++ b/layout/article-content.ejs @@ -1,6 +1,6 @@
      -

      <%= page.title %>

      +

      <%= page.title %>

      diff --git a/layout/home-content.ejs b/layout/home-content.ejs index 341d1f5..71bfffe 100644 --- a/layout/home-content.ejs +++ b/layout/home-content.ejs @@ -1,11 +1,9 @@
      -
        - <% page.posts.forEach(post => { %>
      • - <%= post.title %> + <%= post.title %>

        @@ -18,7 +16,7 @@