mirror of
				https://github.com/BBaoVanC/bobatheme.git
				synced 2025-10-26 15:53:30 -05:00 
			
		
		
		
	Use the actual svg instead of feather-sprite.svg for icons
This commit is contained in:
		
							
								
								
									
										4
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| [submodule "assets/feather"] | ||||
| 	path = assets/feather | ||||
| 	url = https://github.com/feathericons/feather.git | ||||
|         branch = master | ||||
							
								
								
									
										1
									
								
								assets/feather
									
									
									
									
									
										Submodule
									
								
							
							
								
								
								
								
								
							
						
						
									
										1
									
								
								assets/feather
									
									
									
									
									
										Submodule
									
								
							 Submodule assets/feather added at 734f3f5114
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| Before Width: | Height: | Size: 53 KiB | 
| @@ -1,5 +1,5 @@ | ||||
| {{ $sprites := resources.Get "icon/feather-sprite.svg" | fingerprint "sha256" }} | ||||
| <svg class="icon" fill="none" stroke="lightgray" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | ||||
|     <title>{{ . }} icon</title> | ||||
|     <use href="{{ printf "%s#%s" $sprites.Permalink . | relURL }}" /> | ||||
| </svg> | ||||
| {{ $icon_resource := resources.Get (printf "feather/icons/%s.svg" .) }} | ||||
| {{ $icon := $icon_resource.Content }} | ||||
| {{ $icon = replaceRE `<svg` `<svg class="icon"` $icon }} | ||||
| {{ $icon = replaceRE `</svg>` `<title>{{ . }} icon</title></svg>` $icon }} | ||||
| {{ $icon | safeHTML }} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user