Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix website relative navigation from first page to index #10

Open
swquinn opened this issue Jul 2, 2019 · 1 comment
Open

Fix website relative navigation from first page to index #10

swquinn opened this issue Jul 2, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@swquinn
Copy link
Owner

swquinn commented Jul 2, 2019

The index.html is generated from the SUMMARY.md file, but in relative navigation, i.e. "previous chapter", the navigation link tries to take you to README.html.

Here is the relevant excerpt of rendered HTML from the first chapter of an example book:

<article class="container">
  <div class="columns">
    <div class="column col-1 col-mr-auto">
      <div class="p-fixed" style="top: 50vh">

        <!-- Right here! Here's the culprit! -->        
        <a href="README.html">
          <i class="icon icon-arrow-left"></i>
        </a>

      </div>
      <div class="column col-8 col-mx-auto">
        <h1>Chapter 1</h1>
        
        <p>Etiam sit amet augue ...</p>

        <!-- ... more -->

      </div>
    </div>
  </div>
</article>
@swquinn swquinn added the bug Something isn't working label Jul 2, 2019
@swquinn
Copy link
Owner Author

swquinn commented Aug 2, 2019

The fix in commit hash dcd0b86 is a temporary fix. The biggest problem is that it hard codes the solution. I'll need to revisit this to create a more workable solution in the long run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant