Skip to content

Commit

Permalink
Better defaults for strict settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobdenotter committed Jul 4, 2017
1 parent cdbcf1a commit 26d2d7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/_metatags.twig
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{% if description is not empty %}
{% if description|default() is not empty %}
<meta name="description" content="{{ description }}"/>
{% if keywords|default('') is not empty %}
{% if keywords|default() is not empty %}
<meta name="keywords" content="{{ keywords }}"/>
{% endif %}
{% endif %}
<meta property="og:locale" content="{{ htmllang()|replace({'-': '_'}) }}" />
<meta property="og:type" content="website" />
<meta property="og:title" content="{{ title }}" />
{% if description is not empty %}
{% if description|default() is not empty %}
<meta property="og:description" content="{{ description }}" />
{% endif %}
<meta property="og:url" content="{{ canonical }}" />
<meta property="og:site_name" content="{{ app.config.get('general/sitename') }}" />
{% if image is not empty %}
{% if image|default() is not empty %}
<meta property="og:image" content="{{ image }}" />
{% endif %}
<meta name="robots" content="{{ robots }}" />
Expand Down

0 comments on commit 26d2d7a

Please sign in to comment.