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

The initial active item in table of contents is random #87

Open
josecelano opened this issue Oct 4, 2024 · 2 comments
Open

The initial active item in table of contents is random #87

josecelano opened this issue Oct 4, 2024 · 2 comments
Assignees
Labels
Bug Incorrect Behaviour

Comments

@josecelano
Copy link
Member

When you load a page containing a tabla of contents, it seems a random item is active until you click on one of them. I guess it should be the first one.

image

@josecelano josecelano added the Bug Incorrect Behaviour label Oct 4, 2024
@josecelano josecelano changed the title THe initial active item in table of contents is random The initial active item in table of contents is random Oct 4, 2024
josecelano added a commit that referenced this issue Nov 13, 2024
b72f1c3 add melt-ui toc in (pages) (Graeme Byrne)

Pull request description:

  * To improve Table of Contents as mentioned [here](#87) and [here](#92), I installed [Melt UI](https://www.melt-ui.com/) to handle the Table of Contents. I implemented it according to the [Melt UI's docs](https://www.melt-ui.com/docs/builders/table-of-contents) for the appropriate parts of each page in `routes/(pages)`.
  * Fixed any changes this installation had on other parts of the website.
  * Refactored repeated styles used in `routes/(pages)` by extracting into `PagesWrapper.svelte`.
  * Extracted table headings and table data from `routes/(pages)/about/+page.svelte` into `constants/constants` to maintain consistency with data used in other tables on the website.

ACKs for top commit:
  josecelano:
    ACK b72f1c3

Tree-SHA512: a8a8b9eb72484b8a88786579f3d1fc86dcfd839b3004f472bc4f52ca8c50e1eeeb311f52cda31e57ae5d21b7c58344e6ba302807eac973acf38c72fb16e2a6b1
Copy link

github-actions bot commented Dec 4, 2024

Stale issue message

@josecelano
Copy link
Member Author

This is still not working on blog posts. For example: https://torrust.com/blog/bencode-to-json-converter-in-rust

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Incorrect Behaviour
Projects
None yet
Development

No branches or pull requests

2 participants