Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image metadata not displayed/used #58

Open
max-8 opened this issue Aug 30, 2024 · 3 comments
Open

Image metadata not displayed/used #58

max-8 opened this issue Aug 30, 2024 · 3 comments

Comments

@max-8
Copy link

max-8 commented Aug 30, 2024

I thought I had done something wrong specifying the resources array map elements (alt, phototitle, description) for specific images in the _index.md file. But then I noticed it wasn't displaying on your Preview site either (https://kc0bfv.github.io/autophugo).

For instance, just considering the "cats" album. A snippet from the example _index.md file shows:
`resources:

  • src: cats/cat_01.jpg
    weight: 1
    alt: Cat in the grass
    phototitle: Grass cat
    description: This cat stalks through the grass
    categories:
    • dark colored
  • src: cats/cat_02.jpg
    alt: A cat in some sort of urban setting
    phototitle: Cool cat
    description: One of the coolest cats
  • src: cats/cat_03.jpg
    weight: -1
    ---`

But none of this info is displayed anywhere.

It appears none of the metadata from _index.md makes it to the generated page source. For instance, for the ref to the first cat pic, shouldn't 'phototitle' and 'description' (as listed above) be listed here with the image? (regardless of what you may be doing with that metadata in your js):

<article class="thumb"> <a class="gallery-item" phototitle="" description='' gallery_index="0" id="f6e7eb8d1940769c8d32cec244a6bcd8" downloadable="true" download_file="/autophugo/cats/cat_01_hub651534c51aef9866951796d908164af_637223_960x0_resize_q90_box.jpg" orig_name="cat_01.jpg" href="/autophugo/cats/cat_01_hub651534c51aef9866951796d908164af_637223_960x0_resize_q90_box.jpg"> <div id="image_number_0" class="gallery-item-marker"></div> <img src="/autophugo/cats/cat_01_hub651534c51aef9866951796d908164af_637223_480x0_resize_q50_box.jpg"> </a> <h2></h2> </article>

Many kind regards...

@mterhar
Copy link

mterhar commented Dec 15, 2024

In mine, when I upgraded, the scrach mapping thing started adding a preceding slash to the image URLs. When I changed src: cats/cat_03.jpg to src: /cats/cat_03.jpg it started working.

@mterhar
Copy link

mterhar commented Dec 15, 2024

To be clear, I'm not sure if this is best but since I'm using it without an album, it is an okay work-around for me. If folks are using subalbums, I don't know if it'll cause trouble.

@tgauchet
Copy link

tgauchet commented Jan 4, 2025

I confirm, I cannot see phototitle, description anymore for photos inside albums..
but it works effectively by adding a /
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants