css.html (1875B)
1 {{- with resources.Get "css/fonts.css" -}} 2 {{- if hugo.IsDevelopment -}} 3 <link rel="stylesheet" href="{{ .RelPermalink }}"> 4 {{- else -}} 5 {{- with . | minify | fingerprint -}} 6 <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"> 7 {{- end -}} 8 {{- end -}} 9 {{- end -}} 10 11 {{ range resources.ByType "font" }} 12 <link rel="preload" href="{{ .RelPermalink }}" as="font" type="{{ .MediaType.Type }}" crossorigin> 13 {{ end }} 14 15 {{- with resources.Get "css/main.css" -}} 16 {{- if hugo.IsDevelopment -}} 17 <link rel="stylesheet" href="{{ .RelPermalink }}"> 18 {{- else -}} 19 {{- with . | minify | fingerprint -}} 20 <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"> 21 {{- end -}} 22 {{- end -}} 23 {{- end }} 24 25 {{- with resources.Get "css/layouts.css" -}} 26 {{- if hugo.IsDevelopment -}} 27 <link rel="stylesheet" href="{{ .RelPermalink }}"> 28 {{- else -}} 29 {{- with . | minify | fingerprint -}} 30 <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"> 31 {{- end -}} 32 {{- end -}} 33 {{- end }} 34 35 {{- with resources.Get "css/shortcodes.css" -}} 36 {{- if hugo.IsDevelopment -}} 37 <link rel="stylesheet" href="{{ .RelPermalink }}"> 38 {{- else -}} 39 {{- with . | minify | fingerprint -}} 40 <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"> 41 {{- end -}} 42 {{- end -}} 43 {{- end }} 44 45 {{- with resources.Get "css/chroma.css" -}} 46 {{- if hugo.IsDevelopment -}} 47 <link rel="stylesheet" href="{{ .RelPermalink }}"> 48 {{- else -}} 49 {{- with . | minify | fingerprint -}} 50 <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"> 51 {{- end -}} 52 {{- end -}} 53 {{- end }}