Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Disqus & tags separation #46

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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: 1 addition & 1 deletion handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class PostForm(djangoforms.ModelForm):
'cols': 20}))
body_markup = forms.ChoiceField(
choices=[(k, v[0]) for k, v in markup.MARKUP_MAP.iteritems()])
tags = forms.CharField(widget=forms.Textarea(attrs={'rows': 5, 'cols': 20}))
tags = forms.CharField(widget=forms.Textarea(attrs={'rows': 5, 'cols': 20}), label='Tags (one per line)')
draft = forms.BooleanField(required=False)
class Meta:
model = models.BlogPost
Expand Down
5 changes: 5 additions & 0 deletions themes/default/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ <h3 id="comments">Comments</h3>
</script>
{% endif %}
<script type="text/javascript" src="http://disqus.com/forums/{{config.disqus_forum}}/embed.js"></script>
<script type="text/javascript">
disqus_identifier = 'post_{{post.key}}';
disqus_url = '{{config.url_prefix}}{{post.path}}';
disqus_title = '{{post.title}}';
</script>
<noscript><a href="http://disqus.com/forums/{{config.disqus_forum}}/?url=ref">View the discussion thread.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
{% endif %}
Expand Down