Skip to content

Commit

Permalink
GH-10: Fix HTML index navigation (temporary)
Browse files Browse the repository at this point in the history
  • Loading branch information
swquinn committed Aug 2, 2019
1 parent 1ba1370 commit dcd0b86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions hon/structure/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def id(self):

@property
def link(self):
if self.is_readme:
return 'index.html'
root, _ = os.path.splitext(self.source)
return '{}.html'.format(root)

Expand Down
2 changes: 1 addition & 1 deletion hon/theme/light/website/templates/summary.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

{%- if summary.readme -%}
<li class="chapter">
<a href="">Cover</a>
<a href="{{ 'index.html'|relative_path }}">Cover</a>
</li>
{%- endif -%}

Expand Down

0 comments on commit dcd0b86

Please sign in to comment.