Closed lonelee-kirsi closed 7 years ago
Which version of Hexo
did you use?
Do you have the required social
section in your _config.yml
? If you don't have any link, you will still need to put below code snippet in your _config.yml
social:
github:
weibo:
linkedin:
I‘m using Hexo 3.3.8
.
I have configured it like this:
social:
github: https://github.com/lonelee-kirsi
weibo: https://github.com/lonelee-kirsi
linkedin: https://github.com/lonelee-kirsi
But it’s still the same errors.
3.3.8
should be compatible.
My blog is also using 3.3.8
with this theme, you may take a reference of the config file https://github.com/sabrinaluo/tech/blob/master/_config.yml
Can you provide your _config.yml
file?
Should I configure it in root _config.yml
instead of theme _config.yml
?
I add the following code to root _config.yml
and it works:
social:
github: test
I have also found the same error. And I think when genarate the file, hexo read the var in the root _config file, but there is no var 'github'. And the solution is add the var 'github' in root _config as @lonelee-kirsi said.
@lonelee-kirsi @wywncdx yes, it should be in the root _config.yml
file
I will update the template later, to make it work with both theme config and root config.
But please notice that if you have this setting in both theme config and root config, the root config will have higher priority and will override the one in theme config 😅
Thank you for your answer.
The Errors
Questions