1. 注册 Github 如果已有账号,直接登录 2. 了解 Github page 创建过程 进入Github Pages官网,了解创建过程。 3. 创建仓库 点击Github右上角头像旁边的 "+", 点击New repository进入创建仓库页面 输入仓库名称,如下图: 注意:仓库名的格式为<username>.github.io,username是你Github的账号名。 点击页面最下方的Crea...
将PaperMod主题克隆到博客目录结构中,并将其作为Git 子模块themes添加到您的博客中。 git submodule add --depth=1 https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod 在博客配置文件hugo.toml(位于根目录)中添加一行,表明为PaperMod主题。 echo "theme = 'PaperMod'" >> hugo.toml 启动H...
$ tree.├── archetypes│ └── default.md├── config.toml├── content├── data├── layouts├── static└── themes6 directories, 2 files接下来需要为我们的网站指定一个主题,这里我们选择 https://themes.gohugo.io/hermit/ 这个主题。$ git clone https://github.com/Track3/herm...
Hugo Themes:https://themes.gohugo.io 将选中的主题下载到本地 # 进入网站目录 blog cd blog # 进入 themes 目录,一般默认有,如果没有自行创建:mkdir -p themes cd themes # 下载主题到 tranquilpeak 文件夹下 git clone https://github.com/kakawait/hugo-tranquilpeak-theme.git tranquilpeak 此处建议选择的...
git submodule add https://github.com/pseudoyu/hugo-theme-den themes/hugo-theme-den 更新主题 如果是 clone 了其他人的博客项目进行修改,则需要用以下命令进行初始化: git submodule update --init --recursive 如果需要同步主题仓库的最新修改,需要运行以下命令: ...
name: GitHub Pages on: push: branches: - main # Set a branch name to trigger deployment pull_request: jobs: deploy: runs-on: ubuntu-latest permissions: contents: write steps: - uses: actions/checkout@v3 with: submodules: true # Fetch Hugo themes (true OR recursive) ...
git clone https://github.com/imroc/xhugo.git themes/xhugo 在配置文件config.toml里加一行,配置本网站的主题: 代码语言:javascript 代码运行次数:0 运行 AI代码解释 theme = "xhugo" 注: config.toml 中配置的主题名字应和主题目录名称一致 新建页面: 代码语言:javascript 代码运行次数:0 运行 AI代码解释...
static-site-generator hugo-theme hugo hugo-themes theme-site hugo-showcase Updated Jul 4, 2021 Shell matcornic / hugo-theme-learn Star 1.6k Code Issues Pull requests Porting Grav Learn theme to Hugo golang hugo-theme gh-pages hugo hugo-site hugo-documentation hugo-learn-theme Updated...
git init git submodule add https://github.com/zzossig/hugo-theme-zzo.git themes/zzo 把themes/zzo 下的 exampleSite文件夹的内容复制到你博客的根目录 在博客根目录中敲命令:(启动hugo服务器) hugo server 点击这里查看测试(主题和示例网站中的markdown博客都正确显示了) 3、GithubPages服务 + 云托管 1 ...
2.3 themes/person-web 2.3.1 架构 2.3.2 layouts 3. .html编程 4. Github Page发布 5. 结语 0. 引言 终于把拖延了很久的学术主页搭建拉上日程,由于不想使用完全现成且使用率太高的模板,打算浅浅学一些前端知识配合Github Page和Hugo生成器操作一番(Hugo社区有许多好看且免费的主题!)实际搭建和部署的过程主要...