I’m wondering if I can somehow convert @member_id to something like
{{ with (.Site.GetPage "/team/member_id" }}
<a href="{{ .RelPermalink }}"> {{ .Params.firstName }} {{ .Params.lastName }} </a>
{{ end }}
I’m aware of shortcodes (in fact it is implemented as a shortcode at the moment), however for this particular case I would prefer to have a more concise syntax.
Thank you, that is quite elegant! I was already thinking about render hooks but didn’t come to the idea of making a valid markdown link in the source file.
I will ask my colleagues if they like [](@jdoe) syntax, but I personally don’t mind.
Here’s an example site that demonstrates both approaches (render hook and content parsing):
git clone --single-branch -b hugo-forum-topic-39912 https://github.com/jmooring/hugo-testing hugo-forum-topic-39912
cd hugo-forum-topic-39912
hugo server