Add meta tags
This commit is contained in:
parent
38b6016e0d
commit
46b5d4c107
6 changed files with 27 additions and 0 deletions
|
@ -1,3 +1,6 @@
|
||||||
twig:
|
twig:
|
||||||
default_path: '%kernel.project_dir%/templates'
|
default_path: '%kernel.project_dir%/templates'
|
||||||
form_themes: ['bootstrap_4_horizontal_layout.html.twig']
|
form_themes: ['bootstrap_4_horizontal_layout.html.twig']
|
||||||
|
|
||||||
|
globals:
|
||||||
|
app_env: '%env(APP_ENV)%'
|
|
@ -2,6 +2,11 @@
|
||||||
|
|
||||||
{% block title %}Home{% endblock %}
|
{% block title %}Home{% endblock %}
|
||||||
|
|
||||||
|
{% block meta %}
|
||||||
|
<meta name="description" content="A platform to trade plants." >
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div class="jumbotron">
|
<div class="jumbotron">
|
||||||
<h1 class="display-4">Welcome to Pflänz.li</h1>
|
<h1 class="display-4">Welcome to Pflänz.li</h1>
|
||||||
|
|
|
@ -2,6 +2,11 @@
|
||||||
|
|
||||||
{% block title %}Offer: {{ offer.title }}{% endblock %}
|
{% block title %}Offer: {{ offer.title }}{% endblock %}
|
||||||
|
|
||||||
|
{% block meta %}
|
||||||
|
<meta name="description" content="{{offer.byuser }} offers {{ offer.title}}!" >
|
||||||
|
<meta name="author" content="{{ offer.byUser }}">
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
{% for message in app.flashes('error') %}
|
{% for message in app.flashes('error') %}
|
||||||
<div class="alert alert-danger" role="alert">
|
<div class="alert alert-danger" role="alert">
|
||||||
|
|
|
@ -5,6 +5,12 @@
|
||||||
<title>Pflänz.li -
|
<title>Pflänz.li -
|
||||||
{% block title %}{% endblock %}
|
{% block title %}{% endblock %}
|
||||||
</title>
|
</title>
|
||||||
|
{% block meta %}{% endblock %}
|
||||||
|
{% if app_env == 'prod' %}
|
||||||
|
<meta name="robots" content="index,follow" />
|
||||||
|
{% endif %}
|
||||||
|
<meta name="publisher" content="pflänz.li" />
|
||||||
|
<meta name="keywords" content="trade, share, plants", "sustainability" />
|
||||||
|
|
||||||
{% block stylesheets %}
|
{% block stylesheets %}
|
||||||
{{ encore_entry_link_tags('app') }}
|
{{ encore_entry_link_tags('app') }}
|
||||||
|
|
|
@ -3,6 +3,10 @@
|
||||||
{% block title %}Register
|
{% block title %}Register
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block meta %}
|
||||||
|
<meta name="description" content="Register for pflänz.li"
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
{% for flashError in app.flashes('verify_email_error') %}
|
{% for flashError in app.flashes('verify_email_error') %}
|
||||||
<div class="alert alert-danger" role="alert">{{ flashError }}</div>
|
<div class="alert alert-danger" role="alert">{{ flashError }}</div>
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
{% block title %}Log in{% endblock %}
|
{% block title %}Log in{% endblock %}
|
||||||
|
|
||||||
|
{% block meta %}
|
||||||
|
<meta name="description" content="Register for pflänz.li"
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<form method="post">
|
<form method="post">
|
||||||
{% if error %}
|
{% if error %}
|
||||||
|
|
Reference in a new issue