Skip to content

Commit

Permalink
disable og image generated by default
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed May 8, 2023
1 parent 9aff46d commit 4e29666
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/templates/page/page_default.html.twig
Expand Up @@ -45,7 +45,7 @@
{% endif %}
{% if page.mainImage is defined and page.mainImage is not null %}
<meta name="og:image" content="{{ apps.get().baseUrl|default('') }}{{ (page.mainImage)|image('default') }}">
{% else %}
{% elseif apps.get().get('generated_og_image') is not null %}
{% set generated_image = open_graph_image_generated_path(page) %}
{% if generated_image is not null %}
<meta name="og:image" content="{{ apps.get().baseUrl|default('') }}{{ open_graph_image_generated_path(page) }}">
Expand Down
1 change: 1 addition & 0 deletions packages/skeleton/config/packages/pushword.yaml
Expand Up @@ -6,6 +6,7 @@ pushword:
hosts: ["localhost.dev", "localhost"],
base_url: "https://localhost.dev",
randomTest: 123,
generated_og_image: true,
admin_block_editor: false,
admin_block_editor_disable_listener: true,
locales: 'fr|en'
Expand Down

0 comments on commit 4e29666

Please sign in to comment.