Skip to content

Commit

Permalink
video: add an alt link/title to Youtube video
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentbernat committed Feb 11, 2017
1 parent 5c17f18 commit 93ef0f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/text.py
Expand Up @@ -31,9 +31,9 @@ def replace_content(match):
if what == "youtube":
return """
<div class="lf-video-container">
<a class="lf-video" href="https://www.youtube.com/watch?v={id}">
<a class="lf-video" href="https://www.youtube.com/watch?v={id}" title="Youtube video {id}">
<div class="lf-video-play-button"></div>
<img src="https://i.ytimg.com/vi/{id}/sddefault.jpg">
<img src="https://i.ytimg.com/vi/{id}/sddefault.jpg" alt="Youtube video cover {id}">
</a>
</div>
""".format(id=id)
Expand Down

0 comments on commit 93ef0f4

Please sign in to comment.