fixed taxonomy list page overlapping issue

This commit is contained in:
somrat sorkar
2023-05-20 10:44:13 +06:00
parent 511365e797
commit 1431ce1d35
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "astroplate",
"version": "1.1.3",
"version": "1.1.4",
"description": "Astro and Tailwindcss boilerplate",
"author": "zeon.studio",
"license": "MIT",
+3 -3
View File
@@ -14,15 +14,15 @@ const allCategories = await getAllTaxonomy(blog_folder, "categories");
<PageHeader title={"Categories"} />
<section class="section">
<div class="container text-center">
<ul class="space-x-4">
<ul>
{
categories.map((category: any) => {
const count = allCategories.filter((c) => c === category).length;
return (
<li class="inline-block">
<li class="m-3 inline-block">
<a
href={`/categories/${category}`}
class="rounded bg-theme-light px-4 py-2 text-xl text-dark dark:bg-darkmode-theme-light dark:text-darkmode-dark"
class="block rounded bg-theme-light px-4 py-2 text-xl text-dark dark:bg-darkmode-theme-light dark:text-darkmode-dark"
>
{humanize(category)}{" "}
<span class="ml-2 rounded bg-body px-2 dark:bg-darkmode-body">
+3 -3
View File
@@ -14,15 +14,15 @@ const allTags = await getAllTaxonomy(blog_folder, "tags");
<PageHeader title={"Tags"} />
<section class="section">
<div class="container text-center">
<ul class="space-x-4">
<ul>
{
tags.map((tag: any) => {
const count = allTags.filter((c) => c === tag).length;
return (
<li class="inline-block">
<li class="m-3 inline-block">
<a
href={`/tags/${tag}`}
class="rounded bg-theme-light px-4 py-2 text-xl text-dark dark:bg-darkmode-theme-light dark:text-darkmode-dark"
class="block rounded bg-theme-light px-4 py-2 text-xl text-dark dark:bg-darkmode-theme-light dark:text-darkmode-dark"
>
{humanize(tag)}{" "}
<span class="ml-2 rounded bg-body px-2 dark:bg-darkmode-body">