SEO Setting
Next provides useful options for better Search Engine Optimization (SEO).
By default China’s search engine Baidu will cache and rewrite your site to provide a webpage snapshot for mobile users. You can disable this by setting the value disable_baidu_transformation to true in theme config file.
1 | disable_baidu_transformation: false |
By default a canonical link tag is created in Hexo by setting the value canonical to true in theme config file after you have set up your URL url: http://yoursite.com in site config file. More detailed information can be found in Consolidate duplicate URLs.
1 | canonical: true |
Set the value enable to true in seo section to change headers hierarchy on subtitle in site config file and on all post/pages titles for better SEO in theme config file as following:
1 | seo: false |
Set the value enable to true in index_with_subtitle section to add subtitle information in site config file to index page.
1 | index_with_subtitle: false |
ExtURL
External URL with BASE64 encrypt & decrypt which provide nonsense for search engines to <a> tags.
Description
Search engines scan <a> tag with hight priority. You may add external / nofollow / noopener / noreferrer or any similar tricks, in any case all external links from your site will be indexed on your site. But here exists another trick: crawlers doesn’t reproduce any javascript – this do clients on their local devices.
That tag give the way to set any external link without <a> tag. So, some crawlers like Yandex will not give away links weight from your site and this very useful for SEO. This tag perform:
- Replaces
aHTML tag withspanHTML tag. - Crypt & Decrypt URL with BASE64. User cannot see base64 format in browser src for this link, but he will see tooltip where this URL pointed to or will be shown custom title which can be specified in
titletag parameter. - Backlinks by this tag will not be scanned by any monitoring. It’s like you open new link with javascript at new tab.
- Works on mobile devices too, yep.
This tag was created exceptionally for better SEO-optimization. Any attempts to confuse end-user by phishing links not allowed!
Settings
Just one setting must be turned on under the Tags Settings section in theme config file:
1 | exturl: true |
Below is the usage of exturl tag, which will no longer be supported.
Usage
1 | {% exturl text url [title] %} |
Examples
1 | Welcome to [Theme NexT Organization](https://github.com/theme-next)! |
Welcome to Theme NexT Organization!
If you want new feature or want to report a bug, feel free to open an issue.
And if you have coding skills, NexT will be glad for your pull request.
Webmaster Tools
Google Webmaster Tools
Set the verification string of Google Webmaster Tools which is used in submitting sitemap.
Login to Google Webmaster Tools and go to verification methods and choose HTML Tag, you will get some code:
1 | <meta name=“google-site-verification” content=“XXXXXXXXXXXXXXXXXXXXXXX” /> |
Copy XXXXXXXXXXXXXXXXXXXXXXX value of content key.
Edit theme config file and add or change google_site_verification section:
1 | google_site_verification: XXXXXXXXXXXXXXXXXXXXXXX |
Bing Webmaster Tools
Set the verification string of Bing Webmaster Tools which is used in submitting sitemap.
Login to Bing Webmaster Tools and go to verification methods and choose HTML Tag, you will get some code:
1 | <meta name=“msvalidate.01” content=“XXXXXXXXXXXXXXXXXXXXXXX” /> |
Copy XXXXXXXXXXXXXXXXXXXXXXX value of content key.
Edit theme config file and add or change bing_site_verification section:
1 | bing_site_verification: XXXXXXXXXXXXXXXXXXXXXXX |
Yandex Webmaster Tools
Set the verification string of Yandex Webmaster Tools which is used in submitting sitemap.
Login to Yandex Webmaster Tools and go to verification methods and choose Meta Tag, you will get some code:
1 | <meta name=“yandex-verification” content=“XXXXXXXXXXXXXXXXXXXXXXX” /> |
Copy XXXXXXXXXXXXXXXXXXXXXXX value of content key.
Edit theme config file and add or change yandex_site_verification section:
1 | yandex_site_verification: XXXXXXXXXXXXXXXXXXXXXXX |
Baidu Webmaster Tools
Set the verification string of Baidu Webmaster Tools which is used in submitting sitemap.
Login to Baidu Webmaster Tools and go to verification methods and choose HTML Tag, you will get some code:
1 | <meta name=“baidu-site-verification” content=“XXXXXXXXXXXXXXXXXXXXXXX” /> |
Copy XXXXXXXXXXXXXXXXXXXXXXX value of content key.
Edit theme config file and add or change baidu_site_verification section:
1 | baidu_site_verification: XXXXXXXXXXXXXXXXXXXXXXX |
NexT also supports the baidu push so that the blog will push the url to baidu automatically which is very helpful for SEO. You can enable it by editing values related_posts.enable to true in theme config file.
1 | baidu_push: false |