Js to markdown

Hi guys please help my problem

I created a file in theme/pehtheme-hugo/static/js/script.js.

Then, I created another file in layouts/shortcodes/wallet.html

After that, I called it in the markdown like this:
{{< wallet >}}

It works when the default is false, but when I set it to true, my article returns a 404 error.

Sometimes it works, sometimes it doesn’t. I’m doing the project work on GitHub.

Too little information to understand the problem.

  1. Post a link to your GitHub repo so we can see all the code.
  2. Explain what you are trying to do.

Here my github repo, thank you for reply.

And what exactly is your problem/question? If I run your repo with hugo server -D, I can see the relevant post (which you didn’t bother to mention, by the way – why make it difficult for the people you want help from?), including everything (?) you put in wallet.

Aside: The generated HTML is probably not something you should publish – two headers, two footers, inline CSS deep in the DOM, a useless grid …

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.