Giter Club home page Giter Club logo

gaussblog's Introduction

blog

介绍

欢迎来到openGauss官方博客仓库。

怎么在官网写博客

需要将自己写的博客合入到opengauss/blog工程里面,发布后就可以在官网看到

  1. fork opengauss/blog工程到自己的仓库里面,基于自己的仓库写博客并提交Pull Request即可

  2. content/zh/post/ 目录下建立自己的博客目录,里面就可以撰写博客了。博客一般为markdown文件格式

  3. 图片都可以放到自己的博客目录下,对于博客内容引用的图片,使用相对路径,比如在自己的博客目录下 images/pic.png , 博客内容中则引用为 ../images/pic.png;博客首页有每一项博客的概览图片,对于该图片路径,使用绝对路径,例如 /zh/post/blogname/images/title.jpg

怎么预览

写完博客了怎么看写的博客的格式是否正确,图片展示是否正常

博客都为markdown文件,借助一些markdown的预览工具即可查看博客的格式

blog工程是个web服务,可以在本地运行起来后看看效果

  1. blog工程使用go语言的hugo框架,在本地配置好该框架即可运行

  2. windows下安装go:https://studygolang.com/dl 下载go的sdk,安装完后控制台使用 go version 查看是否安装成功

  3. windows下安装hugo:https://github.com/gohugoio/hugo/releases 下载hugo版本,推荐使用 hugo_extended_0.74.3_Windows-64bit.zip

  4. 配置hugo: 将hugo解压,并把路径配置到windows的环境变量里面。例如解压到D:\software\hugo目录下,在windows环境变量新增一项,添加D:\software\hugo即可。重新打开控制台CMD,输入hugo version,查看hugo是否安装成功

  5. 启动web服务:在blog根目录下,打开控制台CMD,输入 hugo server,即可启动服务,浏览器输入 http://localhost:1313/zh/ 就能看到已经正常运行的blog服务了

gaussblog's People

Contributors

edisonxiang avatar cuiping-zhang avatar sunny20180228 avatar zhangxb1993 avatar wurqjackey avatar huohuohuo8 avatar isunshien avatar kydbj avatar xbsdzzj avatar ai-winter avatar justbk2015 avatar ailoooong avatar hello-wangpeiheng avatar xiangxingyong avatar frankxmx avatar totaj0 avatar ye0315 avatar yangbaji9999 avatar knighthood2001 avatar zhongjun2 avatar lee1057 avatar cxb609 avatar oxingcheno avatar yuhaoran1214 avatar dxdouxin avatar liyang0608 avatar suifengyixiao avatar getrootit avatar joannanil avatar gsy150 avatar

Watchers

 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.