U
U
unsstrennen2018-08-16 13:56:04
metadata
unsstrennen, 2018-08-16 13:56:04

Import meta tags on site pages?

On hosting, I have a template.html file, from which I import what is on all pages of the site. There lies, for example, a ready-made footer, which I simply import to all pages. I decided to try adding meta tags to that file and try to import them. I did everything, uploaded it to the hosting and checked the meta on the site pages using a special service (such as seobatka.com). It doesn't find the meta on the page.
Is it even possible to import matching meta tags to all pages, or do they need to be manually copied and pasted to each page of the site?
Z.s. I can import)

<link rel="import" href="template.html">
  <script src="scripts/importers/template meta-tags importer.js"></script>

In the import file:
var link = document.querySelector('link[rel=import]');
      var content = link.import.querySelector('#meta-tags');
      document.body.appendChild(content.cloneNode(true));

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question