Giter Site home page Giter Site logo

tech-blog's Introduction

tech blog

TODO

  1. 修改 hugo.yaml 中的元数据
  2. 清理 posts
  3. typora 到 hugo 转换脚本

Hugo 相关

安装 Hugo:brew install hugo

初始化新站点:hugo new site tech-blog

第一次安装themes/diary

# If your website is using Git as version control, please do as follows:
# Fetch the theme dir:
# From the root of your Hugo site, open the terminal and execute:
git submodule add https://github.com/AmazingRise/hugo-theme-diary.git themes/diary

# Then update the git repository from the root of your site:
git submodule update --remote --merge

# Run example site.
cd themes/diary/exampleSite:
hugo server --themesDir ../..

# commit .gitmodules and another file into root repo!

更新themes/diary

# Then update the git repository from the root of your site:
git submodule update --remote --merge

# Run example site.
cd themes/diary/exampleSite
hugo server --themesDir ../..

# commit gitmodule change into root repo!

将静态文件发布到 XXX.github.io/tech-blog/

  1. hugo.yaml 中设置 baseURL: https://XXX.github.io/tech-blog/
  2. md 文件中引用图片全部需要改为类似 "/tech-blog/images/chinese.jpg"
  3. tech-blog 这个 repo 必须要是 public,才能免费发布到 github pages
  4. 在 repo 的 Settings 中 GitHub Pages 标签中,指定分支和目录,开启该项目的 GitHub Pages。多项目部署在同一个GitHub Pages

tech-blog's People

Contributors

joelz 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.