我正在使用django_social_share模块,我不知道如何在社交媒体上传递特定博客文章的共享url 这是邮递_详细信息.html在
<article>
<div class="embed-responsive embed-responsive-16by9">
<img src="{{post.thumb.url}}" alt="" />
</div>
<div class="post-content">
<h2>{{post.title}}</h2>
<div>
{{post.created}} Author {{post.user}}
<hr/>
<p>{{post.body}}</p>
<hr>
<div id="subheader" class="blog">
<div class="subheader-text">
<h1>Did you like this Post ?</h1>
<h4>Consider sharing Most readers like to share our Posts </h4>
<a href="#" rel="shared-popover" data-popover-content="#shared-btn-Popover" title="Share" data-placement="bottom" class="mtr-btn button-circle button-fab ripple"><i class="fa fa-share-alt"></i></a>
<div id="shared-btn-Popover" class="hide">
<ul class="blog-share-buttons">
<li><a href="{% post_to_twitter object.title %}" title="Twitter"><i class="fa fa-twitter"></i></a></li>
<li><a href="{% post_to_facebook object.title %}" title="Facebook"><i class="fa fa-facebook"></i></a></li>
<li><a href="#" title="Linkedin"><i class="fa fa-linkedin"></i></a></li>
</ul>
</div>
</article>
</div>
请帮忙,所有的设置都可以
我想你可以
"{% post_to_twitter post.get_absolte_url %}"
如果你还没做,你可以在你的模型里做
(当然,您必须更改您自己的反向())
相关问题 更多 >
编程相关推荐