Skip to content

Commit

Permalink
Merge pull request #66 from maximehuran/feature/fix-issue-filter
Browse files Browse the repository at this point in the history
Fix issue on title fallback for meta title
  • Loading branch information
maximehuran authored Jun 3, 2024
2 parents 997695e + 10ce62d commit 8f15e98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ setup_application:
$(MAKE) ${APP_DIR}/php.ini
(cd ${APP_DIR} && ${COMPOSER} install --no-interaction)
$(MAKE) apply_dist
(cd ${APP_DIR} && ${COMPOSER} require --no-progress monsieurbiz/${PLUGIN_NAME}="*@dev")
(cd ${APP_DIR} && ${COMPOSER} require --no-progress --no-interaction monsieurbiz/${PLUGIN_NAME}="*@dev")
rm -rf ${APP_DIR}/var/cache


Expand Down
8 changes: 5 additions & 3 deletions src/Resources/views/Shop/Page/show.html.twig
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{% extends '@SyliusShop/layout.html.twig' %}

{% block title %}{{ page.metaTitle|page.title }}{% endblock %}
{% set metaTitle = page.metaTitle ? page.metaTitle : page.title %}

{% block title %}{{ metaTitle }}{% endblock %}

{% block metatags %}
{{ parent() }}
<meta property="og:type" content="page" />
{% if page.metaTitle is not empty %}
<meta property="og:title" content="{{ page.metaTitle }}"/>
{% if metaTitle is not empty %}
<meta property="og:title" content="{{ metaTitle }}"/>
{% endif %}
{% if page.metaDescription is not empty %}
<meta name="description" property="og:description" content="{{ page.metaDescription }}"/>
Expand Down

0 comments on commit 8f15e98

Please sign in to comment.