Skip to content

How do Page Image Resource work with the images module #1

Closed Answered by razonyang
krischik asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @krischik, your code service seems private, it returns 404.

To use the page's images resources, you'll need to organize your pages as page bundles. For example.

content/
  blog/
    hello/
      index.md
      sample.png

There is a /blog/hello page which contains one image resource, then you can access the image in the content (index.md).

![Sample](sample.png)

The real example is the images module docs, it uses the image page resource (featured.jpeg) as example.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@krischik
Comment options

Answer selected by razonyang
Comment options

You must be logged in to vote
1 reply
@razonyang
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants