Add nice icon links to the RSS feed files

This commit is contained in:
Peter Tillemans 2024-04-06 02:15:29 +02:00
parent fd2eddea53
commit 8202b69b33
3 changed files with 36 additions and 0 deletions

View file

@ -9,6 +9,16 @@
<div class="flex items-center flex-col mt-10"> <div class="flex items-center flex-col mt-10">
<h1 class="text-2xl text-bold mb-6"> <h1 class="text-2xl text-bold mb-6">
Category : {{ term.name }} Category : {{ term.name }}
<button id="rss" type="button" class=" bg-gray-200 text-gray-800 hover:text-gray-900 dark:bg-gray-800 dark:text-gray-400 dark:hover:text-white p-1 rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white">
<a href="rss.xml">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg">
<title>RSS</title>
<path d="M15,56a7,7,0,1,1,7-7A7,7,0,0,1,15,56Zm0-12a5,5,0,1,0,5,5A5,5,0,0,0,15,44Z"/>
<path d="M37.47,59a5.51,5.51,0,0,1-5.5-5.5A20.53,20.53,0,0,0,11.46,32.95a5.5,5.5,0,1,1,0-11A31.55,31.55,0,0,1,43,53.46,5.51,5.51,0,0,1,37.47,59Zm-26-35a3.5,3.5,0,1,0,0,7A22.53,22.53,0,0,1,34,53.46a3.5,3.5,0,0,0,7,0A29.54,29.54,0,0,0,11.46,23.95Z"/>
<path d="M53.89,58.5a5.51,5.51,0,0,1-5.5-5.5A37.44,37.44,0,0,0,11,15.61a5.5,5.5,0,1,1,0-11A48.45,48.45,0,0,1,59.39,53,5.51,5.51,0,0,1,53.89,58.5ZM11,6.61a3.5,3.5,0,1,0,0,7A39.44,39.44,0,0,1,50.39,53a3.5,3.5,0,0,0,7,0A46.45,46.45,0,0,0,11,6.61Z"/>
</svg>
</a>
</button>
</h1> </h1>
<div class="flex flex-col gap-y-6 w-full px-4 sm:w-2/3"> <div class="flex flex-col gap-y-6 w-full px-4 sm:w-2/3">
{% if paginator %} {% if paginator %}

View file

@ -186,6 +186,22 @@
</div> </div>
</div> </div>
{% endif %} {% endif %}
{% if config.generate_feed %}
<button id="rss" type="button" class=" bg-gray-200 text-gray-800 hover:text-gray-900 dark:bg-gray-800 dark:text-gray-400 dark:hover:text-white p-1 rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white">
<a href="rss.xml">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg">
<title>RSS</title>
<path d="M15,56a7,7,0,1,1,7-7A7,7,0,0,1,15,56Zm0-12a5,5,0,1,0,5,5A5,5,0,0,0,15,44Z"/>
<path d="M37.47,59a5.51,5.51,0,0,1-5.5-5.5A20.53,20.53,0,0,0,11.46,32.95a5.5,5.5,0,1,1,0-11A31.55,31.55,0,0,1,43,53.46,5.51,5.51,0,0,1,37.47,59Zm-26-35a3.5,3.5,0,1,0,0,7A22.53,22.53,0,0,1,34,53.46a3.5,3.5,0,0,0,7,0A29.54,29.54,0,0,0,11.46,23.95Z"/>
<path d="M53.89,58.5a5.51,5.51,0,0,1-5.5-5.5A37.44,37.44,0,0,0,11,15.61a5.5,5.5,0,1,1,0-11A48.45,48.45,0,0,1,59.39,53,5.51,5.51,0,0,1,53.89,58.5ZM11,6.61a3.5,3.5,0,1,0,0,7A39.44,39.44,0,0,1,50.39,53a3.5,3.5,0,0,0,7,0A46.45,46.45,0,0,0,11,6.61Z"/>
</svg>
</a>
</button>
{% endif %}
<!-- Theme switch button --> <!-- Theme switch button -->
<div class="flex p-2"> <div class="flex p-2">
<button id="switch-theme" type="button" class="bg-gray-200 text-gray-800 hover:text-gray-900 dark:bg-gray-800 dark:text-gray-400 dark:hover:text-white p-1 rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white"> <button id="switch-theme" type="button" class="bg-gray-200 text-gray-800 hover:text-gray-900 dark:bg-gray-800 dark:text-gray-400 dark:hover:text-white p-1 rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white">

View file

@ -9,6 +9,16 @@
<div class="flex items-center flex-col mt-10"> <div class="flex items-center flex-col mt-10">
<h1 class="text-2xl text-bold mb-6"> <h1 class="text-2xl text-bold mb-6">
Tag : {{ term.name }} Tag : {{ term.name }}
<button id="rss" type="button" class=" bg-gray-200 text-gray-800 hover:text-gray-900 dark:bg-gray-800 dark:text-gray-400 dark:hover:text-white p-1 rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white">
<a href="rss.xml">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg">
<title>RSS</title>
<path d="M15,56a7,7,0,1,1,7-7A7,7,0,0,1,15,56Zm0-12a5,5,0,1,0,5,5A5,5,0,0,0,15,44Z"/>
<path d="M37.47,59a5.51,5.51,0,0,1-5.5-5.5A20.53,20.53,0,0,0,11.46,32.95a5.5,5.5,0,1,1,0-11A31.55,31.55,0,0,1,43,53.46,5.51,5.51,0,0,1,37.47,59Zm-26-35a3.5,3.5,0,1,0,0,7A22.53,22.53,0,0,1,34,53.46a3.5,3.5,0,0,0,7,0A29.54,29.54,0,0,0,11.46,23.95Z"/>
<path d="M53.89,58.5a5.51,5.51,0,0,1-5.5-5.5A37.44,37.44,0,0,0,11,15.61a5.5,5.5,0,1,1,0-11A48.45,48.45,0,0,1,59.39,53,5.51,5.51,0,0,1,53.89,58.5ZM11,6.61a3.5,3.5,0,1,0,0,7A39.44,39.44,0,0,1,50.39,53a3.5,3.5,0,0,0,7,0A46.45,46.45,0,0,0,11,6.61Z"/>
</svg>
</a>
</button>
</h1> </h1>
<div class="flex flex-col gap-y-6 w-full px-4 sm:w-2/3"> <div class="flex flex-col gap-y-6 w-full px-4 sm:w-2/3">
{% if paginator %} {% if paginator %}