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

Add search blog field in blogs #392

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
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
2 changes: 2 additions & 0 deletions dmoj/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,8 @@

WEBAUTHN_RP_ID = None

GOOGLE_SEARCH_ENGINE_URL = None

DESCRIPTION_MAX_LENGTH = 200

GROUP_PERMISSION_FOR_ORG_ADMIN = 'Org Admin'
Expand Down
1 change: 1 addition & 0 deletions judge/views/blog.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ def get_context_data(self, **kwargs):
context['all_blogs_link'] = f"{reverse('home')}?show_all_blogs=true"

context['show_all_blogs'] = self.show_all_blogs
context['gcse_url'] = settings.GOOGLE_SEARCH_ENGINE_URL

context['page_prefix'] = reverse('blog_post_list')
context['comments'] = Comment.most_recent(self.request.user, 10)
Expand Down
Loading