diff options
| author | Eltrac <hi@guhub.cn> | 2025-07-08 14:00:34 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-07-08 14:00:34 +0800 |
| commit | c66c868fea27eda8d55dd2d276913ac3ecfbdc58 (patch) | |
| tree | cd3b398e541c1830cde8edc0804eaa9ef3014fcd /layouts/partials/components/like-button.html | |
| parent | 72ba214d703e160ea5ccc09702415ddda6d0b2e0 (diff) | |
refactor: include only necessary styles and remove unused like-button assets
Diffstat (limited to 'layouts/partials/components/like-button.html')
| -rw-r--r-- | layouts/partials/components/like-button.html | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/layouts/partials/components/like-button.html b/layouts/partials/components/like-button.html deleted file mode 100644 index b94b6a26..00000000 --- a/layouts/partials/components/like-button.html +++ /dev/null @@ -1,23 +0,0 @@ -<div class="floating-like-container" id="like-container-{{ .File.UniqueID | urlize }}"> - <div class="floating-like-button" - onclick="sendLike('{{ .File.UniqueID | urlize }}')" - id="like-btn-{{ .File.UniqueID | urlize }}" - title="为这篇文章献上心脏" - data-liked-title="你已经献上心脏了"> - <img id="like-button-icon" src="/img/heart-organ.svg" class="invert-if-dark" alt="点赞" /> - <div class="like-count-display" id="like-count-{{ .File.UniqueID | urlize }}">...</div> - </div> -</div> - -<!-- 内嵌CSS样式 --> -{{ with resources.Get "css/like-button.css" | minify }} -<style>{{ .Content | safeCSS }}</style> -{{ end }} - -<!-- 设置页面ID并内嵌JavaScript --> -<script> - window.likeButtonPageId = "{{ .File.UniqueID | urlize }}"; -</script> -{{ with resources.Get "js/like-button.js" | minify }} -<script>{{ .Content | safeJS }}</script> -{{ end }} |
