File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 296296 }
297297</ style >
298298
299+ {% if page and page.summary %}
300+ {% set social_desc = page.summary %}
301+ {% elif page and page.description %}
302+ {% set social_desc = page.description %}
303+ {% elif section and section.description %}
304+ {% set social_desc = section.description %}
305+ {% else %}
306+ {% set social_desc = config.description %}
307+ {% endif %}
308+
299309< meta property ="og:title " content ="{% if page.title %}{{ page.title }} | {{ config.title }}{% elif section.title %}{{ section.title }} | {{ config.title }}{% else %}{{ config.title }}{% endif %} ">
300- < meta property ="og:description " content ="{{ page.description | default(value=section.description | default(value=config.description)) }} ">
310+ < meta property ="og:description " content ="{{ social_desc }} ">
301311< meta property ="og:url " content ="{{ current_url | default(value=config.base_url) }} ">
302312< meta property ="og:type " content ="{% if page %}article{% else %}website{% endif %} ">
303313< meta property ="og:site_name " content ="{{ config.title }} ">
304314< meta name ="twitter:card " content ="summary ">
305315< meta name ="twitter:title " content ="{% if page.title %}{{ page.title }} | {{ config.title }}{% elif section.title %}{{ section.title }} | {{ config.title }}{% else %}{{ config.title }}{% endif %} ">
306- < meta name ="twitter:description " content ="{{ page.description | default(value=section.description | default(value=config.description)) }} ">
316+ < meta name ="twitter:description " content ="{{ social_desc }} ">
You can’t perform that action at this time.
0 commit comments