From dcd0b8623df9f5bd11b286a45213c6266d0acb1a Mon Sep 17 00:00:00 2001 From: Sean Quinn Date: Thu, 1 Aug 2019 22:26:51 -0400 Subject: [PATCH] GH-10: Fix HTML index navigation (temporary) --- hon/structure/summary.py | 2 ++ hon/theme/light/website/templates/summary.html.jinja | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hon/structure/summary.py b/hon/structure/summary.py index 59acb57..4e0dd41 100644 --- a/hon/structure/summary.py +++ b/hon/structure/summary.py @@ -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) diff --git a/hon/theme/light/website/templates/summary.html.jinja b/hon/theme/light/website/templates/summary.html.jinja index 724b371..dee7c27 100644 --- a/hon/theme/light/website/templates/summary.html.jinja +++ b/hon/theme/light/website/templates/summary.html.jinja @@ -56,7 +56,7 @@ {%- if summary.readme -%}
  • - Cover + Cover
  • {%- endif -%}