-
Notifications
You must be signed in to change notification settings - Fork 154
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
Link to headers? #74
Comments
Hello @jarrodscott what do you mean by headers ? |
hello @jbub Sorry for not being more clear.
What I would link to do is add an I am probably using some of the terminology incorrectly but I hope this makes more sense. What I am not sure about is whether this is a feature I can add to the theme or not. Thanks for your help. |
Ah i see, do you know of any other Hugo themes that support this ? I mean hugo already generates ids for headers, we would just have to add the classes right ? |
The only other theme I have much experience with is Hugo Academic which is where I got the idea. I am doing some digging now and will let you know what I find. I'm a bit new to Hugo :) |
Okay keep me posted :) |
Ok, I made some progress. I found some code here and put it in a partial called
I then tried putting this line For example, if I do this:
I get this: I have tried to place FYI I added this to |
I'm a little slow. Pretty sure |
Got it to work for pages and posts by adding code to the
And to to the
I could not get it to work when the post is UPDATE: I should have mentioned that I am working in RStudio with blogdown. Anyway, I made a little hack to get this to work in At the end of my
And to to the
|
Nice job, im going to close this one. |
Hi. Awesome theme. Is there a way to include links to headers within a page? Thanks!
The text was updated successfully, but these errors were encountered: