fix SEO tags and attributes

pull/1103/head
Rigel Kent 2018-09-20 01:08:46 +02:00
parent 5c142a4bab
commit f845c68305
No known key found for this signature in database
GPG Key ID: EA12971B0E438F36
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
[routerLink]="['/videos/watch', video.uuid]" [attr.title]="video.name" [routerLink]="['/videos/watch', video.uuid]" [attr.title]="video.name"
class="video-thumbnail" class="video-thumbnail"
> >
<img alt="" [attr.aria-labelledby]="video.name" [attr.src]="getImageUrl()" [ngClass]="{ 'blur-filter': nsfw }" /> <img [attr.alt]="video.name" [attr.aria-labelledby]="video.name" [attr.src]="getImageUrl()" [ngClass]="{ 'blur-filter': nsfw }" />
<div class="video-thumbnail-overlay"> <div class="video-thumbnail-overlay">
{{ video.durationLabel }} {{ video.durationLabel }}

View File

@ -32,7 +32,7 @@
<div class="video-info-first-row"> <div class="video-info-first-row">
<div> <div>
<div class="d-block d-sm-none"> <!-- only shown on small devices, has its conterpart for larger viewports below --> <div class="d-block d-sm-none"> <!-- only shown on small devices, has its conterpart for larger viewports below -->
<div class="video-info-name">{{ video.name }}</div> <h1 class="video-info-name">{{ video.name }}</h1>
<div i18n class="video-info-date-views"> <div i18n class="video-info-date-views">
Published {{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views Published {{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views
@ -41,7 +41,7 @@
<div class="d-flex justify-content-between align-items-sm-end"> <div class="d-flex justify-content-between align-items-sm-end">
<div class="d-none d-sm-block"> <div class="d-none d-sm-block">
<div class="video-info-name">{{ video.name }}</div> <h1 class="video-info-name">{{ video.name }}</h1>
<div i18n class="video-info-date-views"> <div i18n class="video-info-date-views">
Published {{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views Published {{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views