update tw-theme plugin

This commit is contained in:
Somrat 2025-02-20 11:41:04 +06:00
parent 916fb27193
commit 9325b9a0b8
4 changed files with 7 additions and 5 deletions

View File

@ -9,7 +9,7 @@
} }
.share-icons .share-icon svg { .share-icons .share-icon svg {
@apply dark:fill-current; @apply dark:fill-darkmode-light;
} }
/* notice */ /* notice */

View File

@ -109,6 +109,8 @@ module.exports = plugin.withOptions(() => {
bg: (value) => ({ backgroundColor: value }), bg: (value) => ({ backgroundColor: value }),
text: (value) => ({ color: value }), text: (value) => ({ color: value }),
border: (value) => ({ borderColor: value }), border: (value) => ({ borderColor: value }),
fill: (value) => ({ fill: value }),
stroke: (value) => ({ stroke: value }),
}, },
{ values: colorsMap, type: "color" }, { values: colorsMap, type: "color" },
); );

View File

@ -47,7 +47,7 @@
<div class="row items-start justify-between"> <div class="row items-start justify-between">
{{ $tags:= .Params.tags }} {{ $tags:= .Params.tags }}
{{ if $tags }} {{ if $tags }}
<div class="lg:col-5 mb-10 flex items-center lg:mb-0"> <div class="lg:col-6 mb-10 flex items-center lg:mb-0">
<h5 class="mr-3">{{ T "tags" }} :</h5> <h5 class="mr-3">{{ T "tags" }} :</h5>
<ul> <ul>
{{ range $i,$p:= $tags }} {{ range $i,$p:= $tags }}
@ -62,8 +62,8 @@
</ul> </ul>
</div> </div>
{{ end }} {{ end }}
<div class="lg:col-4 flex items-center"> <div class="lg:col-6 flex items-center">
{{ partial "social-share" (dict "Context" . "Class" "share-icons" "Title" (T "share") "Whatsapp" false "Telegram" false "Linkedin" false "Pinterest" false "Tumblr" false "Vk" false) }} {{ partial "social-share" (dict "Context" . "Class" "share-icons lg:ml-auto" "Title" (T "share") "Whatsapp" false "Telegram" false "Linkedin" false "Pinterest" false "Tumblr" false "Vk" false) }}
</div> </div>
</div> </div>
<!-- comments --> <!-- comments -->

View File

@ -1,7 +1,7 @@
{ {
"name": "hugoplate", "name": "hugoplate",
"description": "hugo tailwindcss boilerplate", "description": "hugo tailwindcss boilerplate",
"version": "2.0.0", "version": "2.0.1",
"license": "MIT", "license": "MIT",
"author": "zeon.studio", "author": "zeon.studio",
"scripts": { "scripts": {