diff --git a/blog/context_processors.py b/blog/context_processors.py index cea83a1..00c8c88 100644 --- a/blog/context_processors.py +++ b/blog/context_processors.py @@ -36,6 +36,7 @@ def seo_processor(requests): 'SITE_SEO_DESCRIPTION': setting.site_seo_description, 'SITE_DESCRIPTION': setting.site_description, 'SITE_KEYWORDS': setting.site_keywords, + 'SITE_BASE_URL': requests.scheme + '://' + requests.get_host() + '/', 'ARTICLE_SUB_LENGTH': setting.article_sub_length, 'nav_category_list': Category.objects.all(), 'nav_pages': Article.objects.filter(type='p', status='p'), diff --git a/templates/blog/tags/sidebar.html b/templates/blog/tags/sidebar.html index f78794f..806a53f 100755 --- a/templates/blog/tags/sidebar.html +++ b/templates/blog/tags/sidebar.html @@ -116,7 +116,7 @@