File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33{% block announce %}
44 < strong > that-depends</ strong > 4.0 just released! If you are upgrading, check out the < a href ="{{config.repo}}/migration/v4/ "> migration guide</ a > .
55{% endblock %}
6+
7+ {% block extrahead %}
8+ {{ super() }}
9+ {% set base = config.site_url if config.site_url.endswith('/') else config.site_url ~ '/' %}
10+ {% set card = base ~ 'assets/social-card.png' %}
11+ {% set title = (page.title ~ ' · ' ~ config.site_name) if (page.title and not page.is_homepage) else config.site_name %}
12+ {% set description = page.meta.description if page.meta and page.meta.description else config.site_description %}
13+ < meta property ="og:type " content ="website ">
14+ < meta property ="og:site_name " content ="{{ config.site_name }} ">
15+ < meta property ="og:title " content ="{{ title }} ">
16+ < meta property ="og:description " content ="{{ description }} ">
17+ < meta property ="og:url " content ="{{ page.canonical_url }} ">
18+ < meta property ="og:image " content ="{{ card }} ">
19+ < meta property ="og:image:type " content ="image/png ">
20+ < meta property ="og:image:width " content ="1280 ">
21+ < meta property ="og:image:height " content ="640 ">
22+ < meta name ="twitter:card " content ="summary_large_image ">
23+ < meta name ="twitter:title " content ="{{ title }} ">
24+ < meta name ="twitter:description " content ="{{ description }} ">
25+ < meta name ="twitter:image " content ="{{ card }} ">
26+ {% endblock %}
You can’t perform that action at this time.
0 commit comments