Create a shortcode for relref
parsiya opened this issue · 1 comments
parsiya commented
This is how my relref
snippet does:
[link text]({{< relref "/post/2020/2020-01-01-blog/index.markdown#anchor" >}} "link text")
However, this is bulky and make blog posts unreadable.
Make a shortcode that does it a bit better. I have not decided on the parameters yet but here's an example:
{{< myref title="link text" post="/2020/2020-01-01-blog" anchor="anchor" >}}
should generate the above.
Or I can do positional parameters {{< myref "link text" "/2020/2020-01-01-blog" "anchor" >}}