elm-community / elm-faq

FAQ about the Elm language.
https://faq.elm-community.org/
22 stars 24 forks source link

Anchor link to question #32

Closed ghost closed 8 years ago

ghost commented 8 years ago

Using the search, "record" didn't find http://faq.elm-community.org/#how-can-i-change-the-value-of-a-nested-field. Then I wanted to link to that question but couldn't because the question (its heading) doesn't have an anchor link, ala screenshot 2016-10-05 11 23 12

fredcy commented 8 years ago

The string "record" does not appear anywhere in the item you mention, so of course the search did not find it. Are you asking to modify the text of that item to include "record" somewhere?

The page is generated via Jekyll and I have not found a way to cause Jekyll to generate anchor links on hover the way you suggest. I'll look into that. Any leads?

fredcy commented 8 years ago

Note to self: http://bryanbraun.github.io/anchorjs/

fredcy commented 8 years ago

I have added anchor links to the FAQ items as requested.

ghost commented 8 years ago

Thanks Fred. By the way, what thoughts have you had about doing the site in Elm? For instance, I would have been readier to contribute code for this issue.

fredcy commented 8 years ago

It started as a simple Jekyll site at Github Pages. I later added a small Elm app to it that manages the TOC links on each page. I'm open to suggestion as to how it could be made into a full-blown Elm app.