summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorReorx <novoreorx@gmail.com>2022-05-12 16:26:08 +0800
committerReorx <novoreorx@gmail.com>2022-05-12 16:26:08 +0800
commitc0cb12e100ea0cba336c8d908030f51b14829176 (patch)
tree031b570b7f999d224b74b49c5eecec31c0e2db1e /layouts
parent524fef2551c3a44ae960798e18232960dce5055e (diff)
fix social_links missing twitter.id
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/social_links.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/social_links.html b/layouts/partials/social_links.html
index 67501ee..3dba7e1 100644
--- a/layouts/partials/social_links.html
+++ b/layouts/partials/social_links.html
@@ -1,11 +1,13 @@
<div class="social-links">
{{ with .Params.socialLinks.twitter }}
+ {{ if (and .id .user) }}
<div class="tweet-container">
<div class="title">
Discuss on twitter
</div>
{{- template "render-tweet" (dict "id" .id "user" .user "dnt" true) -}}
</div>
+ {{ end }}
{{ end }}
</div>