Z
Z
zelsky2015-08-21 11:36:13
Django
zelsky, 2015-08-21 11:36:13

ShareThis in Django?

Blog structure. And from the main page you need to make a repost in the social network. But in order to pass to the title and description not the main page from which the repost is coming, but the page to which the link goes. Thank you.
Another question is how to add a block

<meta property="og:title" content="{{postformblogf.title}}" />
<meta property="og:title" content="{{postformblogf.desc}}" />

How can I add this kind of code to each div so that it works properly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zelsky, 2015-08-21
@zelsky

https://tech.yandex.ru/share/doc/dg/concepts/share...

<div class="yashare-auto-init" 
                             data-yashareTitle="{{object.title}}" data-yashareLink="{{object.get_absolute_url}}"
                             data-yashareL10n="en" data-yashareType="big" data-yashareQuickServices="facebook,twitter,gplus" data-yashareTheme="counter"></div>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question