auroral-ui / hexo-theme-aurora

🏳️‍🌈 Futuristic auroral Hexo theme.
https://blog.bennyxguo.com
MIT License
1.39k stars 218 forks source link

meta tag for SEO not appears in <head> section. #215

Open btheNerd opened 2 years ago

btheNerd commented 2 years ago

@bennyxguo Hi, first of all, I really want you know that I am enjoying applying aurora theme and thank you for letting us use such a beautiful theme. I have a problem to improve my SEO experience, so I really need your help.

I have tried adding :

<meta name="google-site-verification" content="myverificationcode" />
<meta name="naver-site-verification" content="myverificationcode" />

not only to

site_meta:
    cdn: en
.
.
.
    google-site-verication : 'myverificationcode'
    naver-site-verication : 'myverificationcode'
.
.
.
injects:
    scripts:
        <meta name="google-site-verification" content="myverificationcode" />
        <meta name="naver-site-verification" content="myverificationcode" />
    css:
        <meta name="google-site-verification" content="myverificationcode" />
        <meta name="naver-site-verification" content="myverificationcode" />

of _config.aurora.yml file, but also to

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <%- autoCanonical(config, page) %> 
  <%- partial('google-analytics') %>
  <meta name="google-site-verification" content="myverificationcode" />
  <meta name="naver-site-verification" content="myverificationcode" />

of head.ejs file. However, they all failed to make those contents appear in section. Is there any solution that I should try?

Thanks for reading and hope you have a nice weekend!

mrfoxie commented 1 year ago

same goes for me too i rally want to add seo as well as search console

bennyxguo commented 1 year ago

I need add feature to support all those. I will add to backlog and work on them soon!