diff --git a/src/articles/context_processors.py b/src/articles/context_processors.py index dd286f4..f567618 100644 --- a/src/articles/context_processors.py +++ b/src/articles/context_processors.py @@ -1,3 +1,4 @@ +import copy from typing import Any from django.conf import settings @@ -56,10 +57,7 @@ def open_graph_image_url(request: HttpRequest) -> dict[str, Any]: def blog_metadata(request: HttpRequest) -> dict[str, Any]: + blog_settings = copy.deepcopy(settings.BLOG) return { - "blog_title": settings.BLOG["title"], - "blog_description": settings.BLOG["description"], - "blog_author": settings.BLOG["author"], - "blog_repo_homepage": settings.BLOG["repo"]["homepage"], - "blog_status_url": settings.BLOG["status_url"], + "blog": blog_settings, } diff --git a/src/articles/templates/articles/base.html b/src/articles/templates/articles/base.html index 533879c..3d37340 100644 --- a/src/articles/templates/articles/base.html +++ b/src/articles/templates/articles/base.html @@ -9,9 +9,9 @@ -
{{ blog_description }}
+{{ blog.description }}
{% include "articles/snippets/navigation.html" %}
Thoughts written here are my own and don't reflect any of my past, present
or future employer's position.
- The platform behind this blog is free software.
- This blog and all articles by Gabriel Augendre are licensed under the
- CC BY-SA 4.0 International License.
- Code blocks by Gabriel Augendre are published as is and released
- into the public domain.
- Currently deployed version: {{ git_version }}.
- {% if blog_status_url %}
- Status of services can be found here
+ The platform behind this blog is free software.
+ Articles are released into the public domain through the
+
+ {{ blog.licenses.content.name }}.
+ Code blocks are released into the public domain through
+
+ {{ blog.licenses.code.name }}.
+ Currently deployed version:
+ {{ git_version }}.
+ {% if blog.status_url %}
+ Status of services can be found
+ here.
{% endif %}