akuznecov / hugo-shortcode-spoiler

Spoiler shortcode for Hugo https://gohugo.io/
4 stars 0 forks source link

can't make it work, js issue? #1

Open jcolomb opened 2 years ago

jcolomb commented 2 years ago

I added the files/folders + added to the header.html:

<link href="{{ "css/spoiler.css" | relURL}}" rel="stylesheet">
<script type="text/javascript" src="{{ "js/spoiler.js" | relURL }}"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js"></script>`

The css works, but when I click the button, it just reload the page. (I am using the universal theme)

Did I do something wrong or is this tool deprecated?

mschilli87 commented 1 year ago

It doesn't work for me either, even in the Demo post linked in the README. 🤷