Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

Vinllen Chen


但行好事,莫问前程

Ghost搭建博客个人折腾总结

  之前用ghost搭建好博客后,发现有些主题有问题,今天把博客升级到0.5.8,终于折腾完毕,写写总结吧。

</div>

    {{! Ghost outputs important scripts and data with this tag }}
    {{ghost_foot}}

    {{! The main JavaScript file for Ichi }}
    <!--[if lte IE 8]>
        <script type="text/javascript" src="{{asset "js/outdatedBrowser.min.js"}}"></script>
    <![endif]-->
    <script type="text/javascript" src="{{asset "js/min/built.js"}}"></script>

    <script>
      $(document).foundation();
    </script>

<script> <!--就是这一段-->  
var _hmt = _hmt || [];  
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?2357b1d140f79f7486059ecffaa4adbd";
  var s = document.getElementsByTagName("script")[0];
  s.parentNode.insertBefore(hm, s);
})();
</script> <!--就是这一段-->

</body>  
</html>  

  总结:主题可以直接下载,也可以自己做;写博客用的是markdown语言,一开始有点不适应,适应后发现挺方便;nginx用于反向代理,转接80端口,当然也可以不用nginx,只要把config.js里面的2368默认端口修改为80就行;版本升级就没啥,按给的链接搞就好了;设置about页面和contact页面,其实也可以自己搞两个静态页面完了链接上去。


About the author

vinllen chen

Beijing, China

格物致知


Discussions

comments powered by Disqus