diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 391513d62..4cf281beb 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -3,7 +3,7 @@ name: CI
on:
push:
branches:
- - master
+ - main
paths-ignore:
- "README.md"
pull_request:
@@ -46,7 +46,7 @@ jobs:
uses: nwtgck/actions-netlify@v1.2.2
with:
publish-dir: './exampleSite/public'
- production-branch: master
+ production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
enable-pull-request-comment: true
@@ -73,7 +73,7 @@ jobs:
- name: Deploy
uses: peaceiris/actions-gh-pages@v3.8.0
- if: github.ref == 'refs/heads/master'
+ if: github.ref == 'refs/heads/main'
with:
#deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -84,7 +84,7 @@ jobs:
lighthouse:
needs: deploy
- if: github.ref == 'refs/heads/master'
+ if: github.ref == 'refs/heads/main'
runs-on: ubuntu-18.04
timeout-minutes: 2
steps:
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 943a83cfc..02452f22a 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -3,7 +3,6 @@
-
- [Find Similar Issues or Pull Requests](#find-similar-issues-or-pull-requests)
- [Develop](#develop)
- [Create Commit and Push](#create-commit-and-push)
@@ -57,6 +56,6 @@ On Github.
```sh
git remote add upstream https://github.com/peaceiris/hugo-theme-iris.git
-git checkout master
-git pull upstream master
+git checkout main
+git pull upstream main
```
diff --git a/README.md b/README.md
index b168f67a2..a8f46a83c 100644
--- a/README.md
+++ b/README.md
@@ -3,14 +3,14 @@ Hugo IRIS Theme
-
+
-[![LICENSE](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/peaceiris/hugo-theme-iris/blob/master/LICENSE)
+[![LICENSE](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/peaceiris/hugo-theme-iris/blob/main/LICENSE)
[![release](https://img.shields.io/github/release/peaceiris/hugo-theme-iris.svg)](https://github.com/peaceiris/hugo-theme-iris/releases/latest)
[![release date](https://img.shields.io/github/release-date/peaceiris/hugo-theme-iris.svg)](https://github.com/peaceiris/hugo-theme-iris/releases)
[![release feed](https://img.shields.io/badge/release-feed-yellow)](https://github.com/peaceiris/hugo-theme-iris/releases.atom)
-![deploy status](https://github.com/peaceiris/hugo-theme-iris/workflows/CI/badge.svg?branch=master&event=push)
+![deploy status](https://github.com/peaceiris/hugo-theme-iris/workflows/CI/badge.svg?branch=main&event=push)
[![hugo themes](https://img.shields.io/static/v1?label=Hugo%20Themes&message=IRIS&color=blueviolet)](https://themes.gohugo.io/hugo-theme-iris/)
[![lighthouse score](https://img.shields.io/static/v1?label=Lighthouse%20Score&message=Good&color=green)](https://hugothemeiris.peaceiris.app/report.html)
@@ -114,7 +114,7 @@ This repository includes a [Hugo] theme.
You can find the minimum supported Hugo version in [theme.toml] `min_version`. Using Hugo extended version is desirable.
-[theme.toml]: https://github.com/peaceiris/hugo-theme-iris/blob/master/theme.toml
+[theme.toml]: https://github.com/peaceiris/hugo-theme-iris/blob/main/theme.toml
### Install Go
@@ -124,11 +124,11 @@ This theme depends on Hugo Modules.
### Initialize New Hugo Project
-Here is [the setup script](https://github.com/peaceiris/hugo-theme-iris/blob/master/scripts/setup.sh).
+Here is [the setup script](https://github.com/peaceiris/hugo-theme-iris/blob/main/scripts/setup.sh).
```sh
mkdir homepage
-wget https://raw.githubusercontent.com/peaceiris/hugo-theme-iris/master/scripts/setup.sh
+wget https://raw.githubusercontent.com/peaceiris/hugo-theme-iris/main/scripts/setup.sh
bash ./setup.sh homepage "your_github_id"
cd homepage
hugo server
@@ -242,7 +242,7 @@ If your logo image is located at `assets/images/logo.jpg`.
{{< circle src="images/logo.jpg" alt="hugo-theme-iris logo" >}}
```
-
+
### button
@@ -255,7 +255,7 @@ If your logo image is located at `assets/images/logo.jpg`.
```
-
+
### mermaid
@@ -275,7 +275,7 @@ sequenceDiagram
{{< /mermaid >}}
```
-
+
### repo
@@ -284,7 +284,7 @@ The script requires the [gh] command.
[gh]: https://github.com/cli/cli
-For more details: [scripts/fetch_data.sh](https://github.com/peaceiris/hugo-theme-iris/blob/master/exampleSite/scripts/fetch_data.sh)
+For more details: [scripts/fetch_data.sh](https://github.com/peaceiris/hugo-theme-iris/blob/main/exampleSite/scripts/fetch_data.sh)
```sh
brew install gh
@@ -305,7 +305,7 @@ We can show a repository card like as follows.
{{< repo id="peaceiris" name="actions-hugo" >}}
```
-
+
### github-sponsors-list
@@ -315,7 +315,7 @@ Please follow the instruction as the same as the `repo` shortcode.
{{< github-sponsors-list id="peaceiris" >}}
```
-
+
### table
@@ -330,7 +330,7 @@ Please follow the instruction as the same as the `repo` shortcode.
| Mouse out | Mouse over |
|---|---|
-| ![Shortcode table mouse out](https://raw.githubusercontent.com/peaceiris/hugo-theme-iris/master/exampleSite/assets/images/shortcode_table_1.jpg) | ![Shortcode table mouse over](https://raw.githubusercontent.com/peaceiris/hugo-theme-iris/master/exampleSite/assets/images/shortcode_table_2.jpg) |
+| ![Shortcode table mouse out](https://raw.githubusercontent.com/peaceiris/hugo-theme-iris/main/exampleSite/assets/images/shortcode_table_1.jpg) | ![Shortcode table mouse over](https://raw.githubusercontent.com/peaceiris/hugo-theme-iris/main/exampleSite/assets/images/shortcode_table_2.jpg) |
### math
@@ -381,7 +381,7 @@ git commit -m "deps: bump hugo-theme-iris"
## Changelog
-- [hugo-theme-iris/CHANGELOG.md](https://github.com/peaceiris/hugo-theme-iris/blob/master/CHANGELOG.md)
+- [hugo-theme-iris/CHANGELOG.md](https://github.com/peaceiris/hugo-theme-iris/blob/main/CHANGELOG.md)
@@ -401,7 +401,7 @@ You can find more detail in our [Contributing Guide].
## License
-- [MIT License - peaceiris/hugo-theme-iris](https://github.com/peaceiris/hugo-theme-iris/blob/master/LICENSE)
+- [MIT License - peaceiris/hugo-theme-iris](https://github.com/peaceiris/hugo-theme-iris/blob/main/LICENSE)
@@ -418,7 +418,7 @@ You can find more detail in our [Contributing Guide].
-[Contributing Guide]: https://github.com/peaceiris/hugo-theme-iris/blob/master/CONTRIBUTING.md
+[Contributing Guide]: https://github.com/peaceiris/hugo-theme-iris/blob/main/CONTRIBUTING.md
[Hugo]: https://gohugo.io/
diff --git a/exampleSite/config/_default/params.yaml b/exampleSite/config/_default/params.yaml
index 10d1af85c..07a00fd15 100644
--- a/exampleSite/config/_default/params.yaml
+++ b/exampleSite/config/_default/params.yaml
@@ -1,6 +1,6 @@
repo:
URL: "https://github.com/peaceiris/hugo-theme-iris"
- branch: master
+ branch: main
contentDir: exampleSite/content
themeColor: "#ffffff" # smart phone's browser tab color
diff --git a/exampleSite/content/en/posts/github-pages-and-github-actions.md b/exampleSite/content/en/posts/github-pages-and-github-actions.md
index b305d2250..ae15baa75 100644
--- a/exampleSite/content/en/posts/github-pages-and-github-actions.md
+++ b/exampleSite/content/en/posts/github-pages-and-github-actions.md
@@ -34,31 +34,3 @@ This deploy action can be combined simply and freely with [Static Site Generator
```
The above example step will deploy `./public` directory to `gh-pages` branch.
-
-
-
-## Example Workflow
-
-Here is an example workflow for Hugo project.
-Creat YAML file `.github/workflows/gh-pages.yml` and push to your remote default branch.
-
-```yaml
-- name: Deploy
- uses: peaceiris/actions-gh-pages@v3
- with:
- deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
- publish_dir: ./public
-```
-
-### Deploy to master branch
-
-For `.github.io` repository.
-
-```yaml
-- name: Deploy
- uses: peaceiris/actions-gh-pages@v3
- with:
- deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
- publish_branch: master
- publish_dir: ./public
-```
diff --git a/exampleSite/static/admin/config.yml b/exampleSite/static/admin/config.yml
index c26ab6d5d..d222187c4 100644
--- a/exampleSite/static/admin/config.yml
+++ b/exampleSite/static/admin/config.yml
@@ -1,7 +1,7 @@
backend:
name: github
repo: peaceiris/hugo-theme-iris
- branch: master
+ branch: main
# squash_merges: true
media_folder: "static/images"
diff --git a/release.sh b/release.sh
index cad442e2c..8c7e3bd4e 100755
--- a/release.sh
+++ b/release.sh
@@ -7,8 +7,8 @@ function print_info() {
echo -e "\e[36mINFO: ${1}\e[m"
}
-if [ "$(git branch --show-current)" != "master" ]; then
- echo "$0: Current branch is not master" 1>&2
+if [ "$(git branch --show-current)" != "main" ]; then
+ echo "$0: Current branch is not main" 1>&2
exit 1
fi
@@ -30,7 +30,7 @@ if [ "${res}" = "n" ]; then
fi
git fetch origin
-git pull origin master
+git pull origin main
git pull origin --tags
npm ci
@@ -47,5 +47,5 @@ fi
npm run release -- --release-as "${RELEASE_TYPE}" --preset eslint
TAG_NAME="v$(jq -r '.version' ./package.json)"
-git push origin master
+git push origin main
git push origin "${TAG_NAME}"
diff --git a/scripts/setup.sh b/scripts/setup.sh
index d18504974..533e110a7 100644
--- a/scripts/setup.sh
+++ b/scripts/setup.sh
@@ -5,11 +5,11 @@ set -eu -o pipefail # -x: is for debugging
cd $1
git init
-wget https://github.com/peaceiris/hugo-theme-iris/archive/master.zip
-unzip master.zip
-rm master.zip
-cp -r ./hugo-theme-iris-master/exampleSite/{assets,config,content,data,static,.gitignore} .
-rm -rf hugo-theme-iris-master
+wget https://github.com/peaceiris/hugo-theme-iris/archive/main.zip
+unzip main.zip
+rm main.zip
+cp -r ./hugo-theme-iris-main/exampleSite/{assets,config,content,data,static,.gitignore} .
+rm -rf hugo-theme-iris-main
hugo mod init "github.com/$2/$1"
hugo mod get -u github.com/peaceiris/hugo-theme-iris
git add .
diff --git a/theme.toml b/theme.toml
index c5a87572e..8bb13ee8c 100644
--- a/theme.toml
+++ b/theme.toml
@@ -1,6 +1,6 @@
name = "Iris"
license = "MIT"
-licenselink = "https://github.com/peaceiris/hugo-theme-iris/blob/master/LICENSE"
+licenselink = "https://github.com/peaceiris/hugo-theme-iris/blob/main/LICENSE"
description = "Hugo Iris Theme - Portfolio and Blog"
homepage = "https://github.com/peaceiris/hugo-theme-iris"
min_version = "0.83.1"