From 984278ad1993c000841416061bbce3428b09eb75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9D=E3=83=BC=E3=83=AB=20=E3=82=A6=E3=82=A7=E3=83=83?= =?UTF-8?q?=E3=83=96?= Date: Wed, 20 Jun 2018 17:21:36 -0500 Subject: [PATCH] Fixed edit link in footer --- content/.vuepress/components/EditLink.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/.vuepress/components/EditLink.vue b/content/.vuepress/components/EditLink.vue index 802252f..d318e13 100644 --- a/content/.vuepress/components/EditLink.vue +++ b/content/.vuepress/components/EditLink.vue @@ -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")}`; } },