mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-30 19:35:26 +01:00 
			
		
		
		
	profile-mode : add buttons
ex.
params:
  profileMode:
    buttons:
      - name: Archive
        url: "/archive"
      - name: Github
        url: "https://github.com/"
			
			
This commit is contained in:
		| @@ -12,5 +12,10 @@ | ||||
|             {{ partial "social-icons.html" . }} | ||||
|         </div> | ||||
|         {{- end }} | ||||
|         {{- with .Site.Params.profileMode.buttons }} | ||||
|         <div class="buttons"> | ||||
|             {{ partial "indexProfileButtons.html" . }} | ||||
|         </div> | ||||
|         {{- end }} | ||||
|     </div> | ||||
| </div> | ||||
							
								
								
									
										7
									
								
								layouts/partials/indexProfileButtons.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								layouts/partials/indexProfileButtons.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| {{ range . -}} | ||||
| <span class="button"> | ||||
|     <a href="{{ .url }}" rel="noopener" title="{{ .name | humanize }}"> | ||||
|         <span class="button-inner">{{ .name }}</span> | ||||
|     </a> | ||||
| </span> | ||||
| {{- end -}} | ||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange