Git Product home page Git Product logo

hugo-blog's Introduction

语言:中文 | English

1. git clone 拉取代码

① 用git clone的方式拉取代码至桌面,此时会在桌面生成sulv-hugo-papermod目录

② 进入到sulv-hugo-papermod目录,输入git submodule update --init,表示拉取themes/hugo-PaperMod/下的子模块,里面放的是官方主题

2. 启动界面

③ 把目录回退到sulv-hugo-papermod,在终端输入hugo server -D,在浏览器输入:localhost:1313 即可看到现成的博客模板。

3. 修改信息

模板内部有许多个人信息需要自己配置,请耐心修改完,可以参考博主的建站教程:https://www.sulvblog.cn/posts/blog/

4. Hugo博客交流群

🎉🎉 787018782 🎉🎉

5. shortcodes使用方法

bilibili: {{< bilibili BV1Fh411e7ZH(填 bvid) >}}

youtube: {{< youtube w7Ft2ymGmfc >}}

ppt: {{< ppt src="网址" >}}

douban: {{< douban src="网址" >}}

# src中的链接一定不要加https://或http://,可以选择不加www;若desc写了,则在浏览器会显示desc的值
link: {{< link src="www.sulvblog.cn" desc="https://www.sulvblog.cn" >}}
gallery:

{{< gallery >}}
{{< figure src="https://www.sulvblog.cn/posts/read/structural_thinking/0.png" >}}
{{< figure src="https://www.sulvblog.cn/posts/read/structural_thinking/0.png" >}}
{{< /gallery >}}

5. 可能遇到的问题

  1. 有些使用者会部署到github,可能遇到跨系统的问题,如提示LF will be replaced by CRLF in ******,这时输入命令:git config core.autocrlf false,解决换行符自动转换的问题。

hugo-blog's People

Contributors

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