Initial version
This commit is contained in:
		
				commit
				
					
						ed5653a7fc
					
				
			
		
					 211 changed files with 11043 additions and 0 deletions
				
			
		
							
								
								
									
										11
									
								
								themes/zen/layouts/partials/math.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								themes/zen/layouts/partials/math.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | |||
| {{ $opts := dict "minify" true -}} | ||||
| {{ if eq hugo.Environment "development" -}} | ||||
|   {{ $opts = merge $opts (dict "minify" false) -}} | ||||
| {{ end -}} | ||||
| {{ if or ($.Param "math") (.Page.Store.Get "math") (.HasShortcode "math") -}} | ||||
| <link rel="stylesheet" href="{{ "katex/katex.min.css" | relURL }}"> | ||||
| <script defer src="{{ "katex/katex.min.js" | relURL }}"></script> | ||||
| <script defer src="{{ "katex/contrib/auto-render.min.js" | relURL }}"></script> | ||||
| {{ $math := resources.Get "js/math.js" | js.Build $opts | fingerprint -}} | ||||
| <script defer src="{{ $math.RelPermalink }}"></script> | ||||
| {{ end -}} | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue