TiagoDanin / Nuxt-SEO

SEO / HTML Meta Tags Module for Nuxt.js

Home Page:https://tiagodanin.github.io/Nuxt-SEO/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

title Tag Question

regenrek opened this issue · comments

Hi

is the <title> no relevant anymore due the use of meta title in terms of seo? Currently I have the problem that google can't differ between my sites in a static output since the title is always the same.

  <head>
<meta data-n-head="1" data-hid="title" key="title" property="title" name="title" content="<title default>">
  </head>

When I run nuxt generate I get the following output:

<!doctype html>
<html>
  <head>
    <meta data-n-head="1" name="viewport" content="width=device-width,initial-scale=1"><meta data-n-head="1" charset="utf-8"><meta data-n-head="1" lang="en"><meta data-n-head="1" language="English"><meta data-n-head="1" data-hid="name" key="name" property="name" name="name" content="<name of site>"><meta data-n-head="1" data-hid="title" key="title" property="title" name="title" content="<title default>"><meta data-n-head="1" data-hid="description" key="description" property="description" name="description" content="<description default>"><link data-n-head="1" rel="icon" type="image/x-icon" href="/favicon.ico"><link rel="preload" href="/_nuxt/05bb0d28f8b7db5c6d56.js" as="script"><link rel="preload" href="/_nuxt/b513b4ca97eeecc473c4.js" as="script"><link rel="preload" href="/_nuxt/d1a88ad09f6573911290.js" as="script">
  </head>
  <body>
    <div id="__nuxt"><style>#nuxt-loading{visibility:hidden;opacity:0;position:absolute;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;align-items:center;flex-direction:column;animation:nuxtLoadingIn 10s ease;-webkit-animation:nuxtLoadingIn 10s ease;animation-fill-mode:forwards;overflow:hidden}@keyframes nuxtLoadingIn{0%{visibility:hidden;opacity:0}20%{visibility:visible;opacity:0}100%{visibility:visible;opacity:1}}@-webkit-keyframes nuxtLoadingIn{0%{visibility:hidden;opacity:0}20%{visibility:visible;opacity:0}100%{visibility:visible;opacity:1}}#nuxt-loading>div,#nuxt-loading>div:after{border-radius:50%;width:5rem;height:5rem}#nuxt-loading>div{font-size:10px;position:relative;text-indent:-9999em;border:.5rem solid #f5f5f5;border-left:.5rem solid #fff;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:nuxtLoading 1.1s infinite linear;animation:nuxtLoading 1.1s infinite linear}#nuxt-loading.error>div{border-left:.5rem solid #ff4500;animation-duration:5s}@-webkit-keyframes nuxtLoading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes nuxtLoading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}</style><script>window.addEventListener("error",function(){var e=document.getElementById("nuxt-loading");e&&(e.className+=" error")})</script><div id="nuxt-loading" aria-live="polite" role="status"><div>Loading...</div></div></div>
  <script type="text/javascript" src="/_nuxt/05bb0d28f8b7db5c6d56.js"></script><script type="text/javascript" src="/_nuxt/b513b4ca97eeecc473c4.js"></script><script type="text/javascript" src="/_nuxt/d1a88ad09f6573911290.js"></script></body>
</html>

the <title> no relevant anymore due the use of meta title in terms of seo?

Meta title is irrelevant will be removed in the next version. Thanks


Output has no title tag, that wasn't supposed to happen.
Could you send the nuxt.config and index.vue ?

Hi thanks for your answer!

I mistakenly used 'spa' instead of 'universal' mode so this was the issue