Fixed edit link in footer
This commit is contained in:
parent
66127d15f4
commit
984278ad19
1 changed files with 3 additions and 3 deletions
|
@ -14,10 +14,10 @@
|
|||
|
||||
methods: {
|
||||
updateUrl () {
|
||||
this.githubUrl = `https://github.com/${this.$site.themeConfig.repo}/edit/${this.$site.themeConfig.docsBranch}`;
|
||||
this.githubUrl = `https://github.com/${this.$site.themeConfig.repo}/edit`;
|
||||
|
||||
if (this.$page.path === "/") this.githubUrl = `${this.githubUrl}/README.md`;
|
||||
else this.githubUrl = `${this.githubUrl}${this.$page.path.replace(".html", ".md")}`;
|
||||
if (this.$page.path === "/") this.githubUrl = `${this.githubUrl}/master/README.md`;
|
||||
else this.githubUrl = `${this.githubUrl}/${this.$site.themeConfig.docsBranch}/${this.$page.path.replace(".html", ".md")}`;
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue