mirror of
https://github.com/10h30/astroplate.git
synced 2026-06-05 15:08:00 +09:00
fixed taxonomy list page overlapping issue
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "astroplate",
|
||||
"version": "1.1.3",
|
||||
"version": "1.1.4",
|
||||
"description": "Astro and Tailwindcss boilerplate",
|
||||
"author": "zeon.studio",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user