alam0x
November 28, 2024, 11:53am
1
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.
frjo
November 28, 2024, 12:02pm
2
Too little information to understand the problem.
Post a link to your GitHub repo so we can see all the code.
Explain what you are trying to do.
alam0x
November 28, 2024, 12:21pm
3
Here my github repo, thank you for reply.
Contribute to bitpaus7/bitpaus7.github.io development by creating an account on GitHub.
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
system
Closed
November 30, 2024, 12:39pm
5
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.