diff options
author | de-souza <43355143+de-souza@users.noreply.github.com> | 2020-03-07 14:41:43 +0300 |
---|---|---|
committer | de-souza <43355143+de-souza@users.noreply.github.com> | 2020-03-07 14:41:43 +0300 |
commit | caf1a0c545bcda424a444bd2bfc3cb98e988062f (patch) | |
tree | b8bab4ba6d20c2872ff779ad0365f9173788ca39 | |
parent | 8438e84cc546726db69c8284ac45503ef7d1ee78 (diff) |
Clarify instructions
-rw-r--r-- | README.md | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -158,7 +158,9 @@ To embed CSS and JS resources on specific pages of the website, they must be add {{ resources.Get "myscript.js" | fingerprint | .Page.Scratch.SetInMap "js" "myscript" }} ``` -As an example, here is the complete template for the Soundcloud shortcode: +This would load script myscript.js on every page where the shortcode is used. + +As an example, this is the template for the built-in Soundcloud shortcode: ```html {{ resources.Get "css/soundcloud.css" | minify | fingerprint | .Page.Scratch.SetInMap "css" "soundcloud" }} |