Richard's blog A fullstack devops engineer.

git Submodule

Git中submodule的使用 面对比较复杂的项目,我们有可能会将代码根据功能拆解成不同的子模块。主项目对子模块有依赖关系,却又并不关心子模块的内部开发流程细节。 这种情况下,通常不会把所有源码都放在同

Hugo基本用法

hugo本地创建、更新、删除文章后同步到gitpage的基本流程: 前提环境: public目录位于blog目录下,属于blog的子仓库submodule 使用命令 git submodule status可看到 注意 写文章后直接sh

Deploy Hugo Site_on Github Pages

将hugo静态博客网页部署到github上 1、选择gitpage的类型 2种github page:个人、项目。这里选个人。 2、建立gitpage和hugo代码仓库 在github上以自己的用户名+gith

Git常见错误汇总

1 无法push A git directory for ‘public’ is found locally with remote(s): origin https://github.com/richard-chen93/.........git If you want to reuse this local git directory instead of cloning again from https://github.com/richard-chen93/......git use the ‘–force’ option. If the local git directory is not the correct repo or you are unsure what this means choose another name with the ‘–name’ option. 删除.git\modules 的 public 2 git push时总让输入密码 git push的时候每

Markdown Syntax

This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.

Headings

The following HTML <h1><h6> elements represent six levels of section headings. <h1> is the highest section level while <h6> is the lowest.

Math Typesetting

Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries.

In this example we will be using KaTeX

  • Create a partial under /layouts/partials/math.html
  • Within this partial reference the Auto-render Extension or host these scripts locally.
  • Include the partial in your templates like so:
{{ if or .Params.math .Site.Params.math }}
{{ partial "math.html" . }}
{{ end }}
  • To enable KaTex globally set the parameter math to true in a project’s configuration
  • To enable KaTex on a per page basis include the parameter math: true in content files.

Placeholder Text

Lorem est tota propiore conpellat pectoribus de pectora summo. Redit teque digerit hominumque toris verebor lumina non cervice subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum.

CJK Unicode Test

The following is part of the CJK text, this page is for test use only.