How can i add a sticky toc on the right of my posts in hugo-coder theme?

+++
date = ‘2024-11-28T11:57:52Z’
draft = false
title = ‘Windows vs Mac vs Linux’
featuredImage = “images/W-M-L.png”
+++

welcome here

the relation of your topic title, shortcode and you post content is unclear to me.

please have look at the following article and elaborate your request

https://discourse.gohugo.io/t/requesting-help/9132/2

So I want to add a table of contents that will stay on the side of the page when scrolling through a blog post. But i have read documentation for the hugo-coder theme and i cant see how i could add it. i read a few support posts on here but they did not help when it came to my theme of hugo-coder.

so what about Requesting Help.

show us what you have, what you tried,

and what the problem is.

could be anything: css, html, layouts, templates, lack of hugo knowledge…

I have added a shortcode to my layout/shortcodes folder called toc it was made by the author of the octopress theme. It only has the toc where i place it but i want it to be on the side

Please READ and FOLLOW

Some Knowledge Required

… unclear - show what you can do and have done

Let us see your code

…no code provided

AND

General thread mechanics

… a screenshot of a toc won’t help

The community is willing to help but… at least me won’t setup a site, try to replicate your setup, plug in a shortcode where you did and code some css, templates, whatsoever to provide a plug and play solution.

That all said: I’m out, sry


p.s. what about asking at the coder issues page: Issues · luizdepra/hugo-coder · GitHub

my files are on my Github

https://github.com/luizdepra/hugo-coder/issues/415

That issue has been open for 4 years.

That’s not a project repository. That’s a repository containing your published site, which isn’t helpful. Your project repository should contain almost everything that’s in your local project directory. Add a .gitignore file to the root of your project before you commit anything. It should look something like this:

.hugo_build.lock
node_modules/
public/
resources/