Hexo使用文档


原文链接: Hexo使用文档

leanote博客评论设置之Disqus
Hexo document
Hexo 中文文档
说明:hexo 还是很不错的

hexo 按更新时间排序 vi _config.yml

index_generator:
order_by: -update # order_by: Posts order. (Order by date descending by default)
##

0x01 安装node.js

node.js稳定版
ln -s /home/kun/mysofltware/node-v0.10.28-linux-x64/bin/node /usr/local/bin/node
ln -s /home/kun/mysofltware/node-v0.10.28-linux-x64/bin/npm /usr/local/bin/npm

0x02 配置node.js

通过npm config set 生成 .npmrc
prefix=D:\Users\nodejs\npm
cache=D:\Users\nodejs\npm-cache

0x03 安装 hexo

npm install -g hexo
查看安装结果
npm list -g **hexo**

Ubuntu

sudo apt-get install nodejs
sudo ln -s /usr/bin/nodejs /usr/bin/node
npm install -g cnpm --registry=https://registry.npm.taobao.org
sudo npm install cnpm -g
sudo cnpm install hexo -g
sudo cnpm install

"hexo": "^3.2.0",
"hexo-toc": "^0.0.6",
"hexo-server": "^0.2.0",
"hexo-github": "^1.0.1",
"hexo-deployer-git": "^0.1.0",
"hexo-generator-archive": "^0.1.4",
"hexo-generator-category": "^0.1.3",
"hexo-generator-feed": "^1.1.0",
"hexo-generator-index": "^0.2.0",
"hexo-generator-sitemap": "^1.1.2",
"hexo-generator-tag": "^0.2.0",
"hexo-renderer-ejs": "^0.2.0",
"hexo-renderer-sass": "^0.2.0",
"hexo-renderer-jade": "^0.3.0",
"hexo-renderer-marked": "^0.2.10",
"hexo-renderer-stylus": "^0.3.1",

hexo

npm install hexo -g #安装
npm update hexo -g #升级
hexo init #初始化
简写

hexo n "我的博客" == hexo new "我的博客" #新建文章
hexo p == hexo publish
hexo g == hexo generate#生成
hexo s == hexo server #启动服务预览
hexo d == hexo deploy#部署

服务器

hexo server #Hexo 会监视文件变动并自动更新,您无须重启服务器。
hexo server -s #静态模式
hexo server -p 5000 #更改端口
hexo server -i 192.168.1.1 #自定义 IP

hexo clean #清除缓存 网页正常情况下可以忽略此条命令
hexo g #生成静态网页
hexo d #开始部署
python -m SimpleHTTPServer
监视文件变动

hexo generate #使用 Hexo 生成静态文件快速而且简单
hexo generate --watch #监视文件变动

完成后部署

两个命令的作用是相同的
hexo generate --deploy
hexo deploy --generate
hexo deploy -g
hexo server -g

草稿

hexo publish [layout]</p> <p>模版</p> <p>hexo new "postName" #新建文章<br /> hexo new page "pageName" #新建页面<br /> hexo generate #生成静态页面至public目录<br /> hexo server #开启预览访问端口(默认端口4000,'ctrl + c'关闭server)<br /> hexo deploy #将.deploy目录部署到GitHub</p> <p>hexo new [layout] <title><br /> hexo new photo "My Gallery"<br /> hexo new "Hello World" --lang tw</p> <p>模版(Scaffold)</p> <p>hexo new photo "My Gallery"</p> <p>设置文章摘要</p> <p>以上是文章摘要 以下是余下全文<br /> 写作</p> <p>hexo new page <title><br /> hexo new post <title></p> <p>变量 描述<br /> :title 标题<br /> :year 建立的年份(4 位数)<br /> :month 建立的月份(2 位数)<br /> :i_month 建立的月份(去掉开头的零)<br /> :day 建立的日期(2 位数)<br /> :i_day 建立的日期(去掉开头的零)<br /> 推送到服务器上</p> <p>hexo n #写文章<br /> hexo g #生成<br /> hexo d #部署 #可与hexo g合并为 hexo d -g</p> <p>报错</p> <p>1.找不到git部署</p> <p>ERROR Deployer not found: git<br /> 解决方法</p> <p>npm install hexo-deployer-git --save</p> <p>3.部署类型设置git</p> <p>hexo 3.0 部署类型不再是github,_config.yml 中修改</p> <h1 id="deployment">Deployment</h1> <h2 id="docs-http-hexo-io-docs-deployment-html">Docs: <a href="http://hexo.io/docs/deployment.html" target="_blank">http://hexo.io/docs/deployment.html</a></h2> <p>deploy:<br /> type: git<br /> repository: git@<strong><em>.github.com:</em></strong>/***.github.io.git<br /> branch: master</p> <ol> <li>xcodebuild<br /> <br /></li> </ol> <p>xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance</p> <p>npm install bcrypt</p> <ol> <li>RSS不显示<br /> <br /></li> </ol> <p>安装RSS插件</p> <p>npm install hexo-generator-feed --save</p> <p>开启RSS功能</p> <p>编辑hexo/_config.yml,添加如下代码:</p> <p>rss: /atom.xml #rss地址 默认即可</p> <h3 id="0x04-创建项目">0x04 创建项目</h3> <p><code>hexo init rinetd</code><br /> <code>hexo new rinetd</code><br /> <code>hexo g</code></p> <h3 id="0x05-主题安装">0x05 主题安装</h3> <p>maupassant<br /> <code>git clone https://github.com/tufu9441/maupassant-hexo.git themes/maupassant</code><br /> <code>npm install hexo-renderer-sass --save</code><br /> <code>npm install hexo-renderer-jade --save</code></p> <h2 id="0x06-配置多说">0x06 配置多说</h2> <p>申请多说开发者帐号<a href="http://duoshuo.com/create-site" target="_blank">注册</a><br /> <a href="http://api.duoshuo.com/sites/listTopThreads.json?short_name=jyprince" target="_blank">测试帐号</a></p> <h2 id="0x07-配置disqus">0x07 配置disqus</h2> <p><a href="https://disqus.com/admin/signup/?utm_source=New-Site" target="_blank">申请Disqus帐号</a></p> <p><a href="http://segmentfault.com/a/1190000002632530" target="_blank">http://segmentfault.com/a/1190000002632530</a></p> </div> <div class="clear"></div> </div> </div> </article> <div class="clear"></div> <p class="post-tags"> <span class="fa fa-tags">Tags:</span> <a rel="tag" href="../../../../tags/hexo">Hexo</a> </p> <div id="related-posts"> <div class="related-inner"> </div> </div> <section id="comments" class="themeform"> <div id="gitment"></div> <link rel="stylesheet" href="https://imsun.github.io/gitment/style/default.css"> <script src="https://imsun.github.io/gitment/dist/gitment.browser.js"></script> <script> var gitment = new Gitment({ id: location.pathname, owner: 'rinetd', repo: 'rinetd.github.io', oauth: { client_id: '89af57db85ca20b7668c', client_secret: '4e57a031d7bd29f740559a907db2fe0efb3bf813', }, }) gitment.render('gitment') </script> </section> <section id="comments" class="themeform"> </section> </div> </div> <div class="sidebar s1 collapsed" data-position="left" data-layout="col-3cm" data-sb-id="s1"> <a class="sidebar-toggle" title="Expand Sidebar"> <i class="fas icon-sidebar-toggle"></i> </a> <div class="sidebar-content"> <div class="sidebar-top group"> <p>Follow:</p> <ul class="social-links"> <li> <a class="social-tooltip" href="mailto:" title="Email"> <i class="fa fa-envelope"></i></a> </li> <li> <a class="social-tooltip" href="//github.com/" title="GitHub"><i class="fa fa-github"></i></a> </li> <li> <a class="social-tooltip" title="RSS Feed" aria-label="RSS Feed" href="../../../../feed" target="_blank" style="color:rgba(255,255,255,0.7)"> <i class="fa fa-rss"></i> </a> </li> </ul> </div> <ul class="post-nav group"> <li class="previous"> <a href="../../../../post/basic/%E9%98%BF%E9%87%8C%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8/" rel="prev"> <i class="fa fa-chevron-left"></i> <strong>Previous Post</strong> <span>阿里云</span> </a> </li> </ul> <div id="categories-2" class="widget widget_categories"><h3>分类</h3> <ul> <li class="cat-item cat-item-1"> <a href="../../../../categories/android/">Android</a> <small>(17)</small> </li> <li class="cat-item cat-item-1"> <a href="../../../../categories/devops/">Devops</a> <small>(63)</small> </li> <li class="cat-item cat-item-1"> <a href="../../../../categories/docker/">Docker</a> <small>(15)</small> </li> <li class="cat-item cat-item-1"> <a href="../../../../categories/golang/">Golang</a> <small>(77)</small> </li> <li class="cat-item cat-item-1"> <a href="../../../../categories/linux/">Linux</a> <small>(77)</small> </li> <li class="cat-item cat-item-1"> <a href="../../../../categories/linux-%E5%91%BD%E4%BB%A4/">Linux-命令</a> <small>(113)</small> </li> <li class="cat-item cat-item-1"> <a href="../../../../categories/windows/">Windows</a> <small>(5)</small> </li> <li class="cat-item cat-item-1"> <a href="../../../../categories/%E5%89%8D%E7%AB%AF%E6%8A%80%E6%9C%AF/">前端技术</a> <small>(3)</small> </li> <li class="cat-item cat-item-1"> <a href="../../../../categories/%E5%B5%8C%E5%85%A5%E5%BC%8F/">嵌入式</a> <small>(22)</small> </li> <li class="cat-item cat-item-1"> <a href="../../../../categories/%E5%B7%A5%E5%85%B7/">工具</a> <small>(1)</small> </li> <li class="cat-item cat-item-1"> <a href="../../../../categories/%E5%B8%B8%E7%94%A8%E7%AE%97%E6%B3%95/">常用算法</a> <small>(2)</small> </li> <li class="cat-item cat-item-1"> <a href="../../../../categories/%E6%95%B0%E6%8D%AE%E5%BA%93/">数据库</a> <small>(36)</small> </li> <li class="cat-item cat-item-1"> <a href="../../../../categories/%E6%96%87%E6%9C%AC%E7%BC%96%E8%BE%91/">文本编辑</a> <small>(27)</small> </li> <li class="cat-item cat-item-1"> <a href="../../../../categories/%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F/">正则表达式</a> <small>(3)</small> </li> <li class="cat-item cat-item-1"> <a href="../../../../categories/%E7%94%9F%E6%B4%BB%E6%8A%80%E5%B7%A7/">生活技巧</a> <small>(4)</small> </li> <li class="cat-item cat-item-1"> <a href="../../../../categories/%E7%A8%8B%E5%BA%8F%E5%91%98/">程序员</a> <small>(1)</small> </li> <li class="cat-item cat-item-1"> <a href="../../../../categories/%E7%BD%91%E7%BB%9C%E5%AE%89%E5%85%A8/">网络安全</a> <small>(39)</small> </li> <li class="cat-item cat-item-1"> <a href="../../../../categories/%E9%9B%86%E7%BE%A4%E7%9B%91%E6%8E%A7/">集群监控</a> <small>(7)</small> </li> <li class="cat-item cat-item-1"> <a href="../../../../categories/%E9%9D%99%E6%80%81%E5%8D%9A%E5%AE%A2/">静态博客</a> <small>(14)</small> </li> <li class="cat-item cat-item-1"> <a href="../../../../categories/%E9%AB%98%E6%95%B0/">高数</a> <small>(2)</small> </li> </ul> </div> </div> </div> <div class="sidebar s2 collapsed" data-position="right" data-layout="col-3cm" data-sb-id="s2"> <a class="sidebar-toggle" title="Expand Sidebar"> <i class="fas icon-sidebar-toggle"></i> </a> <div class="sidebar-content"> <div class="sidebar-top group"> <p>More</p> </div> <ul class="post-nav group"> <li class="next"> <a href="../../../../linux/cmd/linux-gdb/" rel="next"> <i class="fa fa-chevron-right"></i> <strong>Next post</strong> <span>gdb使用笔记</span> </a> </li> </ul> <div id="tag_cloud-2" class="widget widget_tag_cloud"><h3>标签云</h3> <div class="tagcloud post-tags"> <a rel="tag" href="../../../../tags/ansible/" class="tag-link-12" title="1 Posts">ansible<small>(12)</small></a> <a rel="tag" href="../../../../tags/awesome/" class="tag-link-3" title="1 Posts">awesome<small>(3)</small></a> <a rel="tag" href="../../../../tags/centos7/" class="tag-link-2" title="1 Posts">centos7<small>(2)</small></a> <a rel="tag" href="../../../../tags/css/" class="tag-link-18" title="1 Posts">css<small>(18)</small></a> <a rel="tag" href="../../../../tags/curd/" class="tag-link-3" title="1 Posts">curd<small>(3)</small></a> <a rel="tag" href="../../../../tags/curl/" class="tag-link-2" title="1 Posts">curl<small>(2)</small></a> <a rel="tag" href="../../../../tags/docker/" class="tag-link-18" title="1 Posts">docker<small>(18)</small></a> <a rel="tag" href="../../../../tags/drone/" class="tag-link-18" title="1 Posts">drone<small>(18)</small></a> <a rel="tag" href="../../../../tags/emacs/" class="tag-link-12" title="1 Posts">emacs<small>(12)</small></a> <a rel="tag" href="../../../../tags/encode/" class="tag-link-3" title="1 Posts">encode<small>(3)</small></a> <a rel="tag" href="../../../../tags/etcd/" class="tag-link-4" title="1 Posts">etcd<small>(4)</small></a> <a rel="tag" href="../../../../tags/flannel/" class="tag-link-2" title="1 Posts">flannel<small>(2)</small></a> <a rel="tag" href="../../../../tags/git/" class="tag-link-4" title="1 Posts">git<small>(4)</small></a> <a rel="tag" href="../../../../tags/golang/" class="tag-link-84" title="1 Posts">golang<small>(84)</small></a> <a rel="tag" href="../../../../tags/gradle/" class="tag-link-3" title="1 Posts">gradle<small>(3)</small></a> <a rel="tag" href="../../../../tags/haproxy/" class="tag-link-5" title="1 Posts">haproxy<small>(5)</small></a> <a rel="tag" href="../../../../tags/hexo/" class="tag-link-2" title="1 Posts">hexo<small>(2)</small></a> <a rel="tag" href="../../../../tags/html/" class="tag-link-2" title="1 Posts">html<small>(2)</small></a> <a rel="tag" href="../../../../tags/http/" class="tag-link-2" title="1 Posts">http<small>(2)</small></a> <a rel="tag" href="../../../../tags/hugo/" class="tag-link-13" title="1 Posts">hugo<small>(13)</small></a> <a rel="tag" href="../../../../tags/imagemagick/" class="tag-link-2" title="1 Posts">imagemagick<small>(2)</small></a> <a rel="tag" href="../../../../tags/ip/" class="tag-link-3" title="1 Posts">ip<small>(3)</small></a> <a rel="tag" href="../../../../tags/iproute2/" class="tag-link-5" title="1 Posts">iproute2<small>(5)</small></a> <a rel="tag" href="../../../../tags/iptables/" class="tag-link-13" title="1 Posts">iptables<small>(13)</small></a> <a rel="tag" href="../../../../tags/javascript/" class="tag-link-6" title="1 Posts">javascript<small>(6)</small></a> <a rel="tag" href="../../../../tags/jwt/" class="tag-link-3" title="1 Posts">jwt<small>(3)</small></a> <a rel="tag" href="../../../../tags/kubernetes/" class="tag-link-11" title="1 Posts">kubernetes<small>(11)</small></a> <a rel="tag" href="../../../../tags/linux/" class="tag-link-6" title="1 Posts">linux<small>(6)</small></a> <a rel="tag" href="../../../../tags/lvs/" class="tag-link-8" title="1 Posts">lvs<small>(8)</small></a> <a rel="tag" href="../../../../tags/makefile/" class="tag-link-2" title="1 Posts">makefile<small>(2)</small></a> <a rel="tag" href="../../../../tags/mariadb/" class="tag-link-9" title="1 Posts">mariadb<small>(9)</small></a> <a rel="tag" href="../../../../tags/maven/" class="tag-link-2" title="1 Posts">maven<small>(2)</small></a> <a rel="tag" href="../../../../tags/meteor/" class="tag-link-7" title="1 Posts">meteor<small>(7)</small></a> <a rel="tag" href="../../../../tags/ml/" class="tag-link-2" title="1 Posts">ml<small>(2)</small></a> <a rel="tag" href="../../../../tags/mysql/" class="tag-link-50" title="1 Posts">mysql<small>(50)</small></a> <a rel="tag" href="../../../../tags/nginx/" class="tag-link-26" title="1 Posts">nginx<small>(26)</small></a> <a rel="tag" href="../../../../tags/nmap/" class="tag-link-3" title="1 Posts">nmap<small>(3)</small></a> <a rel="tag" href="../../../../tags/npm/" class="tag-link-3" title="1 Posts">npm<small>(3)</small></a> <a rel="tag" href="../../../../tags/oauth2/" class="tag-link-2" title="1 Posts">oauth2<small>(2)</small></a> <a rel="tag" href="../../../../tags/pandoc/" class="tag-link-2" title="1 Posts">pandoc<small>(2)</small></a> <a rel="tag" href="../../../../tags/php/" class="tag-link-3" title="1 Posts">php<small>(3)</small></a> <a rel="tag" href="../../../../tags/powershell/" class="tag-link-2" title="1 Posts">powershell<small>(2)</small></a> <a rel="tag" href="../../../../tags/prometheus/" class="tag-link-8" title="1 Posts">prometheus<small>(8)</small></a> <a rel="tag" href="../../../../tags/python/" class="tag-link-5" title="1 Posts">python<small>(5)</small></a> <a rel="tag" href="../../../../tags/redis/" class="tag-link-2" title="1 Posts">redis<small>(2)</small></a> <a rel="tag" href="../../../../tags/responsive/" class="tag-link-3" title="1 Posts">responsive<small>(3)</small></a> <a rel="tag" href="../../../../tags/restful/" class="tag-link-6" title="1 Posts">restful<small>(6)</small></a> <a rel="tag" href="../../../../tags/rsync/" class="tag-link-2" title="1 Posts">rsync<small>(2)</small></a> <a rel="tag" href="../../../../tags/scrapy/" class="tag-link-8" title="1 Posts">scrapy<small>(8)</small></a> <a rel="tag" href="../../../../tags/scss/" class="tag-link-2" title="1 Posts">scss<small>(2)</small></a> <a rel="tag" href="../../../../tags/sed/" class="tag-link-3" title="1 Posts">sed<small>(3)</small></a> <a rel="tag" href="../../../../tags/seo/" class="tag-link-5" title="1 Posts">seo<small>(5)</small></a> <a rel="tag" href="../../../../tags/shell/" class="tag-link-8" title="1 Posts">shell<small>(8)</small></a> <a rel="tag" href="../../../../tags/ssh/" class="tag-link-3" title="1 Posts">ssh<small>(3)</small></a> <a rel="tag" href="../../../../tags/stm32/" class="tag-link-5" title="1 Posts">stm32<small>(5)</small></a> <a rel="tag" href="../../../../tags/swagger/" class="tag-link-2" title="1 Posts">swagger<small>(2)</small></a> <a rel="tag" href="../../../../tags/swarm/" class="tag-link-2" title="1 Posts">swarm<small>(2)</small></a> <a rel="tag" href="../../../../tags/sysbench/" class="tag-link-2" title="1 Posts">sysbench<small>(2)</small></a> <a rel="tag" href="../../../../tags/sysctl/" class="tag-link-2" title="1 Posts">sysctl<small>(2)</small></a> <a rel="tag" href="../../../../tags/tc/" class="tag-link-2" title="1 Posts">tc<small>(2)</small></a> <a rel="tag" href="../../../../tags/tcpdump/" class="tag-link-2" title="1 Posts">tcpdump<small>(2)</small></a> <a rel="tag" href="../../../../tags/timezone/" class="tag-link-2" title="1 Posts">timezone<small>(2)</small></a> <a rel="tag" href="../../../../tags/tshark/" class="tag-link-2" title="1 Posts">tshark<small>(2)</small></a> <a rel="tag" href="../../../../tags/ubuntu/" class="tag-link-2" title="1 Posts">ubuntu<small>(2)</small></a> <a rel="tag" href="../../../../tags/ulimit/" class="tag-link-2" title="1 Posts">ulimit<small>(2)</small></a> <a rel="tag" href="../../../../tags/vim/" class="tag-link-11" title="1 Posts">vim<small>(11)</small></a> <a rel="tag" href="../../../../tags/webpack3/" class="tag-link-2" title="1 Posts">webpack3<small>(2)</small></a> <a rel="tag" href="../../../../tags/windows/" class="tag-link-2" title="1 Posts">windows<small>(2)</small></a> <a rel="tag" href="../../../../tags/wireshark/" class="tag-link-2" title="1 Posts">wireshark<small>(2)</small></a> <a rel="tag" href="../../../../tags/xidel/" class="tag-link-2" title="1 Posts">xidel<small>(2)</small></a> <a rel="tag" href="../../../../tags/xml/" class="tag-link-2" title="1 Posts">xml<small>(2)</small></a> <a rel="tag" href="../../../../tags/yaml/" class="tag-link-2" title="1 Posts">yaml<small>(2)</small></a> <a rel="tag" href="../../../../tags/%E5%BE%AE%E6%9C%8D%E5%8A%A1/" class="tag-link-2" title="1 Posts">微服务<small>(2)</small></a> </div> </div> </div> </div>` </div> </div> </div> </div> </div> <footer id="footer"> <section class="container" id="footer-bottom"> <div class="container-inner"> <a id="back-to-top" href="#"><i class="fa fa-angle-up"></i></a> <div class="pad group"> <div class="grid one-half"> <div id="copyright"> <p>Copyright (c) 2017. All rights reserved. (版权所有) <a href='http://www.miitbeian.gov.cn/'>鲁ICP备17074587号-1</a></p> </div> </div> <div class="grid one-half last"> <ul class="social-links"> <li> <a class="social-tooltip" title="On WeiBo" href="http://weibo.com/rinetd" target="_blank"> <i class="fa fa-weibo"></i> </a> </li> <li> <a class="social-tooltip" title="On Twitter" href="https://twitter.com/rinetd" target="_blank"> <i class="fa fa-twitter"></i> </a> </li> <li> <a class="social-tooltip" title="On GitHub" href="https://github.com/rinetd" target="_blank"> <i class="fa fa-github"></i> </a> </li> </ul> </div> </div> </div> </section> </footer> <div class="back-to-top" id="back-to-top"> <i class="fa fa-angle-double-up"></i> </div> <script type='text/javascript'> var HUParams={ "_disabled":[], "SmoothScroll":{ "Enabled":true, "Options":{"touchpadSupport":false} }, "centerAllImg":"1", "timerOnScrollAllBrowsers":"1", "extLinksStyle":"1", "extLinksTargetExt":"1", "extLinksSkipSelectors":{ "classes":["btn","button"],"ids":[] }, "imgSmartLoadEnabled":"1", "imgSmartLoadOpts":{ "parentSelectors":[".container .content",".container .sidebar","#footer","#header-widgets"], "opts":{ "excludeImg":[".tc-holder-img"], "fadeIn_options":100 } }, "goldenRatio":"1.618","gridGoldenRatioLimit":"350", "sbStickyUserSettings":{"desktop":true,"mobile":true}, "isWPMobile":"", "menuStickyUserSettings":{ "desktop":"stick_up", "mobile":"stick_up" }, "isDevMode":"", "ajaxUrl":"https:\/\/demo-hueman.presscustomizr.com\/?huajax=1", "frontNonce":{"id":"HuFrontNonce","handle":"798e5956c0"}, "userStarted":{"with":"before|1.0.4","on":{"date":"2017-05-22 16:30:22.000000","timezone_type":3,"timezone":"UTC"}}, "isWelcomeNoteOn":"","welcomeContent":""}; </script> <script src="https://cdn.bootcss.com/lodash-compat/3.10.2/lodash.min.js"></script> <script src="https://cdn.bootcss.com/jquery/1.9.0/jquery.min.js"></script> <script type="text/javascript" src="../../../../front/js/scripts.js"></script> <script> $(".topbar-toggle-down").click(function(){ $("#nav-topbar").css("overflow","visible"); }); </script> <script> window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date; ga('create', 'UA-106129999-2', 'auto'); ga('send', 'pageview'); </script> <script async src='//www.google-analytics.com/analytics.js'></script> <noscript> <iframe src="//www.googletagmanager.com/ns.html?id=GTM-5HM5XM2" height="0" width="0" style="display:none;visibility:hidden"></iframe> </noscript> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-5HM5XM2'); </script> <script id="baidu_analytics"> var _hmt = _hmt || []; (function() { if (window.location.hostname === 'localhost') return; var hm = document.createElement("script"); hm.async = true; hm.src = "https://hm.baidu.com/hm.js?e2103759b6030b3c4ac84c63c542e493"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> </body> </html>