Giter Site home page Giter Site logo

zhangxingqiu / zhuowenli.github.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhuowenli/zhuowenli.github.io

0.0 2.0 0.0 39.08 MB

前端技术博客

Home Page: http://www.zhuowenli.com

License: MIT License

ApacheConf 0.03% HTML 7.56% Ruby 0.01% JavaScript 46.73% CSS 45.62% PHP 0.06%

zhuowenli.github.io's Introduction

这是www.zhuowenli.com 这个博客站的所有代码。

欢迎大家star或者fork。

如果遇到什么问题,你可以向我:

环境搭建

安装Ruby

jekyll本身基于Ruby开发,因此,想要在本地构建一个jekyll的环境需要具有Ruby的开发和运行环境。

在windows下,可以使用Rubyinstaller安装。ruby安装说明

安装Bundle

直接使用下面命令即可:

$ gem install bundler

项目展示

clone项目到本地

$ git clone https://github.com/zhuowenli/zhuowenli.github.io.git

进入zhuowenli.github.io这个文件夹

$ cd zhuowenli.github.io

执行bundle命令下载依赖资源:

$ bundle install

资源加载完毕后,使用下面命令,启动本地服务:

$ bundle exec jekyll serve

浏览器输入 localhost:4000 来访问项目。

创建第一篇文章

在根目录新建_posts文件夹。 mkdir _posts

_posts文件夹内新建一个以.md格式结尾的markdown文件。 文件名必须以{:日期}-{:文件名}.md的格式。 touch 2015-09-06-hello-world.md

该文件需要有--- ---的头文件声明,如下:

---
layout: post
title: Hello World!
categories: frontend
tags: [html, css3]
---
  • layout: 指定文章模板
  • title : 声明标题
  • categories: 指定文章分类
  • tags : 标签

浏览器输入 localhost:4000/{:categories}/ 即可访问文章列表,如: localhost:4000/frontend/

浏览器输入 localhost:4000/{:categories}/{:文件名(去掉日期)}.html 即可访问文章,如: localhost:4000/frontend/hello-world.html

zhuowenli.github.io's People

Watchers

 avatar  avatar

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.