使用阿里云搭建hexo博客
2018.10.9晚上9点半完成正式的搭建工作,2018.9.14号提交的备案,其中还被驳回一次,说是我的
网站名称有问题,以及要在备注里面加上这个网站是用来干什么的,之后就是漫长的等待,差不多等了23天才给我发短信
网站部署遇到几个问题
- nginx指定了静态网页的位置,在本机上测试访问出现403
解决办法:/etc/nginx 下的nginx.conf文件,将第一行的user名称改为root - 将备案号加到网站底部
解决办法cd themes/next/layout/_partials,然后vim footer.swig,然后如下代码1
2
3
4
5
6
7
8
9
10
11
12
13{% if theme.footer.theme.enable %}
<div class="theme-info">{#
#}{{ __('footer.theme') }} — {#
#}<a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">{#
#}NexT.{{ theme.scheme }}{#
#}</a>{% if theme.footer.theme.version %} v{{ theme.version }}{% endif %}{#
#}</div>
<div class=BbeiAn-info">
{{ __('鄂ICP备') }} -
<a href="http://www.miitbeian.gov.cn/">18023106号</a>
</a>
</div>
{% endif %}