This repository was archived by the owner on Feb 5, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +12
-21
lines changed Expand file tree Collapse file tree 5 files changed +12
-21
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export class AppBlogCard {
1010 @Prop ( ) blogPost : BlogPost ;
1111
1212 componentDidLoad ( ) {
13- document . querySelectorAll ( 'meta[property="og:image"]' ) [ 0 ] . setAttribute ( 'content' , this . blogPost . featured_image ) ; //set opengraph metadata to match Butter CMS featured image
13+ document . querySelectorAll ( 'meta[property="og:image"]' ) [ 0 ] . setAttribute ( 'content' , this . blogPost . featured_image ) ; // set opengraph metadata to match Butter CMS featured image
1414 }
1515
1616 render ( ) {
@@ -22,7 +22,7 @@ export class AppBlogCard {
2222 < div class = "col-md-12" >
2323 < div class = "blog-card-image" >
2424 < stencil-route-link url = { `/blog/${ this . blogPost . slug } ` } >
25- < img src = { this . blogPost . featured_image } />
25+ < img src = { this . blogPost . featured_image } alt = { this . blogPost . title } />
2626 </ stencil-route-link >
2727 </ div >
2828 < div class = "blog-title" >
@@ -31,7 +31,7 @@ export class AppBlogCard {
3131 </ stencil-route-link >
3232 </ div >
3333 < div class = "author" >
34- < img class = "profile-image d-none d-md-block" src = { this . blogPost . author . profile_image } />
34+ < img class = "profile-image d-none d-md-block" src = { this . blogPost . author . profile_image } alt = { ` ${ this . blogPost . author . first_name } ${ this . blogPost . author . last_name } ` } />
3535 < div >
3636 By
3737 { this . blogPost . author . slug === 'jedidiah-weller' ? (
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export class AppBlogContent {
7979 < div >
8080 < div class = "header--date" > { formatDate ( publishDate ) } </ div >
8181 < div class = "header--author" >
82- < img src = { this . blogPost . author . profile_image } />
82+ < img src = { this . blogPost . author . profile_image } alt = { ` ${ this . blogPost . author . first_name } ${ this . blogPost . author . last_name } ` } />
8383 < div >
8484 By
8585 { this . blogPost . author . slug === 'jedidiah-weller' ? (
@@ -93,7 +93,7 @@ export class AppBlogContent {
9393 < div class = "contact-icons-top" id = "contact-icons-top" >
9494 { contactIconsTop }
9595 </ div >
96- < img class = "header--main-image" src = { this . blogPost . featured_image } />
96+ < img class = "header--main-image" src = { this . blogPost . featured_image } alt = { this . blogPost . title } />
9797 </ div >
9898 < div class = "content" >
9999 < div class = "row" >
@@ -111,7 +111,7 @@ export class AppBlogContent {
111111 < div class = "row" >
112112 < div class = "col-md-2 offset-md-2 blog-content-author-image" >
113113 < h5 > About the Author</ h5 >
114- < img src = { this . blogPost . author . profile_image } />
114+ < img src = { this . blogPost . author . profile_image } alt = { ` ${ this . blogPost . author . first_name } ${ this . blogPost . author . last_name } ` } />
115115 </ div >
116116 < div class = "col-md-6 blog-content-author-text" >
117117 < h5 > About the Author</ h5 >
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export class AppBlogFeatured {
2828 </ div >
2929 < div class = "featured-image" >
3030 < stencil-route-link url = { `/blog/${ this . blogPost . slug } ` } >
31- < img src = { this . blogPost . featured_image } />
31+ < img src = { this . blogPost . featured_image } alt = { this . blogPost . title } />
3232 </ stencil-route-link >
3333 </ div >
3434 < div class = "featured-post-title" >
@@ -37,7 +37,7 @@ export class AppBlogFeatured {
3737 </ stencil-route-link >
3838 </ div >
3939 < div class = "author" >
40- < img class = "profile-image d-none d-md-block" src = { this . blogPost . author . profile_image } />
40+ < img class = "profile-image d-none d-md-block" src = { this . blogPost . author . profile_image } alt = { ` ${ this . blogPost . author . first_name } ${ this . blogPost . author . last_name } ` } />
4141 < div >
4242 By
4343 { this . blogPost . author . slug === 'jedidiah-weller' ? (
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ export class ContentGraphic {
88 @Prop ( ) imgUrl : string ;
99 @Prop ( ) reverse : boolean = false ;
1010 @Prop ( ) preLoadImg : boolean = false ;
11+ @Prop ( ) alt : string ;
1112
1213 render ( ) {
1314 return (
@@ -29,12 +30,7 @@ export class ContentGraphic {
2930 'text-md-right' : ! this . reverse ,
3031 } }
3132 >
32- < app-img
33- class = "img-fluid d-none d-md-inline"
34- src = { this . imgUrl }
35- preLoad = { this . preLoadImg }
36- alt = ""
37- />
33+ < app-img class = "img-fluid d-none d-md-inline" src = { this . imgUrl } preLoad = { this . preLoadImg } alt = { this . alt } />
3834 </ div >
3935 < div
4036 class = { {
@@ -45,12 +41,7 @@ export class ContentGraphic {
4541 } }
4642 >
4743 < slot name = "header" />
48- < app-img
49- class = "img-fluid d-xs-inline d-md-none"
50- src = { this . imgUrl }
51- alt = ""
52- preLoad = { this . preLoadImg }
53- />
44+ < app-img class = "img-fluid d-xs-inline d-md-none" src = { this . imgUrl } alt = { this . alt } preLoad = { this . preLoadImg } />
5445 < slot name = "body" />
5546 </ div >
5647 </ div >
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ export class AppContact {
198198
199199 { this . formSubmitted ? (
200200 < div class = "container" >
201- < content-graphic img-url = "/assets/rocket.png" >
201+ < content-graphic img-url = "/assets/rocket.png" alt = "rocket" >
202202 < h3 slot = "header" >
203203 < app-translate keyword = "contact.form.thanx" />
204204 </ h3 >
You can’t perform that action at this time.
0 commit comments