fix SEO tags and attributes
authorRigel Kent <sendmemail@rigelk.eu>
Wed, 19 Sep 2018 23:08:46 +0000 (01:08 +0200)
committerRigel Kent <sendmemail@rigelk.eu>
Thu, 20 Sep 2018 14:48:21 +0000 (16:48 +0200)
client/src/app/shared/video/video-thumbnail.component.html
client/src/app/videos/+video-watch/video-watch.component.html

index c1d45ea182b93c13ab72036e2581e7f6651321c3..6935ed9485a1f332b7a8e072b58c7e6eca1ad470 100644 (file)
@@ -2,7 +2,7 @@
   [routerLink]="['/videos/watch', video.uuid]" [attr.title]="video.name"
   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">
   {{ video.durationLabel }}
index 62b9cf62b428ad4ce9e7552cc902ce2f4a7145ae..630345a35832d02fed8814696e8c3cbd48b33746 100644 (file)
@@ -32,7 +32,7 @@
         <div class="video-info-first-row">
           <div>
             <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">
                 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-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">
                   Published {{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views