如何使用 Jekyll 站点设置 RSS 提要?

How to set up RSS feed with a Jekyll site?

我正在 linux 上使用 GitHub Pages 和 jekyll 建立博客。我正在使用包含的 "minima" 主题,它在页面底部包含一个 "Subscribe vie RSS" link。当我单击此 link 时,我收到一条消息: This XML file does not appear to have any style information associated with it. The document tree is shown below. 和下面的一大堆 xml。我不太确定 RSS 提要是如何工作的,但我很确定它不应该像这样工作。我的xml文件如下:

<feed>
<generator uri="https://jekyllrb.com/" version="3.8.5">Jekyll</generator>
<link href="https://gaetgu.github.io/feed.xml" rel="self" type="application/atom+xml"/>
<link href="https://gaetgu.github.io/" rel="alternate" type="text/html"/>
<updated>2020-02-03T16:52:33+00:00</updated>
<id>https://gaetgu.github.io/feed.xml</id>
<title type="html">Gaetgu</title>
<subtitle>Copyright© 2020 Gabriel Gutiérrez</subtitle>
<entry>
<title type="html">site launched</title>
<link href="https://gaetgu.github.io/blog/site-launched" rel="alternate" type="text/html" title="site launched"/>
<published>2020-01-28T00:00:00+00:00</published>
<updated>2020-01-28T00:00:00+00:00</updated>
<id>https://gaetgu.github.io/blog/site-launched</id>
<content type="html" xml:base="https://gaetgu.github.io/blog/site-launched">
<h2 id="hello-world-this-is-the-first-post-of-the-gaetgu-ae-website">Hello, World! This is the first post of the Gaetgu AE website!!!</h2> <p>This blog will contain AE content etc.</p>
</content>
<author>
<name>Gaetgu</name>
</author>
<summary type="html">
Hello, World! This is the first post of the Gaetgu AE website!!!
</summary>
</entry>
<entry>
<title type="html">TVC on Model Rockets</title>
<link href="https://gaetgu.github.io/blog/model-rockets" rel="alternate" type="text/html" title="TVC on Model Rockets"/>
<published>2020-01-28T00:00:00+00:00</published>
<updated>2020-01-28T00:00:00+00:00</updated>
<id>https://gaetgu.github.io/blog/model-rockets</id>
<content type="html" xml:base="https://gaetgu.github.io/blog/model-rockets">
<h3 id="thrust-vectoring-control">Thrust Vectoring Control</h3> <p>TVC is an acronymn for <strong>T</strong>hrust <strong>V</strong>ectoring <strong>C</strong>ontrol. TVC works by gimballing the motor in the base of a model rocket, changing the angle of thrust and therefore changing the velocity.</p> <p><img src="https://upload.wikimedia.org/wikipedia/commons/7/7a/En_Gimbaled_thrust_diagram.svg" alt="TVC Diagram" /></p> <p>This is done actively, changing the course of the rocket and stabilizing it from outside factors such as wind. This concept is what allows SpaceX to land their rockets.</p> <p><img src="https://upload.wikimedia.org/wikipedia/commons/6/6e/Gimbaled_thrust_animation.gif" alt="TVC Animation" /></p> <p>Up until fairly recently, the idea of equipping a model rocket with TVC seemed an out-of-reach concept. Once the 3d printer was made affordable and small, people were suddenly able to create their own parts, without having to have access to a machine shop or spend insane amounts of money to get it custom-built and shipped to your location. The PLA used to print parts is also lighter than acrylic and metal, while still being fairly strong, allowing its use in flight vehicles. As for as I know, there is currently only one company, BPS, who is selling a kit to create your own TVC system, though you could create your own gimbal with a personal 3d printer. The main downside to trying to DUY instead of buying a kit is that you also have to create your own flight computer.</p> <h3 id="building-a-tvc-equipped-rocket-through-kit">Building a TVC-equipped Rocket (through kit)</h3> <p>The kit sold by BPS currently costs 9, and is out of stock until sometime spring 2020. The motor gimbal and avionics mount fit inside a 74mm airframe. The airframes can be bought <a href="https://www.apogeerockets.com/Building_Supplies/Body_Tubes/ Low_Power_Tubes/74mm_x_18_Body_Tube_Thin_Wall_3_tube">here</a>. You must use a MicroSD card to program the main avionics, which can be bought <a href="https://rads.whosebug.com/amzn/click/com/B004ZIENBA" rel="nofollow noreferrer">here</a>. And you must buy either a rechargeable LiPo battery or a 9-volt, the LiPos can be found <a href="https://rads.whosebug.com/amzn/click/com/B01N32628C" rel="nofollow noreferrer">here</a>. And finally, you must buy motor tubes to fit the motor into the housing, you can buy two of <a href="https://www.apogeerockets.com/Building_Supplies/Body_Tubes/Low_Power_Tubes/ 29mm_x_13_Body_Tube_Holds_FG_Engines">these</a>. A beginner rocket, the Electron, can be built along with BPS’s YouTube™ series, as seen below.</p> <p><a href="https://www.youtube.com/playlist?list=PLyV774-3p835n5XZFz4JMvF-Griy_uOdV"><img src="https://i.ytimg.com/vi/1BQkMYj6Kps/hqdefault.jpg?sqp=-oaymwEXCNACELwBSFryq4qpAwkIARUAAIhCGAE=&amp;rs=AOn4CLCZ49T8hDn5S7x3LKA17FYI2S4r3g" alt="Build TVC Series" /></a></p>
</content>
<author>
<name>Gaetgu</name>
</author>
<summary type="html">Thrust Vectoring Control</summary>
</entry>
</feed>

我正在使用 jekyll-feed 插件。该内容实际上在我的 github 存储库中找不到,因此我假设它是由插件自动生成和隐藏的。可以找到回购 here and the website affiliated with it here 任何帮助表示赞赏。谢谢!

虽然看起来有点不正常,但它工作正常。

您将 link 添加到您的 RSS reader 中的那个文件,然后定期读取 XML 文件以构建提要。