Template: Add robots meta-tag, set noindex on staging
All checks were successful
/ build (push) Successful in 13s

Stolen from https://github.com/dereckcurry/hugo-robots-meta-tags
This commit is contained in:
jtbx 2024-01-22 22:33:14 +01:00
commit 765b727cc7
4 changed files with 44 additions and 1 deletions

View file

@ -35,6 +35,8 @@ jobs:
if: github.ref_name != 'main'
run: |
sed -i "s#baseURL = 'https://hamburg.ccc.de/'#baseURL = 'https://staging.hamburg.ccc.de/pr${{ github.event.pull_request.number }}/'#" hugo.toml
sed -i "s#index = true#index = false#" hugo.toml
sed -i "s#follow = true#follow = false#" hugo.toml
- name: Build website
run: |
./fetch-calendar.sh