aboutsummaryrefslogtreecommitdiff
path: root/middleware
diff options
context:
space:
mode:
authorBobby <[email protected]>2024-06-13 13:41:25 +0000
committerBobby <[email protected]>2024-06-13 13:41:25 +0000
commit77275c2c688aa1f337659d98255582627450d43f (patch)
tree6dfa7040e30d6f7cd4bf34e37431850aabeda4b0 /middleware
parent4d1e96e6ab4d2bf42a32e07d6f3e0a2e6e2bc90b (diff)
downloadthatcomputerscientist-77275c2c688aa1f337659d98255582627450d43f.tar.xz
thatcomputerscientist-77275c2c688aa1f337659d98255582627450d43f.zip
Update Meta Image
Diffstat (limited to 'middleware')
-rw-r--r--middleware/globalmetamiddleware.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/middleware/globalmetamiddleware.py b/middleware/globalmetamiddleware.py
index 670f5811..197dd210 100644
--- a/middleware/globalmetamiddleware.py
+++ b/middleware/globalmetamiddleware.py
@@ -1,5 +1,6 @@
# Middleware to add global meta tags to the HTML head
+
class GlobalMetaMiddleware:
def __init__(self, get_response):
self.get_response = get_response
@@ -7,12 +8,11 @@ class GlobalMetaMiddleware:
def __call__(self, request):
request.meta = {
# Default General Meta Tags
- 'description': 'Welcome to the home of Shifoo. I am Bobby. This is my personal website where I share all of my thoughts, ideas, and experiences.',
- 'image': 'https://shi.foo/static/images/logo/logo.png',
- 'url': '{}://{}{}'.format(request.scheme, request.get_host(), request.path),
-
+ "description": "Welcome to the home of Shifoo. This is my personal website where I share all of my thoughts, ideas, and experiences.",
+ "image": "https://shi.foo/static/images/favicons/android-chrome-512x512.png",
+ "url": "{}://{}{}".format(request.scheme, request.get_host(), request.path),
# Robots Meta Tags
- 'robots': 'index, follow',
+ "robots": "index, follow",
}
response = self.get_response(request)