home ~ projects ~ socials

Neopolitan Section: scriptsrc

The scriptsrc section is a metadata section used to load external scripts into the head of the document.

-- head
-- url: /some/path.js

Will add this just before the ending </head> tag.

<script src="/some/path.js"></script>

Other arguments can be added as well. For example, this:

-- head
-- url: /some/path.js
-- type: post
-- tag: module

Produces this:

<script src="/some/path.js" type="module"></script>
-- end of line --