diff --git a/src/app/blog/blog.component.html b/src/app/blog/blog.component.html
index 3f0e17f..a542298 100644
--- a/src/app/blog/blog.component.html
+++ b/src/app/blog/blog.component.html
@@ -18,7 +18,7 @@
-
{{post.category}}
+
{{post.categories}}
diff --git a/src/app/contact-sidebar/contact-sidebar.component.html b/src/app/contact-sidebar/contact-sidebar.component.html
index f2ca587..7d1b1c2 100644
--- a/src/app/contact-sidebar/contact-sidebar.component.html
+++ b/src/app/contact-sidebar/contact-sidebar.component.html
@@ -88,19 +88,19 @@
- -
+
-
- -
+
-
- -
+
-
diff --git a/src/app/models/post.model.ts b/src/app/models/post.model.ts
index 54bf6ac..a90587d 100644
--- a/src/app/models/post.model.ts
+++ b/src/app/models/post.model.ts
@@ -3,7 +3,7 @@ export interface IPost{
slug: string;
title: string;
description: string;
- category: string;
+ categories: string;
postUrl: string;
likes: number;
views: number;
diff --git a/src/app/models/project.model.ts b/src/app/models/project.model.ts
index a56fa1c..c24d47f 100644
--- a/src/app/models/project.model.ts
+++ b/src/app/models/project.model.ts
@@ -2,7 +2,7 @@ export interface IProject{
projectId: number;
name: string;
description: string;
- category: string;
+ categories: string[];
roles: string[];
responsibilities: string[];
technologiesUsed: string[];
diff --git a/src/app/projects/projects.component.html b/src/app/projects/projects.component.html
index 27ebae4..0e5a1cc 100644
--- a/src/app/projects/projects.component.html
+++ b/src/app/projects/projects.component.html
@@ -53,12 +53,12 @@
-->
-

+
{{project.name}}
-
{{project.category}}
+
{{project.categories}}
diff --git a/src/app/projects/projects.component.ts b/src/app/projects/projects.component.ts
index 27e5f65..9399765 100644
--- a/src/app/projects/projects.component.ts
+++ b/src/app/projects/projects.component.ts
@@ -37,11 +37,8 @@ categoryClicked: boolean = false;
this.projects = this.filter === 'All'
? this.model.projects
: this.model.projects.filter(
- (project: IProject) => project.category === this.filter
- );
- }
-
- isCategoryActive(category: string){
- return this.filter === category;
+ (project: IProject) => {
+ return project.categories.includes(category)
+ });
}
}