Skip to content

Commit

Permalink
Display link to newsletter subscribe instead of input box, closes #51
Browse files Browse the repository at this point in the history
  • Loading branch information
janbaykara committed Oct 4, 2022
1 parent 5b337a7 commit 64f7c7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions stopwatch/models/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ def mailing_list_block(self):
return {
'heading': 'Sign up to our newsletter',
'content': self.standard_mailinglist_request,
'target': {
"title": "Subscribe",
"url": self.email_list_url,
}
}


Expand Down
2 changes: 1 addition & 1 deletion stopwatch/templates/stopwatch/pages/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ <h2 class="heading-small text-darkgrey border-bottom border-1 border-primary pb-
</div>

<div class="col-8 col-md-4">
{% include "stopwatch/components/newsletter_signup.html" with self=site_settings.mailing_list_block only %}
{% include "stopwatch/components/cta.html" with self=site_settings.mailing_list_block only %}
</div>
</div>
</div>
Expand Down

0 comments on commit 64f7c7f

Please sign in to comment.