Skip to content

Commit

Permalink
added hypothesis js directly. Fixes st4ple#33
Browse files Browse the repository at this point in the history
  • Loading branch information
elotroalex committed Jul 8, 2017
1 parent 8a5b79e commit ed59c81
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion _includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@

<!-- The code below is used for manually entered links -->

<span style='cursor:pointer;' onclick="javascript:var hypothesis = document.createElement('script');
hypothesis.setAttribute('src','https://hypothes.is/embed.js');
document.head.appendChild(hypothesis);"><a class="sidebar-nav-item">Annotate me</a></span>

<a class="sidebar-nav-item" href="https://via.hypothes.is/{{ site.url }}{{ site.baseurl }}{{page.url}}/" data-proofer-ignore>Annotate me</a>
<!-- <a class="sidebar-nav-item" href="https://via.hypothes.is/{{ site.url }}{{ site.baseurl }}{{page.url}}/" data-proofer-ignore>Annotate me</a> -->
<!-- -->
<!-- <script src="https://hypothes.is/embed.js" async></script> -->

<a class="sidebar-nav-item" href="https://github.com/elotroalex/ed" target="_blank">GitHub project</a>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<div class="masthead">
<div class="container">
<h3 class="masthead-title">
<a href="{{ site.baseurl }}/" title="Home">{{ site.title }}</a>
<a href="{{ site.baseurl }}/" title="Home">{{ site.title | newline_to_br }}</a>
<br><small>{{ site.tagline }}</small>
</h3>
</div>
Expand Down

0 comments on commit ed59c81

Please sign in to comment.