mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
Add js.Batch
Fixes #12626 Closes #7499 Closes #9978 Closes #12879 Closes #13113 Fixes #13116
This commit is contained in:
@@ -1754,6 +1754,11 @@ func (sa *sitePagesAssembler) assembleResources() error {
|
||||
mt = rs.rc.ContentMediaType
|
||||
}
|
||||
|
||||
var filename string
|
||||
if rs.fi != nil {
|
||||
filename = rs.fi.Meta().Filename
|
||||
}
|
||||
|
||||
rd := resources.ResourceSourceDescriptor{
|
||||
OpenReadSeekCloser: rs.opener,
|
||||
Path: rs.path,
|
||||
@@ -1762,6 +1767,7 @@ func (sa *sitePagesAssembler) assembleResources() error {
|
||||
TargetBasePaths: targetBasePaths,
|
||||
BasePathRelPermalink: targetPaths.SubResourceBaseLink,
|
||||
BasePathTargetPath: baseTarget,
|
||||
SourceFilenameOrPath: filename,
|
||||
NameNormalized: relPath,
|
||||
NameOriginal: relPathOriginal,
|
||||
MediaType: mt,
|
||||
|
Reference in New Issue
Block a user