Feature #13569

Label TOC in-page links as such

Added by sajolida 2017-08-02 12:32:27 . Updated 2018-01-21 11:12:55 .

Status:
Confirmed
Priority:
Low
Assignee:
Category:
Accessibility
Target version:
Start date:
2017-08-02
Due date:
% Done:

0%

Feature Branch:
Type of work:
Website
Blueprint:

Starter:
1
Affected tool:
Deliverable for:

Description

See “Label In-Page Links” in https://www.nngroup.com/articles/in-page-links/.

We could label TOC as “On this page” or similar.

I don’t think that this is achievable through native ikiwiki mechanism so we’ll need some hack. The complicated part being supporting translations in a maintainable way.

From the top of my head, this could be achieved using either:

  • Some CSS snippet, like we’re doing for “in-kind” in f28613a0d5 for example. We could move translations to a dedicated CSS file linked from the first one.
  • Some JavaScript code. Then translations could possibly be taken from a JSON file.

Subtasks


History

#1 Updated by Anonymous 2018-01-15 14:26:51

We could also label TOC as what it is supposed to mean: “Table of contents”, or does this defeat the purpose?

#2 Updated by sajolida 2018-01-21 11:12:55

“Table of contents” would work to. The complicated part is not to choose
the wording but to display this automatically on all pages that figure a
“TOC”.

Another way to go could be an ikiwiki patch.