Open inetbiz opened 3 years ago
You can accomplish this with --a title="my title"
, though it's a bit cumbersome.
What if we just took the --alt
argument and made it the title? Or make a --title
flag which works the same way? Or some combination of both; use --title
if present, otherwise use alt.
You can accomplish this with
--a title="my title"
, though it's a bit cumbersome.What if we just took the
--alt
argument and made it the title? Or make a--title
flag which works the same way? Or some combination of both; use--title
if present, otherwise use alt.
@rbuchberger The alt describes the photo. I'll try the --a title="~"
You can accomplish this with
--a title="my title"
, though it's a bit cumbersome.
Update https://rbuchberger.github.io/jekyll_picture_tag/users/liquid_tag/argument_reference/link.html or somewhere else? with title attribute on link?
The --a
flag allows you to add arbitrary HTML attributes to the anchor tag.
I think --title
is the way to go; it's the simplest to parse and it's in line with the existing API. I'll mark it as a feature request, might be a good first issue if anyone wants to contribute. You can look at how the --alt
flag works as a guide.
We just had a kid and I'm working full time, so I'm real busy these days. If nobody else writes it I'll get to it eventually, but I can't promise a timeline.
@rbuchberger worked well. I just suggest the documentation at https://rbuchberger.github.io/jekyll_picture_tag/users/liquid_tag/argument_reference/link.html should mention that.
Your documentation is here https://rbuchberger.github.io/jekyll_picture_tag/users/liquid_tag/argument_reference/link.html
Proposed