Fixed edit link in footer

This commit is contained in:
ポール ウェッブ 2018-06-20 17:21:36 -05:00
parent 66127d15f4
commit 984278ad19

View file

@ -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")}`;
}
},