Last active
October 19, 2018 06:47
-
-
Save muks999/57472580636eb46e5cab0f19710f07c3 to your computer and use it in GitHub Desktop.
смена тайтла в зависимости от шаблона
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//если шаблон 5 или 2 | |
[[*template:is=5:or:if=[[*template]]:is=2:then=` | |
//подключаем чанк с тайтлом | |
[[$seo.title.dis]] | |
//или шаблон 34 или 36 | |
:else= | |
[[*template:is=34:or:if=[[*template]]:is=36:then=` | |
//подключаем чанк seo.title.stroy | |
[[$seo.title.stroy]] | |
:else= | |
[[*template:is=16:or:if=[[*template]]:is=3:then=` | |
[[$seo.title.rem]] | |
:else= | |
<title>[[*longtitle]]</title> | |
`]] | |
`]] | |
`]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
данный код вставляется в чанк отвечающий за генерацию head