mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-18 04:06:05 +02:00
feat: add multilingual theme introduction posts
- Added localized Retypeset theme introduction posts for multiple languages - Included posts in English, Spanish, Russian, Japanese, Chinese (Simplified and Traditional) - Standardized post structure with consistent metadata and content - Updated content configuration to support multilingual post entries
This commit is contained in:
parent
e43036ae3a
commit
d72ec58837
24 changed files with 425 additions and 669 deletions
|
@ -1,10 +1,8 @@
|
|||
<script>
|
||||
import { OverlayScrollbars } from 'overlayscrollbars'
|
||||
|
||||
// Store scrollbar instance for later use
|
||||
let scrollbarsInstance: ReturnType<typeof OverlayScrollbars> | null = null
|
||||
|
||||
// Initialize custom scrollbar with theme support
|
||||
function initScrollbar() {
|
||||
const bodyElement = document.body
|
||||
if (!bodyElement.hasAttribute('data-scrollbar-initialized')) {
|
||||
|
@ -25,7 +23,7 @@ function initScrollbar() {
|
|||
}
|
||||
}
|
||||
|
||||
// Handle theme changes and update scrollbar appearance
|
||||
// Automatically update scrollbar theme
|
||||
document.addEventListener('theme-changed', () => {
|
||||
scrollbarsInstance?.options({
|
||||
scrollbars: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue