@@ -33,7 +33,7 @@ export class AppBlog {
3333 @State ( ) searchIsLoading : boolean = false ;
3434
3535 pageSize = 3 ;
36- indexOfFeaturedPost = - 1 ;
36+ indexOfFeaturedPost = - 1 ;
3737 pageOfFeaturedPost = 0 ;
3838 private filters : BlogCategory [ ] = [
3939 {
@@ -90,9 +90,9 @@ export class AppBlog {
9090
9191 // Find the index of the featuredPost.
9292 this . indexOfFeaturedPost = this . allBlogPosts . findIndex ( post => {
93- return ( post . title == this . featuredPost . title && post . published == this . featuredPost . published ) ;
93+ return post . title === this . featuredPost . title && post . published === this . featuredPost . published ;
9494 } ) ;
95- // Find the page where the featuredPost is if found the featuredPost
95+ // Find the page where the featuredPost is if found the featuredPost
9696 if ( this . indexOfFeaturedPost > - 1 ) {
9797 this . pageOfFeaturedPost = Math . floor ( this . indexOfFeaturedPost / this . pageSize ) + 1 ;
9898 }
@@ -119,7 +119,7 @@ export class AppBlog {
119119
120120 // Find the index of the featuredPost from the searhchPostsData
121121 const index = this . searchPostsData . findIndex ( post => {
122- return ( post . title == this . featuredPost . title && post . published == this . featuredPost . published ) ;
122+ return post . title === this . featuredPost . title && post . published === this . featuredPost . published ;
123123 } ) ;
124124 // If found it, remove it from the searchPostsData to avoid display again.
125125 if ( index >= 0 ) this . searchPostsData . splice ( index , 1 ) ;
@@ -140,7 +140,7 @@ export class AppBlog {
140140
141141 // Find the index of the featuredPost from the blogPostsData
142142 const index = this . blogPostsData . findIndex ( post => {
143- return ( post . title == this . featuredPost . title && post . published == this . featuredPost . published ) ;
143+ return post . title === this . featuredPost . title && post . published === this . featuredPost . published ;
144144 } ) ;
145145 // If found it, remove it from the blogPostsData to avoid display again.
146146 if ( index >= 0 ) this . blogPostsData . splice ( index , 1 ) ;
@@ -154,12 +154,16 @@ export class AppBlog {
154154 let endPoint = Math . min ( this . allBlogPosts . length , page * this . pageSize ) ;
155155
156156 // Adjust the index and the endPoint by the index of the featuredPost
157- if ( page > this . pageOfFeaturedPost ) index ++ ;
158- if ( page == this . pageOfFeaturedPost ) endPoint ++ ;
157+ if ( page > this . pageOfFeaturedPost ) {
158+ index += 1 ;
159+ }
160+ if ( page === this . pageOfFeaturedPost ) {
161+ endPoint += 1 ;
162+ }
159163
160- for ( index ; index < endPoint ; index ++ ) {
164+ for ( index ; index < endPoint ; index += 1 ) {
161165 // Don't push to the blogPostsData if it is the featuredPost.
162- if ( index != this . indexOfFeaturedPost ) this . blogPostsData . push ( this . allBlogPosts [ index ] ) ;
166+ if ( index !== this . indexOfFeaturedPost ) this . blogPostsData . push ( this . allBlogPosts [ index ] ) ;
163167 }
164168 }
165169 this . blogIsLoading = false ;
@@ -382,10 +386,10 @@ export class AppBlog {
382386
383387 < p class = "contact-icons-label" > Follow Us:</ p >
384388 < div class = "contact-icons" >
385- < a href = "https://twitter.com/OpenForge_US " target = "_blank" rel = "noopener" >
389+ < a href = "https://twitter.com/openforgemobile " target = "_blank" rel = "noopener" >
386390 < app-img class = "contact-icon" src = "/assets/blog/twitter.png" alt = "twitter" />
387391 </ a >
388- < a href = "https://www.facebook.com/OpenForgeUS /" target = "_blank" rel = "noopener" >
392+ < a href = "https://www.facebook.com/openforgemobile /" target = "_blank" rel = "noopener" >
389393 < app-img class = "contact-icon" src = "/assets/blog/facebook.png" alt = "facebook" />
390394 </ a >
391395 < a href = "https://www.linkedin.com/company/openforge/" target = "_blank" rel = "noopener" >
0 commit comments