Skip to content

Latest commit

 

History

History
64 lines (50 loc) · 1.73 KB

resources.md

File metadata and controls

64 lines (50 loc) · 1.73 KB
title description summary date lastmod draft menu weight toc seo slug
Resource Locations
2023-11-09 14:37:09 +0100
2023-11-09 14:37:09 +0100
false
docs
parent identifier
resources-26b35ed085958e95e9b0e0b59ec3f575
310
true
title description canonical noindex
false
resources

You can store your images as a page resource, global resource, or remote resource.

Page resource

A page resource is a file within a page bundle. A page bundle is a directory with an index.md or _index.md file at its root.

content/
└── posts/
    └── post-1/         # page bundle
        ├── index.md
        └── bird.jpg    # page resource

If you want to show a page resource image — use the relative path:

bird.jpg

Global resource

A global resource is a file within the assets directory, or within any directory mounted to the assets directory.

assets/
└── images/
    └── bird.jpg    # global resource

If you want to show a global resource image — use the relative path:

images/bird.jpg

Remote resource

A remote resource is a file on a remote server, accessible via HTTP(S). If you want to show a remote resource image — use the URL:

https://images.unsplash.com/photo-1690198517569-45458a850563?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80