Skip to content
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

Referencing a JavaScript library in a post? #737

Open
amca01 opened this issue Feb 3, 2024 · 0 comments
Open

Referencing a JavaScript library in a post? #737

amca01 opened this issue Feb 3, 2024 · 0 comments

Comments

@amca01
Copy link

amca01 commented Feb 3, 2024

I'm using the "Hugo-Clarity" theme, which recommends that JavaScript libraries and CSS files be added to static/js and static/css. I've done this. In an ordinary html file, the js and css files would be linked in the header information.

However, I'm not sure whether I should add them to the page header information, or inside the EXPORT_HTML block which uses the library. In any case, they're not being "picked up" as it were by my html script, and the corresponding page (once run through the Hugo engine) is simply blank.

The output of hugo version is

hugo v0.122.0+extended linux/amd64 BuildDate=unknown

I'm working in Arch Linux, with a system which was fully upgraded only a few hours ago. I know this can be done, as I'm pretty sure I did it once! But I can't remember how, and in any case I was using another theme then, and linking the JavaScript files in its layouts/partials/head.html file. Anyway, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant