mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	head: add *.css under assets/css/extended/
to bundle it with stylesheet.css as single resource minified - added to the end so that default vars are overriden properly
This commit is contained in:
		
							
								
								
									
										0
									
								
								assets/css/extended/blank.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								assets/css/extended/blank.css
									
									
									
									
									
										Normal file
									
								
							| @@ -21,7 +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 -}} | {{- $common := (resources.Match "css/*.css") | resources.Concat "assets/css/common.css" }} | ||||||
|  | {{- $extended := (resources.Match "css/extended/*.css") | resources.Concat "assets/css/extended.css" }} | ||||||
|  | {{- /*  bundle all required css  */}} | ||||||
|  | {{- /*  Add extended css after theme style */ -}} | ||||||
|  | {{- $stylesheet := (slice $common $extended) | resources.Concat "assets/css/stylesheet.css" | minify }} | ||||||
|  |  | ||||||
| {{- if not .Site.Params.assets.disableFingerprinting }} | {{- if not .Site.Params.assets.disableFingerprinting }} | ||||||
| {{- $stylesheet := $stylesheet | 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" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange