mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
9b0050e9aa
git-subtree-dir: docs git-subtree-split: 5c085a37b297bf12f59efeaae591418ec025c10d
926 B
926 B
title | description | categories | keywords | action | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
resources.Concat | Returns a concatenated slice of resources. |
|
The resources.Concat
function returns a concatenated slice of resources, caching the result using the target path as its cache key. Each resource must have the same media type.
Hugo publishes the resource to the target path when you call its Publish
, Permalink
, or RelPermalink
methods.
{{ $plugins := resources.Get "js/plugins.js" }}
{{ $global := resources.Get "js/global.js" }}
{{ $js := slice $plugins $global | resources.Concat "js/bundle.js" }}