Leaf bundle resources versus assets resources (quick one)

Going back to this post:

[.Resources.GetMatch not recognizing resource files in bundle]

With this construction for front matter and template

 +++
date="2020-02-15"
title="someTitle"

[[resources]]
  name = "my.js"
  src = "my.js"

[[resources]]
  name = "my.css"
  src = "my.css"
+++
{{ with (.Resources.GetMatch "my.css") }}
{{ .Content }}
{{ end }}

As far as .Resources.GetMatch is concerned, what is the difference between .css files in page bundles or the assets directory?

If for example, there is a file with name.css in assets and the same in a leaf bundle, which one is matched?

AFAIK

.Resources is for Page Bundle only.

resources is for Global Assets only.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.