zoukankan      html  css  js  c++  java
  • 使用jekyll和prose在github上创建博客

    利用github的pages服务可以很方便地显示和管理我们的静态页面,这样用来做博客是非常适合的。

    1.首先你要有一个github的帐号

    2.创建一个repo,名字叫username.github.io

    3.在本地终端:git clone https://github.com/username/username.github.io

    4.安装jekyll:gem install jekyll

    5.进入username.github.io,然后将这个项目改为jekyll:jekyll new .

    这样就是一个jekyll的项目了,但是还不能用到github上,

    新建一个Gemfile:

    source 'https://ruby.taobao.org'
    gem 'github-pages'

    6.然后将项目同步到github上:然后:bundle install

    git add -A

    git commit -m "initial jekyll"

    git push -u origin master

     


     

    上面就创建了一个最基本的环境,如果要写博文,就在_post目录下面写,然后提交到github,

    就可以在http://username.github.io上面看到了。如果本地要看的话,记得装python ,因为pygments这个是在python里的。

    最后提一下prose:

    在prose.io上面授权你的github帐号之后,就可以直接在网上管理你的博客了。

     

  • 相关阅读:
    web10 动态action的应用
    web09 struts2配置 struts2入门
    web 08 struts2入门 struts2配置 struts包
    web07-jdbcBookStore
    web06-PanduanLogin
    web05-CounterServlet
    web04-LoginServlet
    web03-OutputInfo
    web02-welcomeyou
    web01-helloworld
  • 原文地址:https://www.cnblogs.com/wenning/p/4643503.html
Copyright © 2011-2022 走看看