helix-editor / website

Website for Helix
https://helix-editor.com/
26 stars 22 forks source link

Add RSS link to News page #45

Closed LinkSake closed 2 months ago

LinkSake commented 3 months ago

I took me a while to realize that the RSS feed was under /atom.xml. I think it's pretty standard to have some link pointing to it on the news page or the footer, something like this:

Screenshot 2024-07-29 at 12 05 23

Reading the Zola docs it would just be a matter to add a link with href="{{ get_url(path="atom.xml", trailing_slash=false) }}" since the base.html file already has the feeds autodiscovery option.

LinkSake commented 3 months ago

Code could be something like this

<style>
.title-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  a {
    margin-block-start: 1.66em;
    margin-block-end: 1.66em;
    text-align: end;  
  }
}

...
</style>
<div class="title-section">
  <h1>
   {{ section.title }}
  </h1>
  <a href="{{ get_url(path="atom.xml", trailing_slash=false) }}">
    RSS
  </a>
</div>

...
pickfire commented 3 months ago

Don't we already have this?

templates/base.html
16:      <link rel="alternate" type="application/atom+xml" title="Atom" href="{{ get_url(path="atom.xml", trailing_slash=false) }}">

Feel free to submit a PR for this.

mweinelt commented 2 months ago

https://helix-editor.com/atom.xml returns a 404 for me. It used to work 5 hours ago.

leo-unglaub commented 2 months ago

https://helix-editor.com/atom.xml returns a 404 for me. It used to work 5 hours ago.

Do you still have that issue? It seams to work fine for me.

mweinelt commented 2 months ago

Was resolved through https://github.com/helix-editor/website/pull/48