0.7.94
meta names
This commit is contained in:
@@ -7,6 +7,7 @@ from django.http import Http404, HttpResponse
|
|||||||
from django.template import loader
|
from django.template import loader
|
||||||
from .funcs import *
|
from .funcs import *
|
||||||
from GeneralApp.funcs import get_inter_http_respose
|
from GeneralApp.funcs import get_inter_http_respose
|
||||||
|
from django.utils.translation import gettext_lazy as _
|
||||||
|
|
||||||
# from django.contrib.auth.decorators import login_required
|
# from django.contrib.auth.decorators import login_required
|
||||||
# from BaseModels.search_optimization.ld_json.ld_article_news import get_ld_article_news
|
# from BaseModels.search_optimization.ld_json.ld_article_news import get_ld_article_news
|
||||||
@@ -80,7 +81,11 @@ def ArticlesPageView(request, year=None):
|
|||||||
|
|
||||||
Dict = get_articles(art_kwargs=kwargs)
|
Dict = get_articles(art_kwargs=kwargs)
|
||||||
Dict.update({
|
Dict.update({
|
||||||
|
'page': {
|
||||||
|
'title': _('Страница списка новостей'),
|
||||||
|
'description': _('Все новости сайта tripwb.com'),
|
||||||
|
'keywords': _('Все новости сайта tripwb.com'),
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
t = loader.get_template('pages/p_articles.html')
|
t = loader.get_template('pages/p_articles.html')
|
||||||
|
|||||||
@@ -41,6 +41,20 @@ def route_search_results_View(request):
|
|||||||
data.update({'to_address_point_txt': routes_Dict['to_address_point_txt']})
|
data.update({'to_address_point_txt': routes_Dict['to_address_point_txt']})
|
||||||
Dict.update({'route_form': RouteForm(initial=data)})
|
Dict.update({'route_form': RouteForm(initial=data)})
|
||||||
|
|
||||||
|
title = _('Результат поиска маршрутов')
|
||||||
|
if 'from_address_point_txt' in data:
|
||||||
|
title = f'{title} из {data["from_address_point_txt"]}'
|
||||||
|
if 'to_address_point_txt' in data:
|
||||||
|
title = f'{title} в {data["to_address_point_txt"]}'
|
||||||
|
|
||||||
|
Dict.update({
|
||||||
|
'page': {
|
||||||
|
'title': title,
|
||||||
|
'description': title,
|
||||||
|
'keywords': title,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
t = loader.get_template('pages/p_results_find_route.html')
|
t = loader.get_template('pages/p_results_find_route.html')
|
||||||
return get_inter_http_respose(t, Dict, request)
|
return get_inter_http_respose(t, Dict, request)
|
||||||
# return HttpResponse(t.render(Dict, request))
|
# return HttpResponse(t.render(Dict, request))
|
||||||
|
|||||||
Reference in New Issue
Block a user