mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
social-icons: refactor
* use easier impl
This commit is contained in:
parent
8ff1f10eb7
commit
6dcd437146
@ -7,11 +7,7 @@
|
|||||||
<p>{{- .Content | markdownify }}</p>
|
<p>{{- .Content | markdownify }}</p>
|
||||||
</section>
|
</section>
|
||||||
<footer class="entry-footer">
|
<footer class="entry-footer">
|
||||||
{{- with $.Site.Params.socialIcons }}
|
{{- partial "social_icons.html" $.Site.Params.socialIcons -}}
|
||||||
<div class="social-icons">
|
|
||||||
{{- partial "social_icons.html" . }}
|
|
||||||
</div>
|
|
||||||
{{- end }}
|
|
||||||
</footer>
|
</footer>
|
||||||
</article>
|
</article>
|
||||||
{{- end}}
|
{{- end}}
|
@ -2,12 +2,10 @@
|
|||||||
{{- with .Site.Params.profileMode }}
|
{{- with .Site.Params.profileMode }}
|
||||||
<div class="profile_inner">
|
<div class="profile_inner">
|
||||||
{{- if .imageUrl}}<img src="{{ .imageUrl}}" alt="{{ .imageTitle | default "profile image" }}" />{{- end}}
|
{{- if .imageUrl}}<img src="{{ .imageUrl}}" alt="{{ .imageTitle | default "profile image" }}" />{{- end}}
|
||||||
<h1>{{ .title | default $.Site.Title }}</h1>
|
<h1>{{- .title | default $.Site.Title -}}</h1>
|
||||||
{{- with $.Site.Params.socialIcons }}
|
|
||||||
<div class="social-icons">
|
{{- partial "social_icons.html" $.Site.Params.socialIcons -}}
|
||||||
{{ partial "social_icons.html" . }}
|
|
||||||
</div>
|
|
||||||
{{- end }}
|
|
||||||
{{- with .buttons }}
|
{{- with .buttons }}
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
{{- range . -}}
|
{{- range . -}}
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
{{- range . -}}
|
<div class="social-icons">
|
||||||
<a href="{{ .url }}" target="_blank" rel="noopener noreferrer"
|
{{- range . -}}
|
||||||
title="{{ .name | humanize }}">{{ partial "svg.html" . }}</a>
|
<a href="{{ .url }}" target="_blank" rel="noopener noreferrer"
|
||||||
{{- end -}}
|
title="{{ .name | humanize }}">{{ partial "svg.html" . }}</a>
|
||||||
|
{{- end -}}
|
||||||
|
</div>
|
Loading…
Reference in New Issue
Block a user