GitLab Snippets in Hugo

I needed to embed a GitLab Snippet into a page here on the site earlier today so I added layouts/shortcodes/snippet.html with the content below.

<script src="{{ index .Params 0 }}.js"></script>

Now I can embed snippets just like Gists except using snippet in place of gist and it only takes the single number parameter. I’d put an example here but I can’t figure out how to make Hugo ignore it.

GitLab  Hugo