cool hit counter Hexo blog installation RSS plugin_Intefrankly

Hexo blog installation RSS plugin


Article published at.

https://abelsu7.top/2018/03/07/hexo-rss/

Copy it into your browser for a better experience~

RSS Introduction

RSS (Really Simple Syndication) is a format for describing and synchronizing website content, and is the most widely used XML application.

RSS Currently widely used in online news channels, blogs and wikis, the main versions are, , . Using RSS feeds provides faster access to information, and web users can read the content of websites that support RSS output on the client side without opening the content page of the website with the help of RSS-enabled aggregator software.

The following section will describe how to install the targetHexo RSS plugin for blogs and provide RSS feeds with the help of generated files.

Atomis a format for subscribing to weblogs, a kind of web feed, similar to RSS but with greater flexibility. It's worth noting that Blogger and Gmail, both services provided by Google, are using Atom.

Installing plug-ins

First open a terminal and go to the localHexo Root directory, by installing the RSS plugin.

$npm install hexo-generator-feed

Add Configuration

Edit LocalHexo file in the root directory, add the following configuration.

#Extensions

#Plugins: https://hexo.io/plugins/

#RSS feeds

plugin:

- hexo-generator-feed

#Feed Atom

feed:

type: atom

path: atom.xml

limit: 20

Add theme configuration

After re-executing the command to render the file, the required file has been generated in the directory under the root directory. Although the file already exists, you still need to add the subscribe to RSS button to the page.

differentHexo Themes implement RSS in different ways. The theme used by the blogger is that you can edit the files in the theme directory, add a new menu item, and the link is set to just (corresponding to the absolute path of your file). If you wish to open the link in a new page, you will need to set the attribute to

# Adding new menu items follows these rules

#menu:

#link:

#text: About

#url: /about

#target: _blank

menu:

rss:

text: RSS

url: /atom.xml

target: _blank

redeployment

Finally, empty the existing static files, re-render the files, deploy to a server or service, and start the subscription journey!

$hexo clean

$hexo generate# or hexo g

$hexo deploy# or hexo d

Reference Articles

Install RSS plugin for hexo blog | CSDN

RSS (Simple Syndication of Information) (Baidu Encyclopedia)

Atom (XML aggregation format)| Baidu online encyclopedia


Recommended>>
1、iOS Advanced Message Forwarding Mechanism
2、Preliminary analysis of the ransomware ZEPTO
3、ProbeBig Data Read Its the end of the year did you get a raise
4、Robots taking jobs is just a pseudo proposition
5、Management of ASM disks directories

    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号