Детальный блог титл
This commit is contained in:
parent
9c8aef1e97
commit
64e4037057
@ -94,6 +94,17 @@ class ArticleDetailView(MenuContextMixin, DetailView, CreateView):
|
|||||||
|
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
context = super().get_context_data(**kwargs)
|
context = super().get_context_data(**kwargs)
|
||||||
|
context.update({
|
||||||
|
'title': "Статии | Инструкции",
|
||||||
|
'meta_description': (
|
||||||
|
"Инструкции по работе в 1С и бизнес-решения"
|
||||||
|
"инструкции, статьи помощь 1С."
|
||||||
|
),
|
||||||
|
'meta_keywords': (
|
||||||
|
"проекты 1С, автоматизация склада 1С, интеграция ТСД 1С, "
|
||||||
|
"миграция 1С 7.7, кейсы 1С, примеры работ 1С"
|
||||||
|
),
|
||||||
|
})
|
||||||
# Добавляем только одобренные комментарии
|
# Добавляем только одобренные комментарии
|
||||||
context['moderated_comments'] = self.object.comments.filter(is_moderated=True)
|
context['moderated_comments'] = self.object.comments.filter(is_moderated=True)
|
||||||
return context
|
return context
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user