Reference static assets in header #2039
-
|
Hi. I need to reference some custom assets in all the head: `
<link rel="icon" type="image/svg+xml" href="favicon.ico">
<meta property="og:title" content="Foo"/>
<meta property="og:image" content="https://foo.bar/_file/assets/my-cool.png"/>
`,The There are some discussions about this, such as #692, but I'm wondering the proper way to reference files in cases like that (wit Observable Framework 1.13.3), in order to address: (i) absolute references such as targets for |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
This particular case can be solved with an absolute URL:
and then add the asset itself as an exported file, with the
|
Beta Was this translation helpful? Give feedback.
This particular case can be solved with an absolute URL:
<meta property="og:image" content="https://foo.bar/assets/my-cool.png"/>and then add the asset itself as an exported file, with the
dynamicPathsconfiguration option (doc):dynamicPaths: ['/assets/my-cool.png', ...]