diff options
| author | Reorx <novoreorx@gmail.com> | 2022-05-12 16:26:08 +0800 |
|---|---|---|
| committer | Reorx <novoreorx@gmail.com> | 2022-05-12 16:26:08 +0800 |
| commit | c0cb12e100ea0cba336c8d908030f51b14829176 (patch) | |
| tree | 031b570b7f999d224b74b49c5eecec31c0e2db1e | |
| parent | 524fef2551c3a44ae960798e18232960dce5055e (diff) | |
fix social_links missing twitter.id
| -rw-r--r-- | layouts/partials/social_links.html | 2 |
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> |
