add blocks in default template

This commit is contained in:
Simon Vieille 2022-04-25 21:08:25 +02:00
parent 4ce765ed72
commit 2307efa341
Signed by: deblan
GPG Key ID: 579388D585F70417
1 changed files with 6 additions and 6 deletions

View File

@ -8,13 +8,13 @@
<link rel="icon" type="image/x-icon" href="{{ asset('build/images/core/logo.svg') }}" />
{%- block opengraph -%}
<meta property="og:title" content="{{ _page.ogTitle }}" />
<meta property="og:description" content="{{ _page.ogDescription }}" />
<meta property="og:type" content="website" />
<meta property="og:url" content="{{ app.request.uri }}" />
<meta property="og:title" content="{%- block ogTitle -%}{{ _page.ogTitle }}{%- endblock -%}" />
<meta property="og:description" content="{%- block ogDescription -%}{{ _page.ogDescription }}{%- endblock -%}" />
<meta property="og:type" content="{%- block ogType -%}website{%- endblock -%}" />
<meta property="og:url" content="{%- block opengraphUri -%}{{ app.request.uri }}{%- endblock -%}" />
{%- if _page.ogImage -%}
<meta property="og:image" content="{{ absolute_url(asset(_page.ogImage)) }}" />
<meta property="og:image" content="{%- block ogImage -%}{{ absolute_url(asset(_page.ogImage)) }}{%- endblock -%}" />
{%- endif -%}
{%- endblock -%}
@ -22,7 +22,7 @@
{{ encore_entry_link_tags('app') }}
{%- endblock -%}
<title>{{ _page.metaTitle }}</title>
<title>{%- block pageTitle -%}{{ _page.metaTitle }}{%- endblock -%}</title>
</head>
<body>