Template: Add robots meta-tag, set noindex on staging
All checks were successful
/ build (push) Successful in 13s
All checks were successful
/ build (push) Successful in 13s
Stolen from https://github.com/dereckcurry/hugo-robots-meta-tags
This commit is contained in:
parent
20ab8017a1
commit
765b727cc7
4 changed files with 44 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue