File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 56
56
{%- set c_page_summary = 'godot-rust' -%}
57
57
{%- set c_page_image = get_url(path='godot-ferris-og-dark.png') -%}
58
58
59
+ {#- For articles (that have a summary), use 'article' type, otherwise 'website' -#}
60
+ {% if page.extra.summary %}
61
+ {%- set c_page_type = 'article' -%}
62
+ {% else %}
63
+ {%- set c_page_type = 'website' -%}
64
+ {% endif %}
65
+
59
66
{# Page title #}
60
67
< title >
61
68
{%- block title -%}
71
78
72
79
<!-- Discord, Facebook, etc. -->
73
80
< meta property ="og:url " content ="{{ get_url(path='.') | safe }} ">
74
- < meta property ="og:type " content ="website ">
81
+ < meta property ="og:type " content ="{{ c_page_type }} ">
75
82
< meta property ="og:title " content ="{{ c_page_title }} ">
76
83
< meta property ="og:description " content ="{{ c_page_summary }} ">
77
84
< meta property ="og:image " content ="{{ c_page_image | safe }} ">
78
85
79
86
<!-- Twitter Meta Tags -->
80
- < meta name ="twitter:card " content ="summary_large_image " >
87
+ < meta name ="twitter:card " content ="summary " > {# or 'summary_large_image' #}
81
88
< meta property ="twitter:domain " content ="godot-rust.github.io ">
82
89
< meta property ="twitter:url " content ="{{ get_url(path='.') | safe }} ">
83
90
< meta name ="twitter:title " content ="{{ c_page_title }} ">
You can’t perform that action at this time.
0 commit comments