Skip to content

Commit

Permalink
remove redundancy and fix a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaohaoyang committed May 11, 2016
1 parent 305848d commit cd964e7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ <h1>{{page.title}}</h1>
</div>
</div>
</div>
<script src="{{ "/js/scroll.min.js " | prepend: site.baseurl }}" charset="utf-8"></script>
<script src="{{ "/js/pageContent.js " | prepend: site.baseurl }}" charset="utf-8"></script>
2 changes: 1 addition & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h2 id="comments">Comments</h2>
* target _blank
*/
(function() {
var aTags = document.querySelectorAll('article a')
var aTags = document.querySelectorAll('article a:not([id])')
for (var i = 0; i < aTags.length; i++) {
aTags[i].setAttribute('target', '_blank')
}
Expand Down

0 comments on commit cd964e7

Please sign in to comment.