/blog

Primary LanguageHTMLMIT LicenseMIT

hugoBasicExample

This repository offers an example site for Hugo and also it provides the default content for demos hosted on the Hugo Themes Showcase.

Using

  1. Install Hugo
  2. Clone this repository
git clone https://github.com/gohugoio/hugoBasicExample.git
cd hugoBasicExample
  1. Clone the repository you want to test. If you want to test all Hugo Themes then follow the instructions provided here
  2. Run Hugo and select the theme of your choosing
hugo server -t YOURTHEME
  1. Under /content/ this repository contains the following:
  • A section called /post/ with sample markdown content
  • A headless bundle called homepage that you may want to use for single page applications. You can find instructions about headless bundles over here
  • An about.md that is intended to provide the /about/ page for a theme demo
  1. If you intend to build a theme that does not fit in the content structure provided in this repository, then you are still more than welcome to submit it for review at the Hugo Themes respository

文章发布

1,在post目录下创建目录xxx

2,在xxx目录下创建index.md

3,复制外部文章或者内部文章到index.md,图片会被typora自动复制到 xxx目录下

4,git add && git commit -m "deploy" && git push