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

View file

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