Skip to content

Commit

Permalink
Removal of useless lines of code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabri432 committed Jun 9, 2024
1 parent f508060 commit 1f26c67
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
<div id="description">{{proj.description}}</div>
<br />
<div id="languages">#{{proj.languages}}</div>
<!--{{languages[optionBar.indexOf(this.getTopic(blog.topics))]}}-->
</a>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
.project-Angular { background-color: red;}
.project-Java { background-color: orange;}
.project-Javascript { background-color: yellow;}
.project-Go { background-color: blue;}
.project-Go { background-color: lightblue;}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,11 @@ import { Project } from '../../models/project';
export class ProjectDisplayerComponent {
@Input() proj!: Project;

languages: Array<string> = ['Angular', 'Java', 'Javascript', 'Go']

ngOnInit(): void {
document.querySelector("meta[name='keywords']" )!.setAttribute("content", "Gabriele Gatti, Gabriele, Gabri432");
document.querySelector("meta[name='description']" )!.setAttribute("content", "A personal website and blog made with Angular 16+ by Gabriele Gatti");
if (location.pathname.includes("projects")) {
document.querySelector("link[rel='canonical']")!.setAttribute("href", "https://gabri432.github.io/angular-personal-website/projects/");
}
}

getLanguage(languages: string[]): string {
for (let language of languages) {
//if (this.languages.includes(language)) return topic;
}
return "";
}
}

0 comments on commit 1f26c67

Please sign in to comment.