Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Рефакторит вывод titleSuffix и title #367

Merged
merged 2 commits into from
Aug 7, 2024
Merged

Рефакторит вывод titleSuffix и title #367

merged 2 commits into from
Aug 7, 2024

Conversation

monochromer
Copy link
Member

@monochromer monochromer commented Aug 6, 2024

Правки:

  • Заметил, что в layouts/page.njk есть неиспользуемая переменная isIndex.
  • Удалил использование renderData.title, так как нигде не нашёл места его задания. Видимо, было в начале редизайна.
  • Перенёс задание переменной titleSuffix в глобальное computed-поле, чтобы в самих шаблонах было меньше вычислений. Конечное задание title также перенёс в computed-поле pageTitle(data) { return data.title + data.titleSuffix; }.

Copy link
Member

@pepelsbey pepelsbey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Спасибо!

@pepelsbey pepelsbey merged commit 3050ae6 into web-standards-ru:main Aug 7, 2024
5 checks passed
pepelsbey pushed a commit that referenced this pull request Aug 8, 2024
* Рефакторит вывод `titleSuffix` и `title`

* Рефакторит использование `pageTitle`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants