Capture value($Attribute) of file that included this file

I currently have a note that is called Page Header. It contains a re-usable block of HTML code that I include in all my HTML templates across my site:

<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>^value($PageTitle)^</title>
	<link rel="stylesheet" href="^root^static/css/style.css" />
</head>

Unfortunately, value($PageTitle) doesn’t capture the attribute value of the page that included this snippet. How do I target the page that has included this?

Thanks!

^value($PageTitle)

returns the value of $PageTitle for this note-- the note that’s being exported right now.

^value($PageTitle(current))

returns the value of $PageTitle for the current note – the note corresponding to the page Tinderbox is building.

1 Like

Perfect! Thanks so much