I recently came across the Shortcode param function, but I don’t quite understand how it works.
According to the docs: “Gets a value from the current Page's
params set in front matter, with a fall back to the site param value. It will log an ERROR
if the param with the given key could not be found in either.”
With the following front matter in example.md
:
+++
title = "Example"
+++
I can do {{< param title >}}
in example.md
and it will give “Example”. This works and makes perfect sense.
I am wondering if param
can also be used to get the baseURL
from config.toml
in example.md
since the docs say: with a fall back to the site param value. So if there is no front matter param that matches baseURL it will look for the site param value?
I’ve tried this {{< param baseURL >}}
but it doesn’t work. Have I misunderstood the function?