diff options
| author | BigCoke233 <hi@guhub.cn> | 2026-01-31 00:12:02 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2026-01-31 00:12:02 +0800 |
| commit | 60d233d8edfd634fce90753abf6653a4dc7ed98f (patch) | |
| tree | 7a69ab0792f54d6cb877281636a93aca55c83d3e /layouts/_partials/posts | |
| parent | 4527a5cdab845def35a5e1f263ee0ca26f5a114b (diff) | |
remove: like button
Former-commit-id: 3f4e02e8f9023a76c2396949e94766a7d8526f19
Diffstat (limited to 'layouts/_partials/posts')
| -rw-r--r-- | layouts/_partials/posts/action-menu.html | 3 | ||||
| -rw-r--r-- | layouts/_partials/posts/action-menu/like-button.html | 27 |
2 files changed, 0 insertions, 30 deletions
diff --git a/layouts/_partials/posts/action-menu.html b/layouts/_partials/posts/action-menu.html index 6b824409..ab4c87d5 100644 --- a/layouts/_partials/posts/action-menu.html +++ b/layouts/_partials/posts/action-menu.html @@ -4,7 +4,6 @@ <div class="flex gap-2"> {{ partial "posts/action-menu/comment-button" . }} {{ partial "posts/action-menu/webmention-button" . }} - {{ partial "posts/action-menu/like-button" . }} </div> {{ partial "posts/action-menu/info-links" . }} </div> @@ -12,6 +11,4 @@ {{ partial "posts/action-menu/comment-section" . }} {{ partial "posts/action-menu/webmention-section" . }} </div> - <!-- Comment Count Display --> - <div id="organ-farm" class="flex flex-wrap gap-4 hidden animate-duration-200"></div> </div> diff --git a/layouts/_partials/posts/action-menu/like-button.html b/layouts/_partials/posts/action-menu/like-button.html deleted file mode 100644 index bd5e209e..00000000 --- a/layouts/_partials/posts/action-menu/like-button.html +++ /dev/null @@ -1,27 +0,0 @@ -{{ $pageID := .File.UniqueID | urlize }} -<!-- 点赞按钮 --> -<div class="relative" id="like-container-{{ $pageID }}"> - <button class="dark:invert flex items-center justify-center gap-1.5 min-w-12 h-12 px-2 - border-none bg-transparent text-gray-600 cursor-pointer relative transition-all duration-200 - hover:bg-black/5 hover:rounded-lg group animate-count-infinite" - id="like-btn" - data-pageid="{{ $pageID }}" - title="{{ T "actionMenu.like" }}" - data-liked-title="{{ T "actionMenu.liked" }}" - data-tooltip> - <img src="/img/heart-organ.svg" width="20" height="20" - alt="{{ T "actionMenu.like" }}" - class="brightness-40 flex-shrink-0 transition-all duration-300 dark:brightness-70 dark:contrast-120" id="like-icon-{{ $pageID }}" /> - <span class="text-xs font-bold text-gray-600 min-w-4 text-center bg-white/90 rounded-xl px-1.5 py-0.5 shadow-sm dark:text-gray-400 dark:bg-black/70" id="like-count-{{ $pageID }}">...</span> - </button> -</div> - -<style> -.liked-heart { - filter: brightness(0) saturate(100%) invert(8%) sepia(100%) saturate(7500%) hue-rotate(0deg) brightness(70%) contrast(150%) !important; -} - -.liked-count { - color: #8B0000 !important; -} -</style> |
