mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	head: commonize stylesheet resource
This commit is contained in:
		| @@ -21,12 +21,12 @@ | |||||||
| <meta name="google-site-verification" content="{{ .Site.Params.analytics.google.SiteVerificationTag }}" /> | <meta name="google-site-verification" content="{{ .Site.Params.analytics.google.SiteVerificationTag }}" /> | ||||||
| {{- end}} | {{- end}} | ||||||
| <!-- Styles --> | <!-- Styles --> | ||||||
|  | {{- $stylesheet := (resources.Match "css/*.css") | resources.Concat "assets/css/stylesheet.css" | minify -}} | ||||||
| {{- if not .Site.Params.assets.disableFingerprinting }} | {{- if not .Site.Params.assets.disableFingerprinting }} | ||||||
| {{- $stylesheet := (resources.Match "css/*.css") | resources.Concat "assets/css/stylesheet.css" | minify | fingerprint -}} | {{- $stylesheet := $stylesheet | fingerprint -}} | ||||||
| <link href="{{ $stylesheet.Permalink }}" integrity="{{ $stylesheet.Data.Integrity }}" rel="preload stylesheet" | <link href="{{ $stylesheet.Permalink }}" integrity="{{ $stylesheet.Data.Integrity }}" rel="preload stylesheet" | ||||||
|     as="style"> |     as="style"> | ||||||
| {{- else}} | {{- else}} | ||||||
| {{- $stylesheet := (resources.Match "css/*.css") | resources.Concat "assets/css/stylesheet.css" | minify -}} |  | ||||||
| <link href="{{ $stylesheet.Permalink }}" rel="preload stylesheet" as="style"> | <link href="{{ $stylesheet.Permalink }}" rel="preload stylesheet" as="style"> | ||||||
| {{- end}} | {{- end}} | ||||||
| <!-- Search --> | <!-- Search --> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange