Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase develop #31

Merged
merged 76 commits into from
Nov 24, 2023
Merged
Changes from 1 commit
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
3017562
Merge pull request #1 from StackTipsLab/develop
nilandev Oct 21, 2023
2b6710a
Fixed node module build issue
nilandev Oct 21, 2023
538fe13
Fixed node module build issue
nilandev Oct 21, 2023
ceadb02
Fixed node module build issue
nilandev Oct 21, 2023
4fea997
Site title and description is now configurable
nilandev Oct 22, 2023
ce7b8c0
Added readthedocs.yaml config
nilandev Oct 22, 2023
172e08d
Ads.txt is now configurable
nilandev Oct 22, 2023
ff0e631
Ads.txt is now configurable
nilandev Oct 22, 2023
be8331d
Added empty list error messages
nilandev Oct 22, 2023
bb7013d
Update README.md
nilandev Oct 22, 2023
45ac51e
Merge pull request #14 from StackTipsLab/nilandev-patch-1
nilandev Oct 22, 2023
a03ce91
Making post types configurable
nilandev Oct 24, 2023
5fb995d
Added categories import
nilandev Oct 24, 2023
8466851
Merge pull request #16 from StackTipsLab/feature/basic-content-import
nilandev Oct 24, 2023
37c3ecd
Initial DB Migration issues
nilandev Oct 25, 2023
c2d45a8
Add .venv to gitignore
LairdStreak Oct 25, 2023
15e9698
Merge pull request #17 from LairdStreak/main
nilandev Oct 25, 2023
45467f6
Update LICENSE
nilandev Oct 26, 2023
5f6a8e7
Merge pull request #18 from StackTipsLab/nilandev-patch-2
stackk0 Oct 26, 2023
38502e7
Add files via upload
stackk0 Oct 26, 2023
7737309
Merge pull request #19 from StackTipsLab/stackk0-patch-1
nilandev Oct 26, 2023
04dc7d5
Added SECURITY.md
stackk0 Oct 26, 2023
21d4370
Merge pull request #20 from StackTipsLab/stackk0-patch-2
nilandev Oct 26, 2023
8af3788
Create FUNDING.yml
nilandev Oct 26, 2023
05a870d
Merge pull request #21 from StackTipsLab/nilandev-patch-3
nilandev Oct 26, 2023
cbfa4f2
Update issue templates
nilandev Oct 26, 2023
ed4c0c5
Create pylint.yml
nilandev Oct 26, 2023
ecde1ee
Update pylint.yml
nilandev Oct 26, 2023
5d4c2a5
Supressed few pylint checks
nilandev Oct 26, 2023
4a3357e
code review and refactor
nilandev Oct 26, 2023
0d024b3
code review and refactor
nilandev Oct 26, 2023
d68cf1b
code improvements
nilandev Oct 26, 2023
7a87ec9
code improvements
nilandev Oct 26, 2023
53ca814
code improvements
nilandev Oct 26, 2023
6b692c7
code improvements
nilandev Oct 26, 2023
4e9582f
code improvements
nilandev Oct 26, 2023
bea7d18
code improvements
nilandev Oct 26, 2023
1f94e34
Pylint code smell fixes
nilandev Oct 26, 2023
e4662e8
Pylint code smell fixes
nilandev Oct 26, 2023
b2a396c
Merge pull request #23 from StackTipsLab/pylint-code-analysis
stackk0 Oct 26, 2023
aacbc7c
Create CONTRIBUTING.md
nilandev Oct 26, 2023
4b468dd
Merge pull request #24 from StackTipsLab/nilandev-patch-4
nilandev Oct 26, 2023
143c45a
Removed quizzes
Oct 30, 2023
fba549f
Added articles import
Oct 30, 2023
98ea08c
Merge pull request #26 from StackTipsLab/feature/removed-quizzes
stackk0 Oct 30, 2023
062c088
Reorganized the posts
Oct 31, 2023
199b8c7
Added posts
Oct 31, 2023
8751dcb
Aded pages model
nilandev Nov 1, 2023
f29a98a
Added users import
nilandev Nov 1, 2023
a2cb80b
Sitemap improvements
nilandev Nov 2, 2023
f1fd178
Sitemap improvements
nilandev Nov 2, 2023
762e769
Merge pull request #28 from StackTipsLab/feature/improve-blog-posts
nilandev Nov 2, 2023
527d220
Layout overahaul, Introduction of Github and SEO data into content
nilandev Nov 5, 2023
6463388
Added quizzes
nilandev Nov 7, 2023
401552a
Removed hardcoded redirects into DB
nilandev Nov 7, 2023
e4abb9c
Added related Quiz
nilandev Nov 7, 2023
9b3d914
Posts improvements
nilandev Nov 9, 2023
6a468d4
Variaous UI improvements
nilandev Nov 10, 2023
0fd729e
Variaous UI improvements
nilandev Nov 10, 2023
844897a
Variaous UI improvements
nilandev Nov 10, 2023
760757a
Variaous UI improvements
nilandev Nov 10, 2023
055265e
CSS Fix
nilandev Nov 10, 2023
52a5583
various ui improvements
nilandev Nov 10, 2023
82786fc
CSS Fix
nilandev Nov 11, 2023
8470e79
SEO improvements
nilandev Nov 11, 2023
0517dba
SEO improvements
nilandev Nov 11, 2023
cf65070
Improved SEO Tags
nilandev Nov 11, 2023
aa66d79
Improved SEO Tags
nilandev Nov 12, 2023
881f0e8
Signup email
nilandev Nov 12, 2023
b89a32e
Admin pannel fixes
nilandev Nov 13, 2023
07b05d8
Admin pannel fixes
nilandev Nov 13, 2023
7b9ebaf
Admin pannel fixes
nilandev Nov 13, 2023
d69d0c3
Misc fixes
nilandev Nov 13, 2023
e81922a
Merge pull request #29 from StackTipsLab/feature/improve-blog-posts
nilandev Nov 14, 2023
1ac00af
Removed is_redirect
nilandev Nov 17, 2023
4e5198d
Merge pull request #30 from StackTipsLab/feature/improve-blog-posts
nilandev Nov 17, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Sitemap improvements
nilandev committed Nov 2, 2023
commit f1fd178b59f7eb8d74e2c179d8fc8d5f67a33802
13 changes: 11 additions & 2 deletions bloggy/views/article_views.py
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
from bloggy.models import Post, Category
from bloggy.models.course import Course
from bloggy.services.post_service import get_recent_feed
from bloggy.utils.string_utils import StringUtils


@method_decorator([cache_page(settings.CACHE_TTL, key_prefix="articles"), vary_on_cookie], name='dispatch')
@@ -62,8 +63,16 @@ def get_context_data(self, **kwargs):
raise HttpResponse('Unauthorized', status=401)

context = super().get_context_data(**kwargs)
context["meta_title"] = self.object.meta_title
context["meta_description"] = self.object.meta_description

meta_title = self.object.meta_title
if StringUtils.is_blank(meta_title) or meta_title == "{title}":
meta_title = self.object.title
context["meta_title"] = meta_title

meta_description = self.object.meta_description
if StringUtils.is_blank(meta_description) or meta_description == "{excerpt}":
meta_description = self.object.excerpt
context["meta_description"] = meta_description
context['meta_keywords'] = self.object.meta_keywords
if self.object.thumbnail:
context['meta_image'] = self.object.thumbnail.url