Code Monkey home page Code Monkey logo

blog.cabbit.me's Introduction

blog.cabbit.me

Wang Zhi Yong's blog site.

  • Built upon jekyll, pure static web site
  • "Hanzi" provides best reading experience
  • Grunt tool to implement automotive delivery
  • Bower as the package management

Please feel free to download and build you own portfolio

Development

  1. Fork as new git solution
  2. Modify site's configurations
_config.yml

url: http://localhost:9007
is_debug: true

author_info: <a href="http://blog.cabbit.me/">wizcabbit</a>
  1. Delete Google Analytics or replace with your own
Line 29 of _layouts/default.html

<script type="text/javascript">
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create','UA-55766499-2','auto');ga('send','pageview');
</script>
  1. Delete Disqus or replace with your own
Line 13 of _layouts/post.html

<div id="comments">
    <div id="disqus_thread"></div>
    <script type="text/javascript">
      var disqus_shortname = 'blogcabbitme';
      (function() {
          var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
          dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
          (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
      })();
    </script>
    <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
  </div>
  1. Jekyll's build command in base path of solution:
jekyll build --watch

Deploy

  1. Modify site's configurations:
_config_release.yml

url: http://blog.cabbit.me
is_debug: false
  1. Modify grunt's automotive tasks (FTP settings):
Line 44 of Gruntfile.js

ftpush: {
  deploy: {
    auth: {
      host: 'srv.cabbit.me',
      port: 21,
      authKey: 'www'
    },
    src: './_site',
    dest: './blog'
  }
  1. Grunt to automotive deploy site
grunt release // Only release site, combine static resources and minify them

or

grunt deploy // Release and deploy site to FTP

blog.cabbit.me's People

Contributors

wizcabbit avatar

Stargazers

51vip-py avatar

Watchers

 avatar

blog.cabbit.me's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.