Related articles feature added

This commit is contained in:
Nuno Coração
2023-04-29 15:56:55 +01:00
parent 974fbf2687
commit 66198da716
40 changed files with 274 additions and 81 deletions
@@ -9,7 +9,7 @@
<div class="flex mb-6 px-4 py-2 mb-8 text-base rounded-md bg-primary-100 dark:bg-primary-900">
<span class="flex items-center justify-between grow dark:text-neutral-300">
<span class="prose dark:prose-invert">This is a demo of theme's list configurations: <code
id="config">card view with full width</code></span>
id="config">card view</code></span>
<button id="switch-config-button"
class="px-4 !text-neutral !no-underline rounded-md bg-primary-600 hover:!bg-primary-500 dark:bg-primary-800 dark:hover:!bg-primary-700">
Switch config &orarr;
@@ -17,12 +17,12 @@
</span>
</div>
<div id="CardViewScreenWidth" class="">
{{ partial "recent-articles/cardview-fullwidth.html" . }}
<div id="CardViewProse" class="h-full">
{{ partial "recent-articles/cardview.html" . }}
</div>
<div id="CardViewProse" class="hidden h-full">
{{ partial "recent-articles/cardview.html" . }}
<div id="CardViewScreenWidth" class="hidden h-full">
{{ partial "recent-articles/cardview-fullwidth.html" . }}
</div>
<div id="NormalView" class="hidden h-full">