diff --git a/.bowerrc b/.bowerrc index 8013f263d..b3cfe47b3 100644 --- a/.bowerrc +++ b/.bowerrc @@ -1,3 +1,3 @@ { - "directory": "source/lib" -} + "directory": "source/vendors" +} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 616a00747..ceb255b00 100644 --- a/.gitignore +++ b/.gitignore @@ -5,11 +5,11 @@ node_modules/ # Ignore unused verdors' files -source/lib/fancybox/* -!source/lib/fancybox/source/ +source/vendors/fancybox/* +!source/vendors/fancybox/source/ -source/lib/font-awesome/less/ -source/lib/font-awesome/scss/ +source/vendors/font-awesome/less/ +source/vendors/font-awesome/scss/ -source/lib/ua-parser-js/* -!source/lib/ua-parser-js/dist/ +source/vendors/ua-parser-js/* +!source/vendors/ua-parser-js/dist/ diff --git a/.javascript_ignore b/.javascript_ignore index 14501d2bb..3bfd8f0ec 100644 --- a/.javascript_ignore +++ b/.javascript_ignore @@ -1,4 +1,3 @@ source/vendors/* -source/lib/* source/js/src/affix.js source/js/src/scrollspy.js diff --git a/README.md b/README.md index a2b004fbb..3f5f23dce 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,45 @@ +# NexTD from [NexT](https://github.com/iissnan/hexo-theme-next/) + +花了一两天时间改造了大大的 Hexo 主题,添加了页面封面与博文封面的设置,更大气一些哈 +由于第一次使用 Swig 与 Stylus,一边改造一边学习,可惜改动蛮多的,已与原版不兼容_(:зゝ∠)_ +做了响应式处理,基本没什么大问题嘞~ + +**页面封面设置**(效果预览 > [熊D博客](https://blog.beard.ink/)): +``` +# /themes/nextd/_config.yml +# Page covers for follow pages, whom height is greater than 400px. +# Home cover is required, which is default cover for other pages. +cover: + home: /images/home_bg.jpg + tag: /images/tag_bg.jpg + archive: /images/archive_bg.jpg + category: /images/category_bg.jpg + # post: + # about: + # pages: +``` +效果: +![页面封面效果](https://github.com/HiDino9/hexo-theme-nextd/blob/master/test/nextd_home_preview.jpg?raw=true) + +**博文封面设置**(效果预览 > [从零开始:现在开始用ES6写代码 | 熊D博客](https://blog.beard.ink/JavaScript/从零开始:现在开始用ES6写代码/)): +``` +--- +title: 从零开始:现在开始用ES6写代码 +date: 2016-09-30 18:46:45 +categories: JavaScript +tags: [JS,JavaScript,ES6,ECMAScript6,ES2015,Babel,Gulp,NodeJs] +cover: banner-write-in-es6.jpg +--- +``` +> 博文封面效果借鉴了[ Hux ](https://github.com/huxpro)大大博客的效果,谢谢~ + +效果: +![博文封面效果](https://github.com/HiDino9/hexo-theme-nextd/blob/master/test/nextd_post_preview.jpg?raw=true) + +**如果文章无法查到封面路径,请尝试安装 `hexo-asset-image` 插件** + +*** + # NexT > 精于心,简于形 diff --git a/_config.yml b/_config.yml index dd125120f..edd66b5c7 100755 --- a/_config.yml +++ b/_config.yml @@ -5,30 +5,36 @@ # Put your favicon.ico into `hexo-site/source/` directory. favicon: /favicon.ico +# Page covers for follow pages, whom height is greater than 400px. +# Home cover is required, which is default cover for other pages. +cover: + home: /images/home_bg.jpg + tag: /images/tag_bg.jpg + archive: /images/archive_bg.jpg + category: /images/category_bg.jpg + # post: + # about: + # pages: + +# Post footer will be added to the end of each post body. +post_footer: "所有文章非特别说明皆为原创。技术更迭迅猛,部分内容可能会作修改,为保证信息与源同步,转载时请务必注明文章出处!谢谢合作 :-)" + # Set default keywords (Use a comma to separate) -keywords: "Hexo, NexT" +keywords: "Hexo, NexTD" # Set rss to false to disable feed link. # Leave rss as empty to use site's feed link. # Set rss to specific value if you have burned your feed already. -rss: +rss: /rss2.xml # Specify the date when the site was setup -#since: 2015 - -# icon between year and author @Footer -authoricon: heart - -# Footer `powered-by` and `theme-info` copyright -copyright: true +since: 2015 # Canonical, set a canonical link tag in your hexo, you could use it for your SEO of blog. # See: https://support.google.com/webmasters/answer/139066 # Tips: Before you open this tag, remeber set up your URL in hexo _config.yml ( ex. url: http://yourdomain.com ) canonical: true -# Change headers hierarchy on site-subtitle (will be main site description) and on all post/pages titles for better SEO-optimization. -seo: false # --------------------------------------------------------------- # Menu Settings @@ -36,12 +42,11 @@ seo: false # When running the site in a subdirectory (e.g. domain.tld/blog), remove the leading slash (/archives -> archives) menu: - home: / - #categories: /categories - #about: /about + # home: / + categories: /categories archives: /archives tags: /tags - #sitemap: /sitemap.xml + about: /about #commonweal: /404.html @@ -56,10 +61,8 @@ menu_icons: home: home about: user categories: th - schedule: calendar tags: tags archives: archive - sitemap: sitemap commonweal: heartbeat @@ -69,10 +72,8 @@ menu_icons: # Scheme Settings # --------------------------------------------------------------- -# Schemes -scheme: Muse -#scheme: Mist -#scheme: Pisces +# NexTD is based on NexT.Pisces +scheme: Pisces # --------------------------------------------------------------- @@ -84,10 +85,10 @@ scheme: Muse # - Introduce in 5.0.1 # --------------------------------------------------------------- font: - enable: true + enable: false # Uri of fonts host. E.g. //fonts.googleapis.com (Default) - host: + host: //fonts.useso.com # Global font settings used on
element. global: @@ -119,7 +120,6 @@ font: codes: external: true family: - size: @@ -132,9 +132,11 @@ font: # Social Links # Key is the link label showing to end users. # Value is the target link (E.g. GitHub: https://github.com/iissnan) -#social: - #LinkLabel: Link - +social: + GitHub: https://github.com/BearD01001 + Instagram: http://www.instagram.com/BearD01001 + 微博: http://weibo.com/lookime + 知乎: http://www.zhihu.com/people/HiDino9 # Social Links Icons # Icon Mapping: @@ -146,14 +148,16 @@ social_icons: # Icon Mappings. # KeyMapsToSocalItemKey: NameOfTheIconFromFontAwesome GitHub: github + Instagram: instagram Twitter: twitter - Weibo: weibo + 微博: weibo + 知乎: globe # Sidebar Avatar # in theme directory(source/images): /images/avatar.jpg # in site directory(source/uploads): /uploads/avatar.jpg -#avatar: +avatar: /images/avatar.png # Table Of Contents in the Sidebar @@ -167,14 +171,13 @@ toc: # Creative Commons 4.0 International License. # http://creativecommons.org/ # Available: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | zero -#creative_commons: by-nc-sa -#creative_commons: +creative_commons: by-nc-sa sidebar: # Sidebar Position, available value: left | right - position: left - #position: right + # position: left + position: right # Sidebar Display, available value: # - post expand on posts automatically. Default. @@ -196,14 +199,29 @@ sidebar: # --------------------------------------------------------------- -# Post Settings +# Misc Theme Settings # --------------------------------------------------------------- +# Custom Logo. +# !!Only available for Default Scheme currently. +# Options: +# enabled: [true/false] - Replace with specific image +# image: url-of-image - Images's url +custom_logo: + enabled: false + image: + + +# Code Highlight theme +# Available value: +# normal | night | night eighties | night blue | night bright +# https://github.com/chriskempson/tomorrow-theme +highlight_theme: night bright + + # Automatically scroll page to section which is under mark. -scroll_to_more: true +scroll_to_more: false -# Automatically excerpt description in homepage as preamble text. -excerpt_description: true # Automatically Excerpt. Not recommand. # Please use in the post to control excerpt accurately. @@ -211,13 +229,6 @@ auto_excerpt: enable: false length: 150 -# Post meta display settings -post_meta: - item_text: true - created_at: true - updated_at: false - categories: true - # Wechat Subscriber #wechat_subscriber: @@ -227,26 +238,6 @@ post_meta: -# --------------------------------------------------------------- -# Misc Theme Settings -# --------------------------------------------------------------- - -# Custom Logo. -# !!Only available for Default Scheme currently. -# Options: -# enabled: [true/false] - Replace with specific image -# image: url-of-image - Images's url -custom_logo: - enabled: false - image: - - -# Code Highlight theme -# Available value: -# normal | night | night eighties | night blue | night bright -# https://github.com/chriskempson/tomorrow-theme -highlight_theme: normal - # --------------------------------------------------------------- # Third Party Services Settings @@ -255,7 +246,6 @@ highlight_theme: normal # MathJax Support mathjax: enable: false - per_page: false cdn: //cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML @@ -277,20 +267,21 @@ mathjax: # Gentie productKey #gentie_productKey: -# Support for youyan comments system. -# You can get your uid from http://www.uyan.cc -#youyan_uid: your uid +# gitment comments system. https://github.com/imsun/gitment +gitment: + owner: BearD01001 + repo: beard01001.github.io + client_id: 7e6796bf4bd74a25333f + client_secret: d190223868b2175fbce4094e6485195cef7d3e8a # Baidu Share # Available value: # button | slide -# Warning: Baidu Share does not support https. #baidushare: ## type: button # Share -#jiathis: -# Warning: JiaThis does not support https. +jiathis: true #add_this_id: # Share @@ -305,20 +296,17 @@ mathjax: #google_analytics: # CNZZ count -#cnzz_siteid: +cnzz_siteid: 1261020784 -# Application Insights -# See https://azure.microsoft.com/en-us/services/application-insights/ -# application_insights: # Make duoshuo show UA # user_id must NOT be null when admin_enable is true! # you can visit http://dev.duoshuo.com get duoshuo user id. -duoshuo_info: - ua_enable: true - admin_enable: false - user_id: 0 - #admin_nickname: Author +# duoshuo_info: +# ua_enable: true +# admin_enable: true +# user_id: 7566230 +# admin_nickname: Author # Facebook SDK Support. @@ -335,9 +323,7 @@ facebook_sdk: # If facebook_sdk.enable is false, Facebook comments plugin is unavailable. facebook_comments_plugin: enable: false - num_of_posts: 10 # min posts num is 1 - width: 100% # default width is 550px - scheme: light # default scheme is light (light or dark) + num_of_posts: 10 # Show number of visitors to each article. @@ -365,40 +351,11 @@ busuanzi_count: page_pv_header: page_pv_footer: - # Tencent analytics ID # tencent_analytics: - # Enable baidu push so that the blog will push the url to baidu automatically which is very helpful for SEO -baidu_push: false - -# Google Calendar -# Share your recent schedule to others via calendar page -# -# API Documentation: -# https://developers.google.com/google-apps/calendar/v3/reference/events/list -calendar: - enable: false - calendar_id: