|
|
@ -6,9 +6,11 @@ |
|
|
|
<meta name="viewport" content="width=device-width,minimum-scale=1" /> |
|
|
|
<title> |
|
|
|
{%- block title -%} |
|
|
|
{% set title = page.title | default(value=section.title) -%} |
|
|
|
{% if title != config.title -%} |
|
|
|
{% set title = title ~ ' | ' ~ config.title -%} |
|
|
|
{% set page_title = page.title | default(value=section.title) -%} |
|
|
|
{% if page_title == config.title -%} |
|
|
|
{% set title = page_title -%} |
|
|
|
{% else -%} |
|
|
|
{% set title = page_title ~ ' | ' ~ config.title -%} |
|
|
|
{% endif -%} |
|
|
|
{% set description = page.summary | default(value=config.description) | striptags | split(pat='. |
|
|
|
') | first | replace(from=' |
|
|
@ -27,7 +29,7 @@ |
|
|
|
title="{{ config.title }}" |
|
|
|
/> |
|
|
|
{% if current_url -%} |
|
|
|
<meta property="og:title" content="{{ title }}" /> |
|
|
|
<meta property="og:title" content="{{ page_title }}" /> |
|
|
|
<meta name="description" content="{{ description }}" /> |
|
|
|
<meta property="og:description" content="{{ description }}" /> |
|
|
|
<meta property="og:url" content="{{ current_url | safe }}" /> |
|
|
|