官方文档 There are also a few ways to install Git on Windows. The most official build is available for download on the Git website. Just go to https://git-scm.com/download/win and the download will start automatically. Note that this is a project called Git for Windows, which is separate from Git itself; for more information on it, go to https://gitforwindows.org. To get an automated installation you can use the Git Chocolatey package. Note that the Chocolatey package is community maintained.
- Open the MSI file you downloaded and follow the prompts to install Go.By default, the installer will install Go to Program Files or Program Files (x86). You can change the location as needed. After installing, you will need to close and reopen any open command prompts so that changes to the environment made by the installer are reflected at the command prompt.(安装完成后关闭所有cmd)
- Verify that you've installed Go.
- In Windows, click the Start menu.
- In the menu's search box, type cmd, then press the Enter key.
- In the Command Prompt window that appears, type the following command:
- Confirm that the command prints the installed version of Go.
- Download the archive for the desired edition, operating system, and architecture
- Extract the archive
- Move the executable to the desired directory
- Add this directory to the PATH environment variable
- Verify that you have execute permission on the file
Please consult your operating system documentation if you need help setting file permissions or modifying your PATH environment variable. If you do not see a prebuilt binary for the desired edition, operating system, and architecture, install Hugo using one of the methods described below.
在你的博客文件夹中右键git bash here 输入
hugo new site blog （创建blog文件夹并放入hugo文件）
- cd blog
- git init
- git submodule add --depth 1 https://github.com/reuixiy/hugo-theme-meme.git themes/meme
- rm config.toml && cp themes/meme/config-examples/zh-cn/config.toml config.toml
hugo new "posts/hello-world.md" hugo new "about/_index.md"
hugo server -D
原因不明，不能复现问题 我使用的是腾讯云的图床，但是部署到github发现不能使用 最后将config.toml中的enableMediumZoom = false置为false即可（true也没事） 可能是防盗链的关系