layouts: move `.Site` (deprecated) to `hugo`

Co-Authored-by: iGor milhit <igor@milhit.ch>
main
iGor milhit 2024-08-15 08:09:23 +02:00
parent 9fc7238ea7
commit 91837de4f7
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<meta name="viewport" content="width=device-width">
<title>{{ .Title }} - {{ .Site.Title }}</title>
<link rel="canonical" href="{{ .Permalink }}">
{{- if .Site.IsServer -}}
{{- if hugo.IsServer -}}
{{- $options := (dict "targetPath" "styles.css" "enableSourceMap" true) -}}
{{- $styles := resources.Get "scss/main.scss" | toCSS $options }}
<link rel="stylesheet" href="{{ $styles.Permalink }}" media="screen">