mirror of
				https://github.com/BBaoVanC/bobatheme.git
				synced 2025-10-31 01:53:30 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			363 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			363 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {{/* See https://willschenk.com/articles/2020/styling_tables_with_hugo/ */}}
 | |
| 
 | |
| {{ $class := "markdown" }}
 | |
| {{ with .Get "class" }}
 | |
|     {{ $class = delimit (slice $class .) " " }}
 | |
| {{ end }}
 | |
| 
 | |
| {{ $htmlTable := .Inner | .Page.RenderString (dict "display" "block") }}
 | |
| {{ $new := printf `<table class="%s">` $class }}
 | |
| {{ (replace $htmlTable "<table>" $new) | safeHTML }}
 |