Code Monkey home page Code Monkey logo

hugo-jingzhe-template's Introduction

驱动:Hugo https://gohugo.io/

模板来源: https://github.com/koobai/blog

原作者主页:https://koobai.com/

在此基础上做了一些小改动,版权归原作者所有。

第1步:Fork项目

image.png

点击右上角Fork。

第2步:修改配置(必做)

1.修改Github Action变量

豆瓣标记同步

获取Douban用户名

获取你的豆瓣用户名,不知道用户名是啥,可以打开豆瓣网页版,切到个人主页

image.png

在Github的Secrets中添加变量

打开你fork的工程,依次点击Settings->Secrets and variables->New repository secret

image.png

修改为你的豆瓣账号即可。

2. 配置修改

  1. 打开根目录下的Hugo博客配置文件
  2. 修改baseURL为你部署博客的地址(注意等号后的空格。)

image.png

第3步:静态托管

以CloudFlare托管为例:

1.登录CloudFlare控制台 https://dash.cloudflare.com/ 413216eba6f5cd931980cb9c73b0a88.png

  1. 在Workers & Pages 页签下,创建一个Page image.png

  2. 选择 Connect to Git,并授权Github

image.png

3.选择Fork的项目,并在Frameworks中选择Hugo,其他均保持默认。

413216eba6f5cd931980cb9c73b0a88.png

如此可以完成部署。

hugo-jingzhe-template's People

Contributors

ygria avatar jomo0713 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.