mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-22 15:21:01 +00:00
8f57aa5f37
Redoes the UI to remove timelines, promote domains, and a lot of other things to support the refactor.
14 lines
407 B
Python
14 lines
407 B
Python
from core.models import Config
|
|
|
|
|
|
def config_context(request):
|
|
return {
|
|
"config": Config.system,
|
|
"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(),
|
|
},
|
|
}
|