mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-06-05 17:14:24 -04:00
Use site
function instead of .Site
or $.Site
- The site function provides global access to the same data as the .Site page method. - Current context (`.`) is never considered.
This commit is contained in:
parent
975972e041
commit
575cc0ca8c
23 changed files with 115 additions and 115 deletions
|
@ -1,5 +1,5 @@
|
|||
User-agent: *
|
||||
{{- if hugo.IsProduction | or (eq .Site.Params.env "production") }}
|
||||
{{- if hugo.IsProduction | or (eq site.Params.env "production") }}
|
||||
Disallow:
|
||||
{{- else }}
|
||||
Disallow: /
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue