allow using Params.Email
This commit is contained in:
parent
5c968f59a2
commit
6159f68a27
|
@ -7,7 +7,7 @@
|
||||||
{{- trim .Content "\n" | markdownify -}}
|
{{- trim .Content "\n" | markdownify -}}
|
||||||
</section>
|
</section>
|
||||||
<footer class="entry-footer">
|
<footer class="entry-footer">
|
||||||
{{- partial "social_icons.html" (dict "icons" site.Params.socialIcons "svg" $.Site.Data.svg "MaskedEmail" site.Params.MaskedEmail) -}}
|
{{- partial "social_icons.html" (dict "icons" site.Params.socialIcons "svg" $.Site.Data.svg "MaskedEmail" site.Params.MaskedEmail "Email" site.Params.Email) -}}
|
||||||
</footer>
|
</footer>
|
||||||
</article>
|
</article>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{{- $icon_name := ( trim .name " " | lower )}}
|
{{- $icon_name := ( trim .name " " | lower )}}
|
||||||
|
|
||||||
{{- if (eq .url "email") }}
|
{{- if (eq .url "email") }}
|
||||||
<a href="mailto:{{ $.MaskedEmail }}" title="{{ .name | title }}">
|
<a href="mailto:{{ $.MaskedEmail | default $.Email }}" title="{{ .name | title }}">
|
||||||
{{ safeHTML (index $.svg $icon_name | default $.svg.default) }}
|
{{ safeHTML (index $.svg $icon_name | default $.svg.default) }}
|
||||||
</a>
|
</a>
|
||||||
{{- else }}
|
{{- else }}
|
||||||
|
|
Loading…
Reference in New Issue