diff --git a/data/album.yml b/data/album.yml index ef4c1d30..ec32f165 100644 --- a/data/album.yml +++ b/data/album.yml @@ -2,4 +2,40 @@ - title: "青梅酒不错" image: "/album/青梅酒.jpg" date: "2026-01-29" + description: "青梅酒还不错" +- title: "青梅酒不错" + image: "/album/青梅酒.jpg" + date: "2026-01-29" + description: "青梅酒还不错" +- title: "青梅酒不错" + image: "/album/青梅酒.jpg" + date: "2026-01-29" + description: "青梅酒还不错" +- title: "青梅酒不错" + image: "/album/青梅酒.jpg" + date: "2026-01-29" + description: "青梅酒还不错" +- title: "青梅酒不错" + image: "/album/青梅酒.jpg" + date: "2026-01-29" + description: "青梅酒还不错" +- title: "青梅酒不错" + image: "/album/青梅酒.jpg" + date: "2026-01-29" + description: "青梅酒还不错" +- title: "青梅酒不错" + image: "/album/青梅酒.jpg" + date: "2026-01-29" + description: "青梅酒还不错" +- title: "青梅酒不错" + image: "https://immmmm.com/goods/mxkeys.webp" + date: "2026-01-29" + description: "青梅酒还不错" +- title: "青梅酒不错" + image: "/album/青梅酒.jpg" + date: "2026-01-29" + description: "青梅酒还不错" +- title: "青梅酒不错" + image: "https://immmmm.com/goods/mxkeys.webp" + date: "2026-01-29" description: "青梅酒还不错" \ No newline at end of file diff --git a/hugo.toml b/hugo.toml index 9272273c..e4fb3cc3 100644 --- a/hugo.toml +++ b/hugo.toml @@ -87,13 +87,6 @@ hasCJKLanguage = true # 站点参数配置 (Site Parameters) # ============================================================================== [params] - # ---------------------------------------------------------------------------- - # 关于页面配置 (About Page Configuration) - # ---------------------------------------------------------------------------- - [params.about] - enableheatmap = false # 开启热力图 (Enable Heatmap) - enableskills = false # 开启技能栈 (Enable Skills) - # ---------------------------------------------------------------------------- # 社交链接 (Social Links) # ---------------------------------------------------------------------------- @@ -103,6 +96,13 @@ hasCJKLanguage = true { title = "Rss订阅", url = "/rss.xml", icon = "ri-rss-fill" } ] + # ---------------------------------------------------------------------------- + # 关于页面配置 (About Page Configuration) + # ---------------------------------------------------------------------------- + [params.about] + enableheatmap = false # 开启热力图 (Enable Heatmap) + enableskills = false # 开启技能栈 (Enable Skills) + # ---------------------------------------------------------------------------- # 作者信息 (Author Info) # ---------------------------------------------------------------------------- @@ -126,6 +126,7 @@ hasCJKLanguage = true [params.artalk] server = "https://artalk.usj.cc" site = "优世界" + ai_badge = "捧场王" # 自定义 AI 评论标识 emoticons = "/emotion/OwO.json" gravatar = "https://cravatar.cn/avatar/" diff --git a/themes/Ying/assets/css/main.css b/themes/Ying/assets/css/main.css index 4deb6336..fed7a591 100644 --- a/themes/Ying/assets/css/main.css +++ b/themes/Ying/assets/css/main.css @@ -46,10 +46,11 @@ } [data-theme="dark"] .main { - background: rgba(15, 23, 42, 0.96); + background: rgba(15, 23, 42, 0.99); /* Increased opacity for readability */ box-shadow: var(--card-shadow-dark); - backdrop-filter: blur(10px); - -webkit-backdrop-filter: blur(10px); + /* Removed glassmorphism blur as requested */ + backdrop-filter: none; + -webkit-backdrop-filter: none; } [data-theme="dark"] .header nav { @@ -505,7 +506,7 @@ ul { overflow: hidden; margin: 60px auto; padding: 50px; - background: rgba(255, 255, 255, 0.95); + background: rgba(255, 255, 255, 0.8); box-shadow: var(--card-shadow-light); border-radius: 8px; z-index: 10; @@ -740,93 +741,153 @@ ul { animation: fadeIn 0.3s ease; } +/* Simplified Search Styles for Essay/Shuoshuo */ .search-input-group { position: relative; display: flex; align-items: center; width: 100%; - border-bottom: 2px solid #e5e7eb; - transition: border-color 0.3s ease; + border: 1px solid rgba(0, 0, 0, 0.08); /* Very subtle border for minimalism */ + border-radius: 99px; /* Fully rounded pill */ + padding: 2px 15px; + background: transparent; /* No background by default */ + transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); +} + +.search-input-group:hover { + border-color: rgba(0, 0, 0, 0.15); + background: rgba(0, 0, 0, 0.01); } .search-input-group:focus-within { - border-color: #111827; + background: #fff; + border-color: transparent; + box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); /* Soft diffuse shadow */ + transform: translateY(-1px); +} + +[data-theme="dark"] .search-input-group { + border-color: rgba(255, 255, 255, 0.1); + background: transparent; +} + +[data-theme="dark"] .search-input-group:hover { + border-color: rgba(255, 255, 255, 0.2); + background: rgba(255, 255, 255, 0.02); } [data-theme="dark"] .search-input-group:focus-within { - border-color: #e5e7eb; + background: #1f2933; + border-color: transparent; + box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); } .search-input-group input { width: 100%; border: none; background: transparent; - padding: 8px 35px 8px 45px; /* Increased left padding to separate from icon */ - font-size: 1rem; + padding: 10px 10px 10px 30px; + font-size: 0.95rem; color: var(--text-title-color); outline: none; } -[data-theme="dark"] .search-input-group input { - color: var(--text-title-dark-color); -} - -.search-icon, .close-icon { - position: absolute; - font-size: 1.2rem; - color: #999; -} - .search-icon { - left: 5px; + position: absolute; + left: 15px; + font-size: 1.1rem; + color: #9ca3af; + pointer-events: none; + transition: color 0.3s; +} + +.search-input-group:focus-within .search-icon { + color: #4b5563; +} + +[data-theme="dark"] .search-input-group:focus-within .search-icon { + color: #d1d5db; } .close-icon { - right: 5px; + position: absolute; + right: 15px; + font-size: 1.1rem; + color: #9ca3af; cursor: pointer; - transition: color 0.2s; + transition: all 0.2s; + opacity: 0; + transform: scale(0.8); +} + +.search-input-group.has-value .close-icon { + opacity: 1; + transform: scale(1); } .close-icon:hover { - color: var(--text-title-color); -} - -[data-theme="dark"] .close-icon:hover { - color: var(--text-title-dark-color); + color: #ef4444; } .search-dropdown { position: absolute; top: 100%; left: 0; - width: 100%; - background: rgba(255, 255, 255, 0.98); - backdrop-filter: blur(10px); - border-radius: 8px; - box-shadow: 0 10px 25px rgba(0,0,0,0.1); - z-index: 100; - max-height: 400px; - overflow-y: auto; - margin-top: 10px; - display: none; /* Hidden by default */ -} - -[data-theme="dark"] .search-dropdown { - background: rgba(30, 41, 59, 0.98); - box-shadow: 0 10px 25px rgba(0,0,0,0.5); + right: 0; + background: rgba(255, 255, 255, 0.9); + backdrop-filter: blur(12px); + -webkit-backdrop-filter: blur(12px); + border-radius: 12px; + box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1); + border: 1px solid rgba(255, 255, 255, 0.2); + margin-top: 12px; + overflow: hidden; + z-index: 50; + opacity: 0; + transform: translateY(10px); + visibility: hidden; + transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .search-dropdown.show { - display: block; - animation: slideDown 0.2s ease; + opacity: 1; + transform: translateY(0); + visibility: visible; +} + +[data-theme="dark"] .search-dropdown { + background: rgba(31, 41, 51, 0.9); + border: 1px solid rgba(255, 255, 255, 0.05); + box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5); } .search-result-item { - padding: 12px 15px; - border-bottom: 1px solid rgba(0,0,0,0.05); - transition: background 0.2s; - text-align: left; /* Align text left */ - cursor: pointer; + padding: 10px 15px; + border-bottom: 1px solid rgba(0,0,0,0.03); + display: flex; + flex-direction: column; +} + +.search-result-meta { + display: flex; + justify-content: space-between; + font-size: 0.8rem; + color: #999; + margin-top: 4px; +} + +.search-result-summary-text { + max-width: 70%; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.no-result { + text-align: center; + color: #999; + padding: 15px; + cursor: default; } [data-theme="dark"] .search-result-item { @@ -1001,6 +1062,83 @@ ul { transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; } +/* Code Block Controls */ +.code-controls { + position: absolute; + top: 5px; + right: 10px; + display: flex; + gap: 8px; + z-index: 10; + opacity: 0; + transition: opacity 0.3s ease; +} + +.highlight:hover .code-controls { + opacity: 1; +} + +.code-btn { + background: rgba(0,0,0,0.5); + color: white; + border: none; + border-radius: 4px; + padding: 4px 8px; + font-size: 12px; + cursor: pointer; + transition: background 0.2s; +} + +.code-btn:hover { + background: rgba(0,0,0,0.7); +} + +/* Expandable Code Blocks */ +.highlight.collapsed { + max-height: 300px; + position: relative; +} + +.highlight.collapsed::after { + content: ""; + position: absolute; + bottom: 0; + left: 0; + width: 100%; + height: 80px; + background: linear-gradient(to bottom, transparent, #f6f8fa); + pointer-events: none; +} + +[data-theme="dark"] .highlight.collapsed::after { + background: linear-gradient(to bottom, transparent, #282a36); +} + +.expand-btn-container { + text-align: center; + position: absolute; + bottom: 0; + width: 100%; + padding: 10px; + z-index: 5; + display: none; +} + +.highlight.collapsed .expand-btn-container { + display: block; +} + +.expand-btn { + background: var(--link-color); + color: white; + border: none; + padding: 5px 15px; + border-radius: 20px; + cursor: pointer; + font-size: 12px; + box-shadow: 0 2px 5px rgba(0,0,0,0.2); +} + [data-theme="dark"] .highlight { background: #282a36; /* Night Mode: Dark BG (Dracula) */ color: #f8f8f2; /* Night Mode: Light Text */ diff --git a/themes/Ying/assets/js/main.js b/themes/Ying/assets/js/main.js index 172135b3..d04d5a8e 100644 --- a/themes/Ying/assets/js/main.js +++ b/themes/Ying/assets/js/main.js @@ -5,13 +5,7 @@ document.addEventListener('DOMContentLoaded', function() { ViewImage.init('.post-content img'); } - // 初始化各个模块 - if (window.initLoader) window.initLoader(); - if (window.initFloatingTools) window.initFloatingTools(); - if (window.initSearch) window.initSearch(); - if (window.initArtalk) window.initArtalk(); - - // 文章图片懒加载 + // 文章图片懒加载 (优先初始化,防止其他模块调用时出错) if (typeof lazyLoadInit === 'function') { lazyLoadInit({ offsetBottom: 800, @@ -21,4 +15,16 @@ document.addEventListener('DOMContentLoaded', function() { } else { console.warn('lazyLoadInit is not defined'); } + + // 初始化各个模块 + if (window.initLoader) window.initLoader(); + if (window.initFloatingTools) window.initFloatingTools(); + if (window.initSearch) window.initSearch(); + if (window.initArtalk) window.initArtalk(); + + // New Utils Init + if (window.initThemeToggle) window.initThemeToggle(); + if (window.initCodeFold) window.initCodeFold(); + if (window.initCodeCopy) window.initCodeCopy(); + if (window.initParagraphComments) window.initParagraphComments(); }); diff --git a/themes/Ying/assets/js/modules/artalk.js b/themes/Ying/assets/js/modules/artalk.js index e8541590..9d4959a9 100644 --- a/themes/Ying/assets/js/modules/artalk.js +++ b/themes/Ying/assets/js/modules/artalk.js @@ -33,7 +33,7 @@ window.initArtalk = function() {
(.*?)<\/blockquote>/) || firstContent.match(/^> (.*?)(?:\n|$)/); + if (match) quote = match[1]; + } + + if (quote) { + body.innerHTML += `${quote}`; + } + + comments.forEach(c => { + var item = document.createElement('div'); + item.className = 'pc-comment-item'; + var cleanContent = c.content.replace(/^> .*?\n+/g, '').replace(/.*?<\/blockquote>/g, ''); + + var badgeHtml = ''; + if (c.badge) { + badgeHtml = `${c.badge}`; + } + + item.innerHTML = ` +${c.nick}${badgeHtml} ${c.date}+${cleanContent}+ `; + body.appendChild(item); + }); + + modal.classList.add('show'); + } + + function closeModal() { + modal.classList.remove('show'); + } + + window.initParagraphComments = init; + init(); + +})(); diff --git a/themes/Ying/assets/js/modules/search.js b/themes/Ying/assets/js/modules/search.js index 76cd50ba..2f6e9406 100644 --- a/themes/Ying/assets/js/modules/search.js +++ b/themes/Ying/assets/js/modules/search.js @@ -121,12 +121,24 @@ function initInlineSearch() { searchContainer.style.display = 'block'; input.focus(); loadSearchIndex(); + // Add Esc key listener + document.addEventListener('keydown', escListener); } else { header.style.display = 'inline-flex'; searchContainer.style.display = 'none'; input.value = ''; + // Remove .has-value class + searchContainer.querySelector('.search-input-group').classList.remove('has-value'); resultsContainer.classList.remove('show'); resultsContainer.innerHTML = ''; + // Remove Esc key listener + document.removeEventListener('keydown', escListener); + } + }; + + var escListener = function(e) { + if (e.key === 'Escape') { + window.toggleSearchMode(false); } }; @@ -137,8 +149,41 @@ function initInlineSearch() { input.parentNode.replaceChild(newInput, input); input = newInput; + // Handle Close Icon Logic + var closeIcon = searchContainer.querySelector('.close-icon'); + if (closeIcon) { + // Remove inline onclick handler if present + closeIcon.onclick = null; + closeIcon.removeAttribute('onclick'); + + // Add new custom handler + closeIcon.addEventListener('click', function(e) { + e.preventDefault(); + e.stopPropagation(); + + if (input.value.trim().length > 0) { + // Clear input + input.value = ''; + input.focus(); + // Trigger input event to update UI + input.dispatchEvent(new Event('input')); + } else { + // Close search + window.toggleSearchMode(false); + } + }); + } + input.addEventListener('input', function() { var query = this.value.trim().toLowerCase(); + var inputGroup = this.closest('.search-input-group'); + + // Toggle has-value class + if (this.value.length > 0) { + inputGroup.classList.add('has-value'); + } else { + inputGroup.classList.remove('has-value'); + } if (query.length === 0) { resultsContainer.classList.remove('show'); @@ -156,10 +201,11 @@ function initInlineSearch() { if (results.length > 0) { var html = results.slice(0, 5).map(function(item) { return ` - + ${item.title} -+ `; @@ -173,7 +219,7 @@ function initInlineSearch() { window.pjax.refresh(resultsContainer); } } else { - resultsContainer.innerHTML = '无搜索结果'; + resultsContainer.innerHTML = '暂无相关内容'; resultsContainer.classList.add('show'); } }); diff --git a/themes/Ying/assets/js/modules/utils.js b/themes/Ying/assets/js/modules/utils.js index fac84034..153a4d1b 100644 --- a/themes/Ying/assets/js/modules/utils.js +++ b/themes/Ying/assets/js/modules/utils.js @@ -6,3 +6,173 @@ window.isMobile = function() { return false; // PC端 } }; + +// Toast Message Helper +window.showToast = function(text) { + if (typeof Qmsg !== 'undefined') { + Qmsg.info(text); + } else { + // Fallback custom toast + let toast = document.querySelector('.custom-toast'); + if (!toast) { + toast = document.createElement('div'); + toast.className = 'custom-toast'; + toast.style.cssText = ` + position: fixed; + top: 20px; + left: 50%; + transform: translateX(-50%); + background: rgba(0,0,0,0.8); + color: white; + padding: 8px 16px; + border-radius: 4px; + z-index: 9999; + font-size: 14px; + opacity: 0; + transition: opacity 0.3s; + pointer-events: none; + `; + document.body.appendChild(toast); + } + toast.innerText = text; + toast.style.opacity = '1'; + + if (window.toastTimeout) clearTimeout(window.toastTimeout); + window.toastTimeout = setTimeout(() => { + toast.style.opacity = '0'; + }, 2000); + } +}; + +// Theme Toggle Logic +window.initThemeToggle = function() { + const avatar = document.getElementById('theme-toggle-avatar'); + if (!avatar) return; + + // Remove existing listeners to avoid duplicates (if any) + const newAvatar = avatar.cloneNode(true); + avatar.parentNode.replaceChild(newAvatar, avatar); + + newAvatar.addEventListener('click', function(e) { + // Prevent if clicking on something interactive inside (unlikely for avatar) + e.preventDefault(); + + const html = document.documentElement; + const currentTheme = html.getAttribute('data-theme'); + const newTheme = currentTheme === 'dark' ? 'light' : 'dark'; + + html.setAttribute('data-theme', newTheme); + localStorage.setItem('theme', newTheme); + + window.showToast('已切换至 ' + (newTheme === 'dark' ? '深色' : '浅色') + '模式'); + + // Trigger generic resize event to force charts/etc to redraw if needed + window.dispatchEvent(new Event('resize')); + }); +}; + +// Code Folding Logic +window.initCodeFold = function() { + const codeBlocks = document.querySelectorAll('.highlight'); + codeBlocks.forEach(block => { + // Check height (approx 300px) + if (block.offsetHeight > 360) { + // Check if already processed + if (block.parentNode.classList.contains('code-fold-container')) return; + + // Wrap + const wrapper = document.createElement('div'); + wrapper.className = 'code-fold-container collapsed'; + block.parentNode.insertBefore(wrapper, block); + wrapper.appendChild(block); + + // Add Button + const btn = document.createElement('button'); + btn.className = 'code-expand-btn'; + btn.innerHTML = ' 展开代码 / Expand'; + btn.onclick = function() { + wrapper.classList.remove('collapsed'); + // Hide button after expand, or change to collapse? + // Usually just expand is enough. + btn.style.display = 'none'; + }; + wrapper.appendChild(btn); + } + }); +}; + +// Code Copy Logic +window.initCodeCopy = function() { + // Target pre tags that contain code, or .highlight containers + const codeBlocks = document.querySelectorAll('pre'); + + codeBlocks.forEach(pre => { + // Avoid double init + if (pre.parentNode.querySelector('.copy-code-btn')) return; + if (pre.querySelector('.copy-code-btn')) return; + + // Check if it's inside a highlight block (Hugo usually does .highlight > pre) + // We attach button to the pre or the highlight container? + // Attaching to pre is safer for positioning. + + const btn = document.createElement('button'); + btn.className = 'copy-code-btn'; + btn.innerHTML = ''; + btn.title = "复制代码 / Copy Code"; + btn.style.cssText = ` + position: absolute; + top: 5px; + right: 5px; + background: transparent; + border: none; + color: #888; + cursor: pointer; + padding: 5px; + border-radius: 4px; + transition: all 0.2s; + opacity: 0; + z-index: 10; + `; + + // Show on hover + pre.addEventListener('mouseenter', () => btn.style.opacity = '1'); + pre.addEventListener('mouseleave', () => btn.style.opacity = '0'); + + // Handle touch devices + if (window.isMobile()) { + btn.style.opacity = '1'; + } + + btn.addEventListener('click', (e) => { + e.stopPropagation(); + const code = pre.querySelector('code') ? pre.querySelector('code').innerText : pre.innerText; + + if (navigator.clipboard) { + navigator.clipboard.writeText(code).then(() => { + window.showToast('代码已复制 / Copied!'); + btn.innerHTML = ''; + setTimeout(() => btn.innerHTML = '', 2000); + }).catch(err => { + console.error('Copy failed', err); + window.showToast('复制失败 / Failed'); + }); + } else { + // Fallback + const textarea = document.createElement('textarea'); + textarea.value = code; + document.body.appendChild(textarea); + textarea.select(); + document.execCommand('copy'); + document.body.removeChild(textarea); + window.showToast('代码已复制 / Copied!'); + } + }); + + // Ensure relative positioning + if (getComputedStyle(pre).position === 'static') { + pre.style.position = 'relative'; + } + + pre.appendChild(btn); + }); +}; diff --git a/themes/Ying/assets/js/mypjax.js b/themes/Ying/assets/js/mypjax.js index 67786787..b5dba738 100644 --- a/themes/Ying/assets/js/mypjax.js +++ b/themes/Ying/assets/js/mypjax.js @@ -94,6 +94,11 @@ document.addEventListener("pjax:complete", function () { // 初始化代码折叠 if (typeof initCodeFold === 'function') initCodeFold(); + // 初始化段落评论 + if (typeof window.initParagraphComments === 'function') { + window.initParagraphComments(); + } + // 初始化友链状态 if (typeof window.initLinkStatus === 'function') { window.initLinkStatus(); diff --git a/themes/Ying/layouts/_default/_markup/render-image.html b/themes/Ying/layouts/_default/_markup/render-image.html index f77d3c77..6d144e2f 100644 --- a/themes/Ying/layouts/_default/_markup/render-image.html +++ b/themes/Ying/layouts/_default/_markup/render-image.html @@ -7,4 +7,4 @@ {{- $src = $src | relURL -}} {{- end -}} {{- end -}} -\ No newline at end of file +
\ No newline at end of file diff --git a/themes/Ying/layouts/_default/circles.html b/themes/Ying/layouts/_default/circles.html index cfd6c347..504daaf9 100644 --- a/themes/Ying/layouts/_default/circles.html +++ b/themes/Ying/layouts/_default/circles.html @@ -39,9 +39,9 @@ height: 160px; justify-content: space-between; background: rgba(255, 255, 255, 0.4); - /* Removed backdrop-filter for performance */ - /* backdrop-filter: blur(16px) saturate(180%); */ - /* -webkit-backdrop-filter: blur(16px) saturate(180%); */ + /* Enhanced Glassmorphism for non-mobile */ + backdrop-filter: blur(12px) saturate(120%); + -webkit-backdrop-filter: blur(12px) saturate(120%); border: 1px solid #111827; box-shadow: none; transition: @@ -55,6 +55,18 @@ overflow: hidden; /* 防止背景图溢出 */ } + /* Mobile Optimization: Remove expensive effects */ + @media (max-width: 767px) { + .fc-item { + backdrop-filter: none !important; + -webkit-backdrop-filter: none !important; + background: rgba(255, 255, 255, 0.8); /* Higher opacity fallback */ + } + [data-theme="dark"] .fc-item { + background: rgba(30, 30, 30, 0.8); + } + } + .friend-circle-list a { text-decoration: none; } diff --git a/themes/Ying/layouts/partials/artalk.html b/themes/Ying/layouts/partials/artalk.html index defc61bb..fcfcd38b 100644 --- a/themes/Ying/layouts/partials/artalk.html +++ b/themes/Ying/layouts/partials/artalk.html @@ -4,6 +4,17 @@ .atk-loading{ background: #FFFFFF; } + .atk-loading-editor-box { + margin-bottom: 30px; + border: 1px solid var(--frame-color); + border-radius: 4px; + padding: 10px; + background: #fff; + } + [data-theme="dark"] .atk-loading-editor-box { + border-color: var(--frame-dark-color); + background: transparent; + } /*对artalk评论暗夜模式进行微调*/ @media (prefers-color-scheme: dark) { .atk-pinned-badge { @@ -20,6 +31,21 @@
+ +++ ++ + + ++ ++ + ++@@ -45,6 +71,7 @@ el: '#Comments', server: '{{ .Site.Params.artalk.server }}', site: '{{ .Site.Params.artalk.site }}', + aiBadge: '{{ .Site.Params.artalk.ai_badge | default "AI" }}', pageKey: '{{ .RelPermalink }}', emoticons: '{{ .Site.Params.artalk.emoticons | relURL }}', aiComment: {{ if .Params.ai_comment }} diff --git a/themes/Ying/layouts/partials/footer.html b/themes/Ying/layouts/partials/footer.html index 6f643e80..3d15f65c 100644 --- a/themes/Ying/layouts/partials/footer.html +++ b/themes/Ying/layouts/partials/footer.html @@ -66,10 +66,11 @@ {{ $loader := resources.Get "js/modules/loader.js" }} {{ $search := resources.Get "js/modules/search.js" }} {{ $floatingTools := resources.Get "js/modules/floating-tools.js" }} +{{ $paragraphComments := resources.Get "js/modules/paragraph-comments.js" }} {{ $artalkModule := resources.Get "js/modules/artalk.js" }} {{ $pjaxLib := resources.Get "js/pjax.js" }} -{{ $scripts := slice $iconfont $lightgallery $uikit $easylazyload $viewimage $artalk $barrage $utils $loader $search $floatingTools $artalkModule $nprogress $pjaxLib $main $mypjax $message $echarts $tiaozhuan | resources.Concat "js/bundle.js" | resources.Minify | resources.Fingerprint }} +{{ $scripts := slice $iconfont $lightgallery $uikit $easylazyload $viewimage $artalk $barrage $utils $loader $search $floatingTools $paragraphComments $artalkModule $nprogress $pjaxLib $main $mypjax $message $echarts $tiaozhuan | resources.Concat "js/bundle.js" | resources.Minify | resources.Fingerprint }}