Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Add additional attributes support #40

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add additional attributes support #40

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Jun 17, 2018

This PR adds support for extra attributes in kirby-imageset output.

It's not a perfect solution, but hopefully good enough or at least a basis for further enhancements. I needed to add title and rel attributes and did not see an easy way to do it.

I think a better solution would be to refactor attribute handling, where if you add more key-value pairs to the options array they will automatically be sanitised and handled as extra attributes.

Mike Wink added 2 commits June 17, 2018 21:47
Allows to add additional attributes to the imageset output.

Signed-off-by: Mike Wink <[email protected]>
This commit adds the missing attributes variable init and also adds a check for empty attribute values.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants