fix social_links missing twitter.id
This commit is contained in:
parent
524fef2551
commit
c0cb12e100
|
@ -1,5 +1,6 @@
|
||||||
<div class="social-links">
|
<div class="social-links">
|
||||||
{{ with .Params.socialLinks.twitter }}
|
{{ with .Params.socialLinks.twitter }}
|
||||||
|
{{ if (and .id .user) }}
|
||||||
<div class="tweet-container">
|
<div class="tweet-container">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
Discuss on twitter
|
Discuss on twitter
|
||||||
|
@ -7,6 +8,7 @@
|
||||||
{{- template "render-tweet" (dict "id" .id "user" .user "dnt" true) -}}
|
{{- template "render-tweet" (dict "id" .id "user" .user "dnt" true) -}}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{- define "render-tweet" -}}
|
{{- define "render-tweet" -}}
|
||||||
|
|
Loading…
Reference in New Issue