Tiktok blockquote

main
Bob Mottram 2022-10-08 17:04:52 +01:00
parent 23c788ba12
commit e9ae129f35
2 changed files with 11 additions and 1 deletions

View File

@ -361,6 +361,11 @@ blockquote {
font-size: var(--quote-font-size); font-size: var(--quote-font-size);
quotes: "\201C""\201D""\2018""\2019"; quotes: "\201C""\201D""\2018""\2019";
} }
blockquote tiktok-embed {
quotes: "";
}
blockquote:before { blockquote:before {
content: open-quote; content: open-quote;
font-size: 2em; font-size: 2em;

View File

@ -49,11 +49,16 @@ def _add_embedded_video_from_sites(translate: {}, content: str,
video_id = video_id.split('?')[0] video_id = video_id.split('?')[0]
content += \ content += \
'<center>\n<span itemprop="video">\n' + \ '<center>\n<span itemprop="video">\n' + \
'<blockquote class="tiktok-embed" ' + \
'cite="https://www.tiktok.com/@' + \
channel + '/video/' + video_id + '" data-video-id="' + \
video_id + '" ' + \
'style="max-width: 605px;min-width: 325px;" >\n' + \
'<section>\n' + \ '<section>\n' + \
'<a target="_blank" title="@' + channel + \ '<a target="_blank" title="@' + channel + \
'" href="https://www.tiktok.com/@' + channel + \ '" href="https://www.tiktok.com/@' + channel + \
'?refer=embed">@' + channel + '</a>\n' + \ '?refer=embed">@' + channel + '</a>\n' + \
'</section>\n' + \ '</section>\n</blockquote>\n' + \
'<script async ' + \ '<script async ' + \
'src="https://www.tiktok.com/embed.js">\n' + \ 'src="https://www.tiktok.com/embed.js">\n' + \
'</script></span>\n</center>\n' '</script></span>\n</center>\n'