Git Product home page Git Product logo

blog-builder's Introduction

描述

此仓库是https://www.nuobel.com网站构建系统

网站使用gatsby构建,用于书写markdown格式的文章

怎么使用(How use it?)

  • git clone [email protected]:One-boy/blog-builder.git
  • npm install
  • npm start
  • 浏览器打开(open)http://localhost:8000/即可查看

目录介绍

  • markdownFiles:存放 markdown 博客的文件夹
  • src:网站构建系统源码
  • gatsby-*.js:gatsby 相关配置文件

怎么写文章?

  • 请在markdownFiles文件夹里面命名文件夹或 md 文件

  • 执行npm start并访问http://localhost:8000/可自行开发博客框架系统

  • 访问http://localhost:8000/___graphql可进入graphql查询界面

  • 执行npm run build可打包,并存放在public文件夹下,只需要拷贝该文件夹到 web 服务器,静态网站就成了!

md 格式化数据解释

每一个 md 文件头部都有一段格式化数据,用来描述标题、时间、标签和分类等信息,如下:

---
title: "(11)SVG动画"
date: "2020-08-12 13:50"
tag: "svg,svg动画"
category: "SVG"
---

其它

写文章只支持.md格式

markdown 文章 ui 样式采用github风格

markdown 文章内高亮采用prismjs

文章支持本地图片、本地文件和本地音视频,方便在文章内引入本地资源,打包时也会打入。

blog-builder's People

Contributors

one-boy avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

sdltf hhhaiai

blog-builder'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.