From c9c0ee4e963e79910dd347c8adc4418ae818690a Mon Sep 17 00:00:00 2001 From: Bobby Date: Thu, 13 Jul 2023 16:07:24 -0400 Subject: Update Branding and Redirect to `shi.foo` --- blog/feed.py | 6 +++--- blog/views.py | 4 ++-- middleware/globalmetamiddleware.py | 2 +- static/css/styles.css | 2 +- static/images/site/banner.png | Bin 125414 -> 82525 bytes templates/blog/home.html | 2 +- templates/blog/partials/base.html | 10 +++++----- templates/blog/post.html | 2 +- templates/blog/site_policy.html | 11 +++++++---- users/forms.py | 4 ++-- users/urls.py | 4 ++-- users/views.py | 8 ++++---- 12 files changed, 29 insertions(+), 26 deletions(-) diff --git a/blog/feed.py b/blog/feed.py index 45e002b2..0951267c 100644 --- a/blog/feed.py +++ b/blog/feed.py @@ -8,12 +8,12 @@ from django.utils.feedgenerator import Enclosure from .models import Post -request_domain = settings.DEBUG and 'https://preview.thatcomputerscientist.com' or 'https://thatcomputerscientist.com' +request_domain = settings.DEBUG and 'https://preview.thatcomputerscientist.com' or 'https://shi.foo' class RSSFeed(Feed): - title = 'That Computer Scientist' + title = 'Shifoo' link = '/weblog' - description = 'RSS Feed for That Computer Scientist Weblog' + description = 'RSS Feed for Shifoo\'s Weblog' feed_type = feedgenerator.Rss201rev2Feed def items(self): diff --git a/blog/views.py b/blog/views.py index e09ec3fb..18bf0424 100644 --- a/blog/views.py +++ b/blog/views.py @@ -204,7 +204,7 @@ def post(request, slug): if post.is_public: # modify request.meta description (only text) and image request.meta['description'] = BeautifulSoup(first_paragraph, 'html.parser').get_text() - request.meta['image'] = 'https://thatcomputerscientist.com/ignis/post_image/720/' + str(post.id) + '.gif' + request.meta['image'] = 'https://shi.foo/ignis/post_image/720/' + str(post.id) + '.gif' read_next = next_read(post) @@ -283,7 +283,7 @@ def anon_comment(request, slug): messages.error(request, 'Please enter a comment!') return redirect(reverse('blog:post', kwargs={'slug': slug})) if not anonymous_email: - anonymous_email = ''.join(random.choice(string.ascii_lowercase) for i in range(10)) + '@anonymous.thatcomputerscientist.com' + anonymous_email = ''.join(random.choice(string.ascii_lowercase) for i in range(10)) + '@anonymous.shi.foo' if not anonymous_token: anonymous_token = ''.join(random.choice(string.ascii_lowercase) for i in range(10)) at = anonymous_token diff --git a/middleware/globalmetamiddleware.py b/middleware/globalmetamiddleware.py index a70efc8c..841b8bf1 100644 --- a/middleware/globalmetamiddleware.py +++ b/middleware/globalmetamiddleware.py @@ -8,7 +8,7 @@ class GlobalMetaMiddleware: request.meta = { # Default General Meta Tags 'description': 'Welcome to the home of That Computer Scientist. I am Kumar Priyansh. This is my personal website where I share all of my thoughts, ideas, and experiences.', - 'image': 'https://thatcomputerscientist.com/static/images/logo/logo.png', + 'image': 'https://shi.foo/static/images/logo/logo.png', 'url': '{}://{}{}'.format(request.scheme, request.get_host(), request.path), # Robots Meta Tags diff --git a/static/css/styles.css b/static/css/styles.css index 87149669..80fc4813 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -324,7 +324,7 @@ blockquote { } #header { - background-image: url("../images/site/Banner.gif"); + background-image: url("../images/site/banner.png"); background-repeat: no-repeat; background-position: center; margin: auto; diff --git a/static/images/site/banner.png b/static/images/site/banner.png index 178d9cdf..9bd4156b 100644 Binary files a/static/images/site/banner.png and b/static/images/site/banner.png differ diff --git a/templates/blog/home.html b/templates/blog/home.html index d9cb006f..fd7de6b7 100644 --- a/templates/blog/home.html +++ b/templates/blog/home.html @@ -3,7 +3,7 @@

- Welcome to the home of That Computer Scientist. My name is @bobby, and this is my personal + Welcome to the home of Shifoo (previously That Computer Scientist). My name is @bobby, and this is my personal website. I aim to build a retro looking personal website, where I share my thoughts, ideas, and experiences through articles, and will showcase some cool nostalgic features and tools.

diff --git a/templates/blog/partials/base.html b/templates/blog/partials/base.html index cd605dae..d55abcd3 100644 --- a/templates/blog/partials/base.html +++ b/templates/blog/partials/base.html @@ -8,15 +8,15 @@ - - + + - That Computer Scientist - {{ title }} + Shifoo - {{ title }}

- © {% now "Y" %} That Computer Scientist. Source code available on + © {% now "Y" %} Shifoo. Source code available on GitHub. All rights reserved. diff --git a/templates/blog/post.html b/templates/blog/post.html index 2a927c3d..f0027ecc 100644 --- a/templates/blog/post.html +++ b/templates/blog/post.html @@ -63,7 +63,7 @@ background: #ffffff0d; ">

Liked this post? Wanna stay updated?

Subscribe to my RSS feed to get the latest updates from this weblog. Copy and paste the following link into your favorite RSS reader:

-
https://thatcomputerscientist.com/rss/
+
https://shi.foo/rss/
{% if read_next %} diff --git a/templates/blog/site_policy.html b/templates/blog/site_policy.html index ac1ebaf9..9455504b 100644 --- a/templates/blog/site_policy.html +++ b/templates/blog/site_policy.html @@ -5,7 +5,7 @@

Update: W.E.F May 27, 2023, this site will employ Google Analytics to track user activity. Also Cloudflare's Browser Insights will be used to track performance metrics.

Also, do not sell my data!

-

Any personal information you provide here will be kept confidential and will not be sold, rented, loaned, or otherwise disclosed. Any information you provide will be held with the utmost care, and will not be used in ways that you have not consented to. If you have any questions, please feel free to contact me at webmaster@thatcomputerscientist.com.

+

Any personal information you provide here will be kept confidential and will not be sold, rented, loaned, or otherwise disclosed. Any information you provide will be held with the utmost care, and will not be used in ways that you have not consented to. If you have any questions, please feel free to contact me at webmaster@shi.foo.

What are these Advertisements?

As you know, one of the main goals to this site is to maintain a retro look. The advertisements are a part of that. The ads shown on this website are fake and purely for aesthetic purposes. They are just images of ads from the early days of the internet to spark the nostalgia. I do not make any money from these ads.

@@ -67,18 +67,21 @@

Is all the information on this site accurate?

-

The information contained in this website is for general information purposes only. The information is provided by thatcomputerscientist.com and while I endeavour to keep the information up to date and correct, I make no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability or availability with respect to the website or the information, products, services, or related graphics contained on the website for any purpose. Any reliance you place on such information is therefore strictly at your own risk.

+

The information contained in this website is for general information purposes only. The information is provided by shi.foo and while I endeavour to keep the information up to date and correct, I make no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability or availability with respect to the website or the information, products, services, or related graphics contained on the website for any purpose. Any reliance you place on such information is therefore strictly at your own risk.

In no event will I be liable for any loss or damage including without limitation, indirect or consequential loss or damage, or any loss or damage whatsoever arising from loss of data or profits arising out of, or in connection with, the use of this website.

Links to external websites are provided as a convenience and for informational purposes only. They should not be construed as an endorsement by me of the content or views of the linked materials.

-

Through this website you are/will be able to link to other websites which are not under the control of thatcomputerscientist.com. I have no control over the nature, content and availability of those sites. The inclusion of any links does not necessarily imply a recommendation or endorse the views expressed within them.

+

Through this website you are/will be able to link to other websites which are not under the control of shi.foo. I have no control over the nature, content and availability of those sites. The inclusion of any links does not necessarily imply a recommendation or endorse the views expressed within them.

-

Every effort is made to keep the website up and running smoothly. However, thatcomputerscientist.com takes no responsibility for, and will not be liable for, the website being temporarily unavailable due to technical issues beyond our control.

+

Every effort is made to keep the website up and running smoothly. However, shi.foo takes no responsibility for, and will not be liable for, the website being temporarily unavailable due to technical issues beyond our control.

Who gets the final say?

Me! Okay! I am the supreme overlord of this site. All information on this site is subject to change without notice. I reserve the right to change the terms of service at any time. If you care too much about the terms of service, you should probably not use this site. Okay, all done now. Get out of here!

+

Update: July 13, 2023

+

The website's new URL is shi.foo. The old URL thatcomputerscientist.com will be redirected to the new URL. Please update your bookmarks.

+ {% endblock %} diff --git a/users/forms.py b/users/forms.py index 2a1be649..a78b26f5 100644 --- a/users/forms.py +++ b/users/forms.py @@ -95,7 +95,7 @@ class RegisterForm(forms.Form): subject = 'Verify your email address' message = render_to_string('verification_email.html', { 'user': user.username if user.first_name is None else user.first_name, - 'site_name': 'That Computer Scientist', + 'site_name': 'Shifoo', 'uid': uid, 'token': token, 'protocol': 'https://' if request.is_secure() else 'http://', @@ -103,7 +103,7 @@ class RegisterForm(forms.Form): }) message = strip_tags(message) # send_mail(subject, message, 'That Computer Scientist <' + settings.EMAIL_HOST_USER + '>', [user.email], fail_silently=False) - if (send_email(sender='noreply@thatcomputerscientist.com', sender_name='That Computer Scientist', recipient=user.email, subject=subject, body_html=message, body_text=message)): + if (send_email(sender='noreply@thatcomputerscientist.com', sender_name='Shifoo', recipient=user.email, subject=subject, body_html=message, body_text=message)): return user else: return user diff --git a/users/urls.py b/users/urls.py index 132049b6..98dff57c 100644 --- a/users/urls.py +++ b/users/urls.py @@ -19,6 +19,6 @@ urlpatterns = [ ] # Configure Admin Site -admin.site.site_header = 'That Computer Scientist Administation' -admin.site.site_title = 'That Computer Scientist' +admin.site.site_header = 'Shifoo Administation' +admin.site.site_title = 'Shifoo' admin.site.index_title = 'Administration Area' diff --git a/users/views.py b/users/views.py index 209fb1cd..7c166911 100644 --- a/users/views.py +++ b/users/views.py @@ -165,7 +165,7 @@ def send_change_user_email(request): message = render_to_string('email_change_verification_email.html', { 'user': user.username if user.first_name is None else user.first_name, - 'site_name': 'That Computer Scientist', + 'site_name': 'Shifoo', 'uid': uid, 'token': token, 'protocol': request.scheme + '://', @@ -174,7 +174,7 @@ def send_change_user_email(request): message = strip_tags(message) # send_mail(subject, message, 'That Computer Scientist <' + settings.EMAIL_HOST_USER + '>', [new_email]) - if (send_email(sender='noreply@thatcomputerscientist.com', sender_name='That Computer Scientist', recipient=new_email, subject=subject, body_html=message, body_text=message)): + if (send_email(sender='noreply@thatcomputerscientist.com', sender_name='Shifoo', recipient=new_email, subject=subject, body_html=message, body_text=message)): messages.success(request, 'Verification email was sent! Please check your email.') return HttpResponseRedirect(request.META.get('HTTP_REFERER')) else: @@ -195,14 +195,14 @@ def send_verification_email(request): message = render_to_string('verification_email.html', { 'user': user.username if user.first_name is None else user.first_name, - 'site_name': 'That Computer Scientist', + 'site_name': 'Shifoo', 'uid': uid, 'token': token, 'protocol': 'https://' if request.is_secure() else 'http://', 'domain': request.get_host(), }) message = strip_tags(message) - if (send_email(sender='noreply@thatcomputerscientist.com', sender_name='That Computer Scientist', recipient=user.email, subject=subject, body_html=message, body_text=message)): + if (send_email(sender='noreply@thatcomputerscientist.com', sender_name='Shifoo', recipient=user.email, subject=subject, body_html=message, body_text=message)): messages.success(request, 'VESENT', extra_tags='loginError') return HttpResponseRedirect(request.META.get('HTTP_REFERER')) else: -- cgit v1.2.3