Hello friends, another problem befalls me on the way to publishing and finalizing my blog.
The problem is that I can not specify my metadata on the taxonomy pages.
I need to add meta descriptions for category pages and tags:
title
description
image (facebook + twitter)
The site has the following plugin installed:
But how can I specify the mate data for taxonomies not where not indicated.
Yes, I did. You are absolutely right in all of your comments. And I am very grateful for your attention and time given to me. The thing is that I did not immediately understand where and how to override the file page_header.html.twig which was actually in the gantry 5 plugin folder. As a result, I did everything but with switch. I am very grateful to you, mark your decision as correct as only thanks to you I managed to understand, well, I wrote my decision on the basis of yours. Thanks again.
PS. Just want to note that the solution for describing the categories that is indicated here:
I did not work, although I tried all possible options.
I will describe in more detail how I did it:
In order that we could independently manage the output of metadata on a site running Gantry 5 plug-in, we need to reassign the metadata output file itself for this to begin with, I copied the file: * user / public_html / user / plugins / gantry5 / engines / nucleus / templates / partials / page_head.html.twig
to the folder: * user / data / gantry5 / themes / g5_helium / partials / page_head.html.twig
After that, everything that I will be added to the file that is in the custom folder will be displayed instead of the stock output (that is, the output location from the page_head.html.twig file that is in the plugin folder).
Next, I created the __SDStudio__CATEGORY_DESC.html.twig file: * user / public_html / user / data / gantry5 / themes / g5_helium / particles / __ SDStudio__CATEGORY_DESC.html.twig
And already in it has placed the code for SWITCH, an example of a code:
{# SWITCH CASE - Description of categories START #}
{% set CategoryDescription = ‘’%}
{% switch grav.uri.param ('category')%}
{% case "WordPress"%}
{% set CategoryDescription = 'WordPress merciless'%}
{% case "Grav"%}
{% set CategoryDescription = 'Grav is a file-based CMS (flat-file CMS)'%}
{% default%}
{% set CategoryDescription = ''%}
{% endswitch%}
{# SIMPLE OUTPUT OF VARIABLES CategoryDescription #}
{{CategoryDescription}}
{# SWITCH CASE - Category description END #}
Next, I display the contents of a variable anywhere on the site using: {% include '@particles / __ SDStudio__CATEGORY_DESC.html.twig'%}