app/Plugin/Seo42/Resource/template/list.twig line 1

Open in your IDE?
  1. {% if Category is not empty %}
  2. <script>
  3.     $(function() {
  4.         {% if Category.seo_title is defined and Category.seo_title is not empty %}
  5.         $('title').html('{{ Category.seo_title }}');
  6.         {% endif %}
  7.         {% if Category.seo_keywords is defined and Category.seo_keywords is not empty %}
  8.         $('meta[name=keywords]').remove();
  9.         $('title').after('<meta name="keywords" content="{{ Category.seo_keywords }}">');
  10.         {% endif %}
  11.         {% if Category.seo_description is defined and Category.seo_description is not empty %}
  12.         $('meta[name=description]').remove();
  13.         $('title').after('<meta name="description" content="{{ Category.seo_description }}">');
  14.         {% endif %}
  15.     });
  16. </script>
  17. {% endif %}