mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	profile-mode : include social icons
usage : in config
 params:
   profileMode:
     socialIcons:
       - name: "<platform>"
         url: : "<link>"
			
			
This commit is contained in:
		| @@ -27,3 +27,13 @@ img { | ||||
|     } | ||||
|  | ||||
| } | ||||
|  | ||||
| .social-icons { | ||||
|     padding: 16px; | ||||
| } | ||||
|  | ||||
| .social-icons a { | ||||
|     margin: 2px; | ||||
|     padding: 6px; | ||||
|     font-size: 1.4em; | ||||
| } | ||||
| @@ -9,6 +9,11 @@ | ||||
|     </div> | ||||
|     {{end}} | ||||
|     <h1>{{ if .Site.Params.profileMode.title }}{{.Site.Params.profileMode.title}}{{ else }}{{ .Site.Title }}{{end}}</h1> | ||||
|     {{- with .Site.Params.profileMode.socialIcons }} | ||||
|     <div class="social-icons"> | ||||
|       {{ partial "social-icons.html" . }} | ||||
|     </div> | ||||
|     {{- end }} | ||||
|   </div> | ||||
| </div> | ||||
| {{else}} {{/* if not profileMode */}} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange