Skip to content

Commit

Permalink
global canonical
Browse files Browse the repository at this point in the history
  • Loading branch information
stakovicz committed Jan 13, 2025
1 parent 026fad1 commit 3212413
Show file tree
Hide file tree
Showing 11 changed files with 3 additions and 35 deletions.
4 changes: 3 additions & 1 deletion app/Resources/views/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
content="width=device-width, user-scalable=yes, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
{% endblock %}
{% block canonical %}{% endblock %}
{% block canonical %}
<link rel="canonical" href="{{ url(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) }}" />
{% endblock %}
<title>{% block title %}Afup{% endblock %}</title>
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('/templates/site/css/styles.css') }}">
Expand Down
5 changes: 0 additions & 5 deletions app/Resources/views/event/home.html.twig
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{% extends ':event:base.html.twig' %}

{% block canonical %}
<link rel="canonical" href="{{ url('event', {eventSlug: event.path, _locale: app.request.locale}) }}" />
{% endblock %}


{% block javascripts %}
{{ parent() }}
<script src="{{ asset('/js/countdown.min.js') }}"></script>
Expand Down
3 changes: 0 additions & 3 deletions app/Resources/views/site/become_member.html.twig
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{% extends ':site:base.html.twig' %}

{% block title %}Devenir membre de l'AFUP{% endblock %}
{% block canonical %}
<link rel="canonical" href="{{ url('become_member') }}" />
{% endblock %}

{% block stylesheets %}
{{ parent() }}
Expand Down
3 changes: 0 additions & 3 deletions app/Resources/views/site/company_public_profile.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
{% endblock %}

{% block page_title %}{{ company_member.companyName }}{% endblock %}
{% block canonical %}
<link rel="canonical" href="{{ url('company_public_profile', { id: company_member.id, slug: company_member.slug}) }}" />
{% endblock %}

{% block title %}{{ company_member.companyName }} est adhérente à l'AFUP{% endblock %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
{% endblock %}

{% block title %}Les entreprises adhérentes à l'AFUP{% endblock %}
{% block canonical %}
<link rel="canonical" href="{{ url('company_public_profile_list') }}" />
{% endblock %}

{% block page_title %}Entreprises adhérentes{% endblock %}

Expand Down
4 changes: 0 additions & 4 deletions app/Resources/views/site/home.html.twig
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{% extends ':site:base.html.twig' %}

{% block canonical %}
<link rel="canonical" href="{{ url('home') }}" />
{% endblock %}

{% import _self as home_macros %}

{% macro home_feuille(feuille) %}
Expand Down
3 changes: 0 additions & 3 deletions app/Resources/views/site/meetups/list.html.twig
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{% extends ':site:base.html.twig' %}

{% block title %}Les meetups des antennes de l'AFUP{% endblock %}
{% block canonical %}
<link rel="canonical" href="{{ url('meetups_list') }}" />
{% endblock %}

{% block stylesheets %}
{{ parent() }}
Expand Down
3 changes: 0 additions & 3 deletions app/Resources/views/site/news/display.html.twig
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{% extends ':site:base.html.twig' %}

{% block title %}{{ article.getTitle }} - AFUP{% endblock %}
{% block canonical %}
<link rel="canonical" href="{{ url('news_display', {code: article.getSlug }) }}" />
{% endblock %}

{% block metas %}
{{ parent() }}
Expand Down
3 changes: 0 additions & 3 deletions app/Resources/views/site/news/list.html.twig
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{% extends ':site:base.html.twig' %}

{% block title %}Les actualités de l'AFUP, page {{ current_page }}{% endblock %}
{% block canonical %}
<link rel="canonical" href="{{ url('news_list', {page: current_page}) }}" />
{% endblock %}

{% block stylesheets %}
{{ parent() }}
Expand Down
3 changes: 0 additions & 3 deletions app/Resources/views/site/talks/list.html.twig
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{% extends ':site:base.html.twig' %}

{% block title %}Historique des conférences de l'AFUP{% endblock %}
{% block canonical %}
<link rel="canonical" href="{{ url('talks_list') }}" />
{% endblock %}

{% block stylesheets %}
{{ parent() }}
Expand Down
4 changes: 0 additions & 4 deletions app/Resources/views/site/talks/show.html.twig
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{% extends ':site:base.html.twig' %}

{% block canonical %}
<link rel="canonical" href="{{ url('talks_show', {id: talk.id, slug: talk.slug }) }}" />
{% endblock %}

{% block stylesheets %}
{{ parent() }}
<link rel="stylesheet" href="/css/grid.css">
Expand Down

0 comments on commit 3212413

Please sign in to comment.