diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..7aa874e6 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,23 @@ +name: build-and-deploy +on: push +jobs: + deploy: + runs-on: ubuntu-18.04 + steps: + - name: Git checkout + uses: actions/checkout@v2 + + - name: Setup hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: '0.58.3' + extended: true + - name: Build + # remove --minify tag if you do not need it + # docs: https://gohugo.io/hugo-pipes/minification/ + run: hugo + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} + publish_dir: ./public diff --git a/themes/hugo-book/layouts/partials/docs/html-head.html b/themes/hugo-book/layouts/partials/docs/html-head.html index 3cf50540..0250d199 100644 --- a/themes/hugo-book/layouts/partials/docs/html-head.html +++ b/themes/hugo-book/layouts/partials/docs/html-head.html @@ -14,6 +14,8 @@ + + {{ with .OutputFormats.Get "rss" -}} {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} diff --git a/themes/hugo-book/static/favicon.png b/themes/hugo-book/static/favicon.png index 3faa6554..44ae7e40 100644 Binary files a/themes/hugo-book/static/favicon.png and b/themes/hugo-book/static/favicon.png differ