Skip to content

Incompatibility with Either Galleries or a Photo Page #3

Description

@ymolodtsov

So now we have two options for placing an image: either a Markdown image or a Hugo shortcode. Both seem to have certain limitations and right now I'm not seeing a possible way to rectify this.

If you use a Hugo shortcode, then these photos aren't picked up on the Photos page, because Hugo doesn't recognize them.

If you use a Markdown insertion, then the photo will be shown on the Photos page. But because of the way Markdown syntax processing works, you can't have a div with an img-gallery class right before. Markdown expects an empty line between the previous text and the images and creates an empty

there that ruins the layout.

I'd be happy to contribute a solution but at the moment I'm not even sure if there's a clean way.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions