Skip to content

Commit 512c8ef

Browse files
authored
Merge pull request #322 from canjs/314-fix-edit-on-github
Fix edit on github link on non-module pages
2 parents 032ecbc + e5e4eb0 commit 512c8ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/title.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<section class="title">
22
<div class="page-type">
33
<h1>{{getTitle .}}</h1>
4-
{{#if package}}
54
<ul class="title-social">
5+
{{#if package}}
66
<li>
77
<a class="npm-button" href="https://www.npmjs.com/package/{{package.name}}">
88
<img src="{{badgeLink package.version}}" alt="npm package badge" />
@@ -11,13 +11,13 @@
1111
<li>
1212
<a class="github-button nav-social" href="https://github.com/canjs/{{repoName src.path}}">Star</a>
1313
</li>
14+
{{/if}}
1415
{{#if src.path}}
1516
<li>
1617
<a class="button-link" href="{{sourceLink src (repoName src.path)}}">Edit on GitHub</a>
1718
</li>
1819
{{/if}}
1920
</ul>
20-
{{/if}}
2121
</div>
2222
<div class="clear-both"></div>
2323
{{#unless hideDescription}}

0 commit comments

Comments
 (0)