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

link() function with alias parameters #183

Closed
fscheidt opened this issue May 5, 2021 · 1 comment
Closed

link() function with alias parameters #183

fscheidt opened this issue May 5, 2021 · 1 comment

Comments

@fscheidt
Copy link

fscheidt commented May 5, 2021

first of all, thank you for this awesome plugin.
I have a minor feature request, but I'm not sure about the impact of such a change or the usefulness for other users. Anyway, I would really appreciate having the same functionality of elink() function in link() function. elink() allows two parameters one for URL and the other for an alias. link() could accept an alias too, so it should be possible to customize the link label.
This can be useful to generate internal links like this
link(file.link, "Click here")
but useful for use cases like:
link(file.link, title)
where title is a yaml property

thanks for your consideration!

@blacksmithgu
Copy link
Owner

Added in next release, exactly as you suggested.

blacksmithgu pushed a commit that referenced this issue May 7, 2021
- Better date subtraction calculation.
- `link(path, alias)` added
- Fix null value rendering
- Add `dv.current()`
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

2 participants