From 3b10e3ac0c7e62c744c2ca23765baff23ed3ff28 Mon Sep 17 00:00:00 2001 From: Dan Lipert Date: Wed, 28 Aug 2019 06:01:23 -0700 Subject: [PATCH] add noscript content for seo (#5042) --- app/dashboard/templates/bounty/details.html | 7 +++++++ app/dashboard/views.py | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/app/dashboard/templates/bounty/details.html b/app/dashboard/templates/bounty/details.html index d2cceb2d0c3..0c362c98319 100644 --- a/app/dashboard/templates/bounty/details.html +++ b/app/dashboard/templates/bounty/details.html @@ -451,6 +451,13 @@
{% trans "Funder" %}
+ + {% include 'shared/bottom_notification.html' %} {% include 'shared/analytics.html' %} {% include 'shared/footer_scripts.html' %} diff --git a/app/dashboard/views.py b/app/dashboard/views.py index 799aadd3ef4..b3d481a5d54 100644 --- a/app/dashboard/views.py +++ b/app/dashboard/views.py @@ -1675,6 +1675,11 @@ def bounty_details(request, ghuser='', ghrepo='', ghissue=0, stdbounties_id=None params['card_title'] = f'{bounty.title} | {bounty.org_name} Funded Issue Detail | Gitcoin' params['title'] = params['card_title'] params['card_desc'] = ellipses(bounty.issue_description_text, 255) + params['noscript'] = { + 'title': bounty.title, + 'org_name': bounty.org_name, + 'issue_description_text': bounty.issue_description_text, + 'keywords': ', '.join(bounty.keywords.split(','))} if bounty.event and bounty.event.slug: params['event'] = bounty.event.slug