Skip to content

Instantly share code, notes, and snippets.

@muks999
Last active October 19, 2018 06:47
Show Gist options
  • Save muks999/57472580636eb46e5cab0f19710f07c3 to your computer and use it in GitHub Desktop.
Save muks999/57472580636eb46e5cab0f19710f07c3 to your computer and use it in GitHub Desktop.
смена тайтла в зависимости от шаблона
//если шаблон 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>
`]]
`]]
`]]
@muks999
Copy link
Author

muks999 commented Oct 15, 2018

данный код вставляется в чанк отвечающий за генерацию head

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment