You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have identified three scopes where metatags can be defined.
List from broadest to narrowest:
"global" - general definitions, no i18n - reside in data/metatags.yml
"i18n" - definitions for i18n - reside in i18n/LANG.yml
"page" - definitions on page level, i18n and no i18n - reside in front-matter or defaults scope
To allow for overrides on narrower level I loop through every scope from narrow to broad and save the key to prevent overriding from broader scopes.
Since there are three general types of metatags (name, property, rel) I have created three includes accordingly.
To reduce loops it needs to be checked if merging of arrays is somewhat possible or implement it manually.
This helps to ease handling of special cases like og:image.
The text was updated successfully, but these errors were encountered:
I have identified three scopes where metatags can be defined.
List from broadest to narrowest:
data/metatags.yml
i18n/LANG.yml
To allow for overrides on narrower level I loop through every scope from narrow to broad and save the key to prevent overriding from broader scopes.
Since there are three general types of metatags (
name
,property
,rel
) I have created threeincludes
accordingly.To reduce loops it needs to be checked if merging of arrays is somewhat possible or implement it manually.
This helps to ease handling of special cases like
og:image
.The text was updated successfully, but these errors were encountered: