张望

记录现在,展望未来

  1. 在next下的_config.yml配置中新增

    1
    2
    3
    4
    5
    sidebar_rss: 
    text: RSS
    icon: fa fa-rss
    color: burlywood
    link: atom.xml
  2. 找到next/layout/_partials/sidebar/site-overview.swig文件,在社交判断板块下新增以下代码

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    {%- if theme.sidebar_rss %}
    <div class="" >
    <a target="_blank" class="social-link" href="{{ url_for(theme.sidebar_rss.link) }}" style="color: {{ theme.sidebar_rss.color }};">
    <span class="icon">
    <i class="{{ theme.sidebar_rss.icon }}"></i>
    </span>
    <span class="label">{{ theme.sidebar_rss.text }}</span>
    </a>
    </div>
    {%- endif %}
  3. 在博客目录下安装npm install hexo-generator-feed --save,编译时就会生成atom.xml文件。

This message is used to verify that this feed (feedId:78721582607268864) belongs to me (userId:43266652391609344). Join me in enjoying the next generation information browser https://follow.is.

0%