I'm creating a website with multiple pages.. I'm adding going to have to add META tags to every page however I would like to know if there we a way to extract stuff from existing tags and add them to other tags.
So, for example these tags already exist in the static HTML pages:
<meta name="description" content="Description 01"/>
<title>Title 01</title>
Now any way to extract these values from every page and insert them as other tags into other pages.
So Home page would already contain:
<meta name="description" content="Description Home"/>
<title>Title Home</title>
and these would automatically be added:
<meta itemprop="name" content="Title Home">
<meta itemprop="description" content="Description Home">
<meta name="twitter:title" content="Title Home">
<meta name="twitter:description" content="Description Home">
<meta property="og:title" content="Title Home" />
<meta property="og:description" content="Description Home" />
And the contact page would already contain:
<meta name="description" content="Description Contact"/>
<title>Title Contact</title>
and these would automatically be added:
<meta itemprop="name" content="Title Contact">
<meta itemprop="description" content="Description Contact">
<meta name="twitter:title" content="Title Contact">
<meta name="twitter:description" content="Description Contact">
<meta property="og:title" content="Title Contact" />
<meta property="og:description" content="Description Contact" />