update theme variable

This commit is contained in:
Somrat
2025-02-17 11:37:24 +06:00
parent 33a3433de1
commit 515b3b71e0
21 changed files with 58 additions and 58 deletions

View File

@@ -3,7 +3,7 @@
{{ if not (eq (len site.Taxonomies.categories) 0) }}
<div class="mb-8">
<h5 class="mb-6">{{ T "categories" }}</h5>
<div class="bg-theme-light dark:bg-darkmode-theme-light rounded p-8">
<div class="bg-light dark:bg-darkmode-light rounded p-8">
<ul class="space-y-4">
{{ range $name, $items := site.Taxonomies.categories }}
<li>

View File

@@ -3,12 +3,12 @@
{{ if not (eq (len site.Taxonomies.tags) 0) }}
<div class="mb-8">
<h5 class="mb-6">{{ T "tags" }}</h5>
<div class="bg-theme-light dark:bg-darkmode-theme-light rounded p-6">
<div class="bg-light dark:bg-darkmode-light rounded p-6">
<ul>
{{ range $name, $items := site.Taxonomies.tags }}
<li class="inline-block">
<a
class="hover:bg-primary dark:bg-darkmode-body dark:hover:bg-darkmode-primary dark:hover:text-dark {{ if (and (eq $.Page.Kind `term`) (eq $.Page.Type `tags`) (eq $.Page.Title .Page.Title)) }}
class="hover:bg-primary dark:bg-darkmode-body dark:hover:bg-darkmode-primary dark:hover:text-text-dark {{ if (and (eq $.Page.Kind `term`) (eq $.Page.Type `tags`) (eq $.Page.Title .Page.Title)) }}
active
{{ end }} m-1 block rounded bg-white px-3 py-1 hover:text-white"
href="{{ .Page.RelPermalink }}">