diff options
| author | Bobby <[email protected]> | 2024-06-13 13:41:25 +0000 |
|---|---|---|
| committer | Bobby <[email protected]> | 2024-06-13 13:41:25 +0000 |
| commit | 77275c2c688aa1f337659d98255582627450d43f (patch) | |
| tree | 6dfa7040e30d6f7cd4bf34e37431850aabeda4b0 | |
| parent | 4d1e96e6ab4d2bf42a32e07d6f3e0a2e6e2bc90b (diff) | |
| download | thatcomputerscientist-77275c2c688aa1f337659d98255582627450d43f.tar.xz thatcomputerscientist-77275c2c688aa1f337659d98255582627450d43f.zip | |
Update Meta Image
| -rw-r--r-- | middleware/globalmetamiddleware.py | 10 |
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) |
