GithubHelp home page GithubHelp logo

zhangziying45 / xgfe.github.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xgfe/xgfe.github.io

0.0 1.0 0.0 30.17 MB

xgfe blog

Home Page: https://xgfe.github.io

CSS 46.75% JavaScript 26.48% HTML 26.66% Shell 0.10%

xgfe.github.io's Introduction

blog

博客系统基于Hexo搭建,使用主题next.mist。站内搜索使用swiftype

环境搭建

  • 基本环境

     npm install -g hexo-cli
    
  • 获取项目代码

     git clone https://github.com/xgfe/xgfe.github.io.git blog
     cd blog
     npm install
    
  • 写博客

     hexo s [-p 5000] // 启动博客本地环境,默认4000端口,供预览使用
    

    博文路径

     /source/_posts/{namespace}/{title}.md
    

    ,直接复制已有文章md文件,修改头部信息即可。

  • 提交代码,通知相关人员审核发布

博客规范

头部“---”行以前的部分为博文信息定义部分

title: 博客说明书                             // 博文名称
date: 2015-09-24 00:00:00                   // 博文创建时间
updated: 2015-09-25 00:00:00                // 博文修改时间【可选】
categories:                                 // 博文分类,可多级,有层级之分
- felix                                     // 一级分类为{namespace}即它所在文件夹的名称
- blog                                      // 二级分类个人管理,供归纳自己文章用【可选】
tags:                                       // 标签,可多个,无层级之分
- blog
- hexo
- node
---

注意事项

  • 每个人得{namespace}理论上只有一个,即所有博文放在一个文件夹下
  • 创建时间发布后不可修改,因为所有博客的先后顺序只与创建时间有关,但在第一次发布时可酌情修改
  • 文件名不能出现中文,单词用中横线分割,因为文件名会直接出现再生成博文的url路径中(文件里面配置的title才是blog名)
  • 标签统一用小写,为了避免一个标签出现因大小写不同出现多个的情况,或者可以自己先查看标签云再添加,尽量不要添加辨识度低的标签
  • 记得给文章通过添加<!--more-->来进行全文简介
  • 贡献文章时通过fork到本人仓库修改完后提交PR的方式进行
  • 文章里面需要展示的图片等静态资源尽量通过链接的方式引入,不要放在项目资源里

后期规划

  • 增加githook,做codereview
  • 推广方案待定

展望

  • 积累博文库存
  • 提高文章质量
  • 扩大业内影响力
  • 以能挂广告攒团建费为目标

感谢

感谢xgfe团队的所有成员的支持和贡献,感谢小伟哥的耐心指导和付出。

即刻起航,扬帆远行。

xgfe.github.io's People

Contributors

ranrantu avatar feyy avatar catherine33 avatar lulutia avatar shadow-0459 avatar py693fz720 avatar leowing avatar cocoagithub avatar hardhpp avatar guanxf avatar wanglibincode avatar zero21ke avatar happycmk avatar daisygxl avatar lianyueqing avatar shsoul avatar thedevilking avatar chenyu1520 avatar bigsquirrel avatar hellowukong avatar beijiyibei avatar y8n avatar chenwubai avatar huanlifen avatar heohpro avatar tinysymphony avatar smartboylovepramgram avatar zhouxiongking avatar haifeng-l avatar sudaxi avatar

Watchers

James Cloos 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.