30 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <head>
 | |
|     <meta charset="utf-8">
 | |
|     <meta name="viewport" content="width=device-width, initial-scale=1">
 | |
|     <meta name="robots" content="{{ with .Params.robots }}{{ . }}{{ else }}index,follow{{ end }}">
 | |
|     <meta name="generator" content="Hugo static site generator">
 | |
|     {{ with .Params.description }}
 | |
|     <meta name="description" content="{{ . }}">
 | |
|     {{ else }}
 | |
|     {{ with .Params.summary }}
 | |
|     <meta name="description" content="{{ . }}">
 | |
|     {{ end }}
 | |
|     {{ end }}
 | |
|     {{ with .Keywords }}<meta name="keywords" content="{{ delimit . "," "," }}">{{ end }}
 | |
|     {{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction) "transpiler" "dartsass") }}
 | |
|     {{ $scss := resources.Get "css/main.scss" | css.Sass $options  }}
 | |
|     {{ if hugo.IsProduction }}{{ $scss = $scss | minify | fingerprint }}{{ end }}
 | |
|     <link rel="stylesheet" type="text/css" href="{{ $scss.Permalink }}" />
 | |
|     {{ $title := print .Site.Title " | " .Title }}
 | |
|     {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
 | |
|     <title>{{ $title }}</title>
 | |
|     <link rel="canonical" href="{{ .Permalink }}" />
 | |
|     <script defer src="{{ relURL "js/jquery-3.6.3.min.js" }}"></script>
 | |
|     {{ $galleryJs := resources.Get "js/gallery.js" }}
 | |
|     {{ if hugo.IsProduction }}{{ $galleryJs = $galleryJs | minify | fingerprint }}{{ end }}
 | |
|     <script defer src="{{ $galleryJs.Permalink }}"></script>
 | |
|     {{ $mailsJs := resources.Get "js/mails.js" }}
 | |
|     {{ if hugo.IsProduction }}{{ $mailsJs = $mailsJs | minify | fingerprint }}{{ end }}
 | |
|     <script defer src="{{ $mailsJs.Permalink }}"></script>
 | |
| </head>
 |