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

Store path in an attribute in <body> #141

Open
bouncepaw opened this issue Mar 26, 2022 · 1 comment
Open

Store path in an attribute in <body> #141

bouncepaw opened this issue Mar 26, 2022 · 1 comment

Comments

@bouncepaw
Copy link
Owner

In the IRC channel, afontain proposed this (excerpts):

how about adding path="/path/to/myhypha" to <body>

oh, right, if that's a non-standard attribute, you can prepend data- to it

<body data-path="…">

then you could do body[data-path^=/category] and match every page of this category, for example

body[data-path^=/hypha/category] .prevnext { display: hidden; } to hide the prev/next buttons on that part

This is a great tool, I like it. Without it, JavaScript or forward proxy tricks are required.

@bouncepaw
Copy link
Owner Author

It has been implemented, the attribute is data-rrh-addr, where rrh is short for Mycorrhiza, and addr is short for address. This attribute is shown on all pages. For some pages, such as hyphae or the editor, the hypha name in the address is not canonized yet. So, /hypha/home and /hypha/Home will yield different attribute values. This will be fixed in the future, they will both yield /hypha/home there.

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

No branches or pull requests

1 participant