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:
|
||||
default_path: '%kernel.project_dir%/templates'
|
||||
form_themes: ['bootstrap_4_horizontal_layout.html.twig']
|
||||
|
||||
globals:
|
||||
app_env: '%env(APP_ENV)%'
|
|
@ -2,6 +2,11 @@
|
|||
|
||||
{% block title %}Home{% endblock %}
|
||||
|
||||
{% block meta %}
|
||||
<meta name="description" content="A platform to trade plants." >
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block body %}
|
||||
<div class="jumbotron">
|
||||
<h1 class="display-4">Welcome to Pflänz.li</h1>
|
||||
|
|
|
@ -2,6 +2,11 @@
|
|||
|
||||
{% 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 %}
|
||||
{% for message in app.flashes('error') %}
|
||||
<div class="alert alert-danger" role="alert">
|
||||
|
|
|
@ -5,6 +5,12 @@
|
|||
<title>Pflänz.li -
|
||||
{% block title %}{% endblock %}
|
||||
</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 %}
|
||||
{{ encore_entry_link_tags('app') }}
|
||||
|
|
|
@ -3,6 +3,10 @@
|
|||
{% block title %}Register
|
||||
{% endblock %}
|
||||
|
||||
{% block meta %}
|
||||
<meta name="description" content="Register for pflänz.li"
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
{% for flashError in app.flashes('verify_email_error') %}
|
||||
<div class="alert alert-danger" role="alert">{{ flashError }}</div>
|
||||
|
|
|
@ -2,6 +2,10 @@
|
|||
|
||||
{% block title %}Log in{% endblock %}
|
||||
|
||||
{% block meta %}
|
||||
<meta name="description" content="Register for pflänz.li"
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<form method="post">
|
||||
{% if error %}
|
||||
|
|
Reference in a new issue