Skip to content

Need help attaching my JavaScript code to be displayed on the _projects page #2635

Answered by george-gca
DamilolaOwolabi asked this question in Q&A
Discussion options

You must be logged in to vote

I don't believe ChatGPT would give a useful answer in this case, at least not without enough context.

For instance, this template is made using jekyll. Jekyll uses markdown, yes, but down below it compiles to html. You can even use html inside your markdown files. We actually do that in the projects page. So, if you want to use these libraries in a single project page, you can add it to the project markdown itself.

About the workings of it, I recommend reading jekyll docs pages about how it creates a page (1 and 2). In our case a project have a layout to it (which is page that inherits from default).

Now, if you want to add these libraries to more pages, the best way for you to do that is…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by george-gca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants