feat: add the RSS icon to the footer and make the news English only
- show the RSS icon in every footer, linked to /news/feed.xml - write news in English only: the Italian pages list the same posts and link to them - build a single feed instead of one per language - send the language switch of the news pages to the home page of the other language - document the English-only news in the README
This commit is contained in:
parent
7bc7b8789f
commit
8270863f9f
2 changed files with 30 additions and 36 deletions
3
templates/feed.html
Normal file
3
templates/feed.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<p class="feed">
|
||||
<a href="{{url_news}}feed.xml" title="RSS"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="28" height="28" role="img" aria-label="RSS"><rect width="32" height="32" rx="6" fill="#D9480F"/><circle cx="9" cy="23" r="3" fill="#fff"/><path d="M6 14a12 12 0 0 1 12 12M6 6a20 20 0 0 1 20 20" fill="none" stroke="#fff" stroke-width="3"/></svg></a>
|
||||
</p>
|
||||
|
|
@ -3,5 +3,6 @@
|
|||
<p>
|
||||
{{nojs}}
|
||||
</p>
|
||||
{{feed}}
|
||||
{{badges}}
|
||||
</footer>
|
||||
|
|
|
|||
Loading…
Reference in a new issue