Skip to content

Commit e8b4c88

Browse files
author
exoego
committed
Add fallback site title since og:title is required.
1 parent fe82b94 commit e8b4c88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_includes/headertop.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<meta property="og:type" content="{% if page.url == '/' %}website{% else %}article{% endif %}"/>
1717
<meta property="og:url" content="{{ site.url }}{{ page.url }}"/>
1818
<meta property="og:image" content="{{ site.url }}/resources/img/scala-spiral-3d-2-toned-down.png"/>
19-
{% if page.title %}<meta property="og:title" content="{{ page.title }}"/>{% endif %}
19+
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{site.title}}{% endif %}"/>
2020
{% if page.description %}<meta property="og:description" content="{{ page.description }}"{% endif %}
2121

2222
<meta name="twitter:card" content="summary"/>

0 commit comments

Comments
 (0)