mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-25 16:51:00 +00:00
17 lines
505 B
Python
17 lines
505 B
Python
from django.conf import settings
|
|
|
|
from core.models import Config
|
|
|
|
|
|
def config_context(request):
|
|
return {
|
|
"config": Config.system,
|
|
"allow_migration": settings.SETUP.ALLOW_USER_MIGRATION,
|
|
"top_section": request.path.strip("/").split("/")[0],
|
|
"opengraph_defaults": {
|
|
"og:site_name": Config.system.site_name,
|
|
"og:type": "website",
|
|
"og:title": Config.system.site_name,
|
|
"og:url": request.build_absolute_uri(),
|
|
},
|
|
}
|