How add {{ .Title }} in javascript

How I can add {{ .Title }} to the script?
For example:

<script type="application/ld+json">
  {
    "@context": "https://schema.org",
    "@type": "FAQPage",
    "mainEntity": [
      {
        "@type": "Question",
        "name": "blablabla {{ .question1}} {{ .Title }}?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "blabla {{ .answer1 }} "
        }
      },
      {
        "@type": "Question",
        "name": "blablabla {{ .question2}} {{ .Title }} ?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "blabla {{ .answer2 }}"
        }
      }
    ]
  }
  </script>

We need more information. Please share a link to the public repository for your project.

You can use this same code, but you need to put that code on this page which page has access to this {{ .question1}} {{ .Title }} .

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.