Skip to content

Commit 002dedc

Browse files
Merge pull request #17 from exokitxr/fix-links
Fix links
2 parents 16363f8 + 77647ea commit 002dedc

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

_config.prod.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ github:
145145
username: exokitxr
146146
repo: exokit
147147
url: https://github.com/exokitxr/exokit/
148+
exokitxr:
149+
username: exokitxr
150+
url: https://github.com/exokitxr
148151
exokit_site:
149152
username: exokitxr
150153
repo: exokit-site

scripts/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ hexo.extend.helper.register('github_file_url', function (path) {
161161
hexo.extend.helper.register('website_github_edit_url', function (path) {
162162
// For docs.
163163
if (path.indexOf('docs/') !== -1) {
164-
return urljoin(this.config.github.exokit.url, 'edit', MASTER,
164+
return urljoin(this.config.github.exokit_site.url, 'edit', MASTER,
165165
path.replace('docs/', 'src/docs/').replace(/\.html$/, '.md'));
166166
}
167167
// For blog posts.

themes/exokit/layout/partials/secondary/sidebar_header.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ var links = [
44
{url: 'blog/', text: 'Blog'},
55
{url: 'community/', text: 'Community'},
66
{url: 'showcase/', text: 'Showcase'},
7-
{url: config.github.exokit.url, text: 'GitHub', slug: 'github', title: 'Exokit Project Repository'},
8-
{url: 'https://discord.gg/wm62cFN', text: 'Discord'}
7+
{url: config.github.exokitxr.url, text: 'GitHub', slug: 'github', title: 'Exokit Project Repository'},
8+
{url: config.discord.exokit.url, text: 'Discord'}
99
];
1010
links = links.map(function (link) {
1111
if (is_external_url(link.url)) {

0 commit comments

Comments
 (0)