fix social_links missing twitter.id

This commit is contained in:
Reorx 2022-05-12 16:26:08 +08:00
parent 524fef2551
commit c0cb12e100
1 changed files with 2 additions and 0 deletions

View File

@ -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" -}}