Skip to content

Commit

Permalink
fix: edit on github links (path)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-koppenhagen committed Jan 15, 2024
1 parent 7f5d72d commit 5720732
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/app/pages/blog/[slug].page.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { ContentFile, injectContent, MarkdownComponent } from '@analogjs/content';
import {
ContentFile,
injectContent,
MarkdownComponent,
} from '@analogjs/content';
import { AsyncPipe, DatePipe, isPlatformBrowser } from '@angular/common';
import { Component, Inject, PLATFORM_ID } from '@angular/core';
import { RouterLink } from '@angular/router';
Expand Down Expand Up @@ -182,6 +186,6 @@ export default class BlogContentComponent {
}

editOnGithubLink(filename: string) {
return `https://github.com/d-koppenhagen/k9n.dev/edit/main/src/content/blog/${filename}`;
return `https://github.com/d-koppenhagen/k9n.dev/edit/main${filename}`;
}
}
2 changes: 1 addition & 1 deletion src/app/pages/projects/[slug].page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ export default class ProjectContentComponent {
constructor(private metaService: MetaService) {}

editOnGithubLink(filename: string) {
return `https://github.com/d-koppenhagen/k9n.dev/edit/main/src/content/projects/${filename}`;
return `https://github.com/d-koppenhagen/k9n.dev/edit/main${filename}`;
}
}

0 comments on commit 5720732

Please sign in to comment.