Simple site layout design
This commit is contained in:
		| @@ -1,9 +0,0 @@ | ||||
| {{- with resources.Get "css/main.css" }} | ||||
|   {{- if hugo.IsDevelopment }} | ||||
|     <link rel="stylesheet" href="{{ .RelPermalink }}"> | ||||
|   {{- else }} | ||||
|     {{- with . | minify | fingerprint }} | ||||
|       <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"> | ||||
|     {{- end }} | ||||
|   {{- end }} | ||||
| {{- end }} | ||||
| @@ -1,16 +0,0 @@ | ||||
| {{- with resources.Get "js/main.js" }} | ||||
|   {{- $opts := dict | ||||
|     "minify" (not hugo.IsDevelopment) | ||||
|     "sourceMap" (cond hugo.IsDevelopment "external" "") | ||||
|     "targetPath" "js/main.js" | ||||
|   }} | ||||
|   {{- with . | js.Build $opts }} | ||||
|     {{- if hugo.IsDevelopment }} | ||||
|       <script src="{{ .RelPermalink }}"></script> | ||||
|     {{- else }} | ||||
|       {{- with . | fingerprint }} | ||||
|         <script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script> | ||||
|       {{- end }} | ||||
|     {{- end }} | ||||
|   {{- end }} | ||||
| {{- end }} | ||||
							
								
								
									
										0
									
								
								layouts/_partials/head/sass.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								layouts/_partials/head/sass.html
									
									
									
									
									
										Normal file
									
								
							
		Reference in New Issue
	
	Block a user