Add hyperlink to github repo below img of tree

in sidebar, as suggested in https://github.com/tree-sitter/tree-sitter/issues/508
This commit is contained in:
Mark Schmitz 2020-02-12 16:14:42 +00:00
parent de8e3ee188
commit 3dafb373a8
2 changed files with 8 additions and 1 deletions

View file

@ -21,7 +21,8 @@
<div id="sidebar">
<nav id="table-of-contents">
<a class="logo table-of-contents-section" href="https://github.com/tree-sitter/tree-sitter">
<img src="{{ '/assets/images/tree-sitter-small.png' | relative_url }}" width=200 height=200 />
<img title="Tree-sitter logo, link to github repo" src="{{ '/assets/images/tree-sitter-small.png' | relative_url }}" width=200 height=200 />
<span class="github-repo">GitHub repository</span>
</a>
{% for other_page in site.html_pages %}

View file

@ -31,6 +31,12 @@ body {
overflow-y: auto;
border-right: 1px solid #ccc;
z-index: 1;
.github-repo {
display: inline-block;
padding-left: 3.75em;
font-size: .85em;
}
}
#sidebar-toggle-link {