[SOLVED] How to access page variables defined in the front matter?

Hi, I have some variables in the front matter of a page (post/my-post.md):

+++
...
thumbnail = "/pimages/00002-travel-mountain-top.jpg"
whatever = "/pimages/00002-travel-mountain-top.jpg"
...
+++

I could not obtain their values in the layouts/partials/head.html:

    {{ if $.Page.Params.whatever }}
    <meta property="og:image" content="{{ .Site.BaseURL }}{{ $.Page.Params.whatever }}">
    {{ end }}

    {{ if .Params.whatever }}
    <meta property="og:image" content="{{ .Site.BaseURL }}{{ .Params.whatever }}">
    {{ end }}

    {{ if $.Params.whatever }}
    <meta property="og:image" content="{{ .Site.BaseURL }}{{ $.Params.whatever }}">
    {{ end }}

I did googling, searched the forum and the docs but could not find any solution that works for me. Please help. Thanks

The second version should be working…
At least this is the syntax I’m using in my template.

Thanks! Let me try again. There must be something wrong on my side.

Works now! Thanks for responding.