Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Commit 888529e

Browse files
authored
Merge pull request #400 from openforge/fix/blog-social-links
fix: set correct social media links on blog
2 parents 4054b58 + bd95085 commit 888529e

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<p align="center">
55
<a href="http://www.openforge.io/">Official Website</a> |
66
<a href="http://www.openforge.io/opportunities">Opportunities</a> |
7-
<a href="https://www.facebook.com/OpenForgeUS/">Facebook</a>
7+
<a href="https://www.facebook.com/openforgemobile/">Facebook</a>
88
</p>
99

1010
<h3 align="center">

src/pages/app-blog/app-blog.tsx

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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">

src/pages/app-home/app-home.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export class AppHome {
5454
});
5555

5656
if (Build.isBrowser) {
57+
/* tslint:disable-next-line */
5758
$(document).ready(function() {
5859
// Force bootstrap to initialize carousel
5960
const processCarousel = $('#processCarousel');

0 commit comments

Comments
 (0)