I have some Panini front matter like this:
title: Page Title
...which I am inserting into my page like this:
{{ title }}
How would I go about dynamically changing the value of "title" so that the page name would change? Can this be done?
Thanks.
I have some Panini front matter like this:
...which I am inserting into my page like this:
How would I go about dynamically changing the value of "title" so that the page name would change? Can this be done?
Thanks.
There has been a similar questions asked before in regards to dynamic page title change through jQuery. This might help you get to your solution:
This isn't dynamic in the sense of changing after load, but maybe it accomplishes what you need.
In my layouts/default.html layout in the head I have
<title>{{ title }} | Site name</title>
And in the front matter of the page:
---
layout: default
title: Your title
---