Skip to content

v5.1.3

Compare
Choose a tag to compare
@ivan-nginx ivan-nginx released this 30 Sep 14:00
· 158 commits to master since this release

HOTFIXES

Need to update it manually!

  • FIX: sidebar blinking at the left in Pisces | Gemini schemes. 81905b9

Breaking changes

In NexT _config.yml:

Favicon

Old configuration:

-# Put your favicon.ico into `hexo-site/source/` directory.
-favicon: /favicon.ico

New configuration:

# To get favicons visit: https://realfavicongenerator.net
# Put your favicons into `hexo-site/source/` or `hexo-site/themes/next/source/images/` directory.
# Default NexT favicons placed in `hexo-site/themes/next/source/images/` directory.
# And if you want to place your icons in `hexo-site/source/`, you must remove `/images` prefix from pathes.
favicon:
  small: /images/favicon-16x16.png
  medium: /images/favicon-32x32.png
  apple_touch_icon: /images/apple-touch-icon.png
  safari_pinned_tab: /images/logo.svg
  #android_manifest: /images/manifest.json
  #ms_browserconfig: /images/browserconfig.xml

Motion

Old configuration:

-# Motion
-use_motion: true

New configuration:

# Use velocity to animate everything.
motion:
  enable: true
  async: false
  transition:
    # Transition variants:
    # fadeIn | fadeOut | flipXIn | flipXOut | flipYIn | flipYOut | flipBounceXIn | flipBounceXOut | flipBounceYIn | flipBounceYOut
    # swoopIn | swoopOut | whirlIn | whirlOut | shrinkIn | shrinkOut | expandIn | expandOut
    # bounceIn | bounceOut | bounceUpIn | bounceUpOut | bounceDownIn | bounceDownOut | bounceLeftIn | bounceLeftOut | bounceRightIn | bounceRightOut
    # slideUpIn | slideUpOut | slideDownIn | slideDownOut | slideLeftIn | slideLeftOut | slideRightIn | slideRightOut
    # slideUpBigIn | slideUpBigOut | slideDownBigIn | slideDownBigOut | slideLeftBigIn | slideLeftBigOut | slideRightBigIn | slideRightBigOut
    # perspectiveUpIn | perspectiveUpOut | perspectiveDownIn | perspectiveDownOut | perspectiveLeftIn | perspectiveLeftOut | perspectiveRightIn | perspectiveRightOut
    post_block: fadeIn
    post_header: slideDownIn
    post_body: slideDownIn
    coll_header: slideLeftIn
    # Only for Pisces | Gemini.
    sidebar: slideUpIn

Sidebar

Removed offset_float option:

  # Sidebar offset from top menubar in pixels (only for Pisces | Gemini).
  offset: 12
- offset_float: 12

Menu & Sidebar icons

# When running the site in a subdirectory (e.g. domain.tld/blog), remove the leading slash from link value (/archives -> archives).
# Usage: `Key: /link/ || icon`
# Key is the name of menu item. If translate for this menu will find in languages - this translate will be loaded; if not - Key name will be used. Key is case-senstive.
# Value before `||` delimeter is the target link.
# Value after `||` delimeter is the name of FontAwesome icon. If icon (with or without delimeter) is not specified, question icon will be loaded.
menu:
-  home: /
-  #categories: /categories/
-  #about: /about/
-  #archives: /archives/
-  #tags: /tags/
-  #sitemap: /sitemap.xml
-  #commonweal: /404/
+  home: / || home
+  #about: /about/ || user
+  #tags: /tags/ || tags
+  #categories: /categories/ || th
+  #archives: /archives/ || archive
+  #schedule: /schedule/ || calendar
+  #sitemap: /sitemap.xml || sitemap
+  #commonweal: /404/ || heartbeat

# Enable/Disable menu icons.
menu_icons:
  enable: true
- #KeyMapsToMenuItemKey: NameOfTheIconFromFontAwesome		
-  home: home		
-  about: user		
-  categories: th		
-  schedule: calendar		
-  tags: tags		
-  archives: archive		
-  sitemap: sitemap		
-  commonweal: heartbeat

# 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. If icon (with or without delimeter) is not specified, globe icon will be loaded.
#social:
-  #LinkLabel: Link
+  #GitHub: https://github.com/yourname || github
+  #E-Mail: mailto:yourname@gmail.com || envelope
+  #Google: https://plus.google.com/yourname || google
+  #Twitter: https://twitter.com/yourname || twitter
+  #FB Page: https://www.facebook.com/yourname || facebook
+  #VK Group: https://vk.com/yourname || vk
+  #StackOverflow: https://stackoverflow.com/yourname || stack-overflow
+  #YouTube: https://youtube.com/yourname || youtube
+  #Instagram: https://instagram.com/yourname || instagram
+  #Skype: skype:yourname?call|chat || skype

social_icons:
  enable: true
  icons_only: false
  transition: false
-  # Icon Mappings.
-  # KeyMapsToSocialItemKey: NameOfTheIconFromFontAwesome
-  GitHub: github
-  E-Mail: envelope
-  Google: google
-  Twitter: twitter
-  FB Page: facebook
-  VK Group: vk
-  Skype: skype
-  YouTube: youtube
-  Instagram: instagram
-  StackOverflow: stack-overflow
-  Weibo: weibo

Footer

Old configuration:

-# 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

New configuration:

footer:
  # Specify the date when the site was setup.
  # If not defined, current year will be used.
  #since: 2015

  # Icon between year and copyright info.
  icon: user

  # If not defined, will be used `author` from Hexo main config.
  copyright:
  # -------------------------------------------------------------
  # Hexo link (Powered by Hexo).
  powered: true

  theme:
    # Theme & scheme info link (Theme - NexT.scheme).
    enable: true
    # Version info of NexT after scheme info (vX.X.X).
    version: true
  # -------------------------------------------------------------
  # Any custom text can be defined here.
  #custom_text: Hosted by <a target="_blank" href="https://pages.github.com">GitHub Pages</a>

Updates

  • UPD: ISSUE_TEMPLATE.md
  • UPD: PULL_REQUEST_TEMPLATE.md
  • UPD: .travis.yml: ignore *.md files and docs directory. (3602b92)
  • UPD: Switch CN <-> EN readme's & Global refactor and update README.md.

Features

  • ADD: <kbd> tag style. (10f5c49)
  • ADD: Valine comment system support (#1811)
  • ADD: post_wordcount.totalcount option. (#1812)
  • ADD: no need to add translate to menu anymore. (91eb2d2)
  • ADD: theme version in frontend config. (f36f00c)
  • ADD: Bing verification (c61386d)
  • ADD: motion transition variants. (#1829)
  • ADD: Menu & Sidebar icons in 1 line with Keys and Values of this icons. (#1830)
  • ADD: Donate internationalization (#1847)
  • ADD: Allow the user to override the whole configuration (#1861)
  • ADD: Italian translation (#1863)
  • ADD: Improve font configurations for global and headings (#1879) & Fix Mist font-size for Posts on mobile (#1880) & Fix font-size only for mobile (#1891)
  • ADD: Options to better control footer. (#1886)
  • ADD: scrolling to active TOC if TOC > viewport. (619c49e)
  • ADD: Responsive favicons options. (#1898, PART 4)
  • ADD: Post custom copyright feature. (#1898, PART 5)

Bugs

  • FIX: remove clearfix hack > conflict with flex. (83c2b84)
  • FIX: Upgrade jiathis share thirdparty plugin code template. (#1796)
  • FIX: blogroll max-width & links_layout. (#1808)
  • FIX: post_wordcount.separated_meta option. (#1812)
  • FIX: sitebar right position width incorrect. (7caab48)
  • FIX: hide archive sidebar item when no posts. (7eb5a97)
  • FIX: class style was break within space-name. (9f245fa)
  • FIX: archive link not worked if no archive menu. (074bd04)
  • FIX: Refactor page_class & fix sidebar affix on archives page. (#1825)
  • FIX: sidebar affix global fix. (#1829) & FIX: to #1829 global affix fix. (edd1ff0)
  • FIX: remove Firefox's dotted borders on links. (9e9b5b4)
  • FIX: commented avatar not visible in sidebar for now.. (#1837)
  • FIX: link to archives with icons was't work. (ba842f5)
  • FIX: tencent weibo typo #1833 (#1845)
  • FIX: move flex style from global sidebar style to Pisces and Gemini schemes only. (#1846)
  • FIX: excess spaces in sidebar author links. (edad5e3)
  • FIX: han.woff2 404 not found. (000cd69)
  • FIX: Donate Button Style (#1847)
  • FIX: language space typo (#1850)
  • FIX: fancybox style (#1862) & caption position (#1864)
  • FIX: Remove line-height declaration (#1881) & Fix to #1881. (1f85ef8)
  • FIX: caution for Safari bug in font settings & disabled font option by default. (e5c0956)
  • FIX: sidebar with motion on Mist & Muse schemes. (9ce276f)
  • FIX: tabbed code block padding style. (beb52f8, d433afd)
  • FIX: site state items padding for Pisces & Gemini. (b9243d9)
  • FIX: comments block only show if comments present. d8543f8 abb1424
  • FIX: Sidebar scrollable in all schemes. (#1898, PART 2)
  • FIX: Enhancements for Gemini scheme. (#1898, PART 3)
  • FIX: tags amount from 200 to 300 (temporaily solution). (de271c1)

For full changes, see the comparison between 5.1.2 and 5.1.3