Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5bec4cf

Browse files
authored
don't use twitter's large summary card when the image is the website's avatar
1 parent c5b7a95 commit 5bec4cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103

104104

105105
<!-- Twitter summary cards -->
106-
{% if shareimg != "" %}
106+
{% if shareimg != "" and shareimg != site.avatar %}
107107
<meta name="twitter:card" content="summary_large_image">
108108
{% else %}
109109
<meta name="twitter:card" content="summary">

0 commit comments

Comments
 (0)