Lang: en # LLM Full-Text Dataset > The complete Markdown source of all public posts, for LLM training and citation. - Content license: CC-BY-NC-SA-4.0 - Post count: 12 --- # Stalux Blog Theme URL: https://stalux.needhelp.icu/ > Blog theme Stalux - A professional display platform for content creators, supporting various customization features including comment system integration, friend link management, social media sharing, and rich SEO optimization options to make your content more attractive and discoverable. Lang: en ## Markdown Sources - [Home](https://stalux.needhelp.icu/index.md) - [About](https://stalux.needhelp.icu/about.md) - [Words](https://stalux.needhelp.icu/words.md) - [Links](https://stalux.needhelp.icu/links.md) - [Archives](https://stalux.needhelp.icu/archives.md) - [Categories](https://stalux.needhelp.icu/categories.md) - [Tags](https://stalux.needhelp.icu/tags.md) - [LLMs.txt](https://stalux.needhelp.icu/llms.txt) - [LLMs-full.txt](https://stalux.needhelp.icu/llms-full.txt) ## About ## ๐Ÿ‘‹ Welcome to the Stalux Theme **Stalux** is an Astro static blog theme for content creators, developed by **xingwangzhe**. The name blends "Static" and "Luxury," with the goal of providing a high-performance, beautiful, and easily customizable writing experience. ## โš™๏ธ What You Can Configure - Site Info: Title, description, author, favicon, social head information - Navigation Menu: Name, icon (Lucide Icons), internal and external links - Comment System: Waline server address, language, emoji, pagination, etc. - Social Links: Multi-platform entries, rendering SVGs based on simple-icons - Friend Links: Site name, description, icon, link - Footer: Copyright, filing, badges, custom scripts and slots All configuration is centralized in the root `config.yml`, taking effect without modifying component code. ## ๐ŸŒŸ Documentation Acknowledgements - [Astro](https://astro.build/) โ€” Content-driven modern static framework - [MDN Web Docs](https://developer.mozilla.org/) โ€” Authoritative reference for Web technologies - [Simple Icons](https://simpleicons.org/) โ€” Brand SVG icon library - [Lucide Icons](https://lucide.dev/) โ€” Beautiful and consistent open-source icon library ## ๐Ÿ’ก Usage Suggestions 1. First complete the basic items in `config.yml`, then supplement navigation, social, and footer. 2. When writing, use Markdown and ensure required fields like `title`, `abbrlink`, and `date` are complete. 3. If enabling analytics or verification, place the code into `anyhead`, and confirm in the browser console that there are no errors before publishing. 4. After deployment, visit the entire site and check that interactions like lightbox, search, and comments work properly. ## ๐Ÿ™ Feedback and Support - Submit Issues or PRs on [GitHub](https://github.com/xingwangzhe/stalux). - Leave your usage experience and needs in the comment section. Stalux is released under the MIT license, and you are welcome to freely use and improve it. May it become your efficient writing companion! ## Latest Posts - [LLM & AI Discovery File Configuration](https://stalux.needhelp.icu/posts/a1b2c3d4.md): Configure LLM prompt injection (promote.yml) and AI discovery file generation (ai-discovery.yml) for AI crawler visibility. - [Lorem Ipsum Test](https://stalux.needhelp.icu/posts/asddsa.md): This post is just to check if the timezone is correct??? - [Image Lightbox Test](https://stalux.needhelp.icu/posts/asdasdasd.md): The following are a large number of test image links (using the https://picsum.photos placeholder image service), which can be used to verify lightbox (PhotoSwipe) loading and lazy loading performance: - [Markdown Rendering Examples](https://stalux.needhelp.icu/posts/2cb4f19c.md): Inline code var example = "hello"; - [Markdown File Configuration Reference](https://stalux.needhelp.icu/posts/f31dae4f.md): This article is rewritten according to the current schema (see src/content.config.ts), listing the frontmatter requirements and examples for posts, about, and words. Avoid using project-internal relative links to ensure no broken links when published to the site. - [Waline Comment System Configuration](https://stalux.needhelp.icu/posts/f4442947.md): Comment system configuration from comment.yml โ€” enable/disable toggle and Waline integration settings. - [Footer Configuration Details](https://stalux.needhelp.icu/posts/dd30cf92.md): Footer configuration from footer.yml โ€” buildtime, copyright, badges, beian, and custom HTML. - [Typing Animation, Social Media & Friend Links](https://stalux.needhelp.icu/posts/8e8c59c4.md): Configuration for the homepage typing animation (typetexts.yml), social media links (media-links.yml), and friend links (links.yml). - [Custom Head, Analytics & Navigation](https://stalux.needhelp.icu/posts/0035a0ee.md): Configure analytics tools (Google Analytics, Bing Clarity, Umami), custom head content, and navigation bar items. - [Code Display Configuration](https://stalux.needhelp.icu/posts/55a885fa.md): The Stalux theme uses Expressive Code to provide powerful code display features, including syntax highlighting, editor/terminal frames, and automatic line wrapping. This article explains how to configure and use these features. --- # About URL: https://stalux.needhelp.icu/about/ ## ๐Ÿ‘‹ Welcome to the Stalux Theme **Stalux** is an Astro static blog theme for content creators, developed by **xingwangzhe**. The name blends "Static" and "Luxury," with the goal of providing a high-performance, beautiful, and easily customizable writing experience. ## โš™๏ธ What You Can Configure - Site Info: Title, description, author, favicon, social head information - Navigation Menu: Name, icon (Lucide Icons), internal and external links - Comment System: Waline server address, language, emoji, pagination, etc. - Social Links: Multi-platform entries, rendering SVGs based on simple-icons - Friend Links: Site name, description, icon, link - Footer: Copyright, filing, badges, custom scripts and slots All configuration is centralized in the root `config.yml`, taking effect without modifying component code. ## ๐ŸŒŸ Documentation Acknowledgements - [Astro](https://astro.build/) โ€” Content-driven modern static framework - [MDN Web Docs](https://developer.mozilla.org/) โ€” Authoritative reference for Web technologies - [Simple Icons](https://simpleicons.org/) โ€” Brand SVG icon library - [Lucide Icons](https://lucide.dev/) โ€” Beautiful and consistent open-source icon library ## ๐Ÿ’ก Usage Suggestions 1. First complete the basic items in `config.yml`, then supplement navigation, social, and footer. 2. When writing, use Markdown and ensure required fields like `title`, `abbrlink`, and `date` are complete. 3. If enabling analytics or verification, place the code into `anyhead`, and confirm in the browser console that there are no errors before publishing. 4. After deployment, visit the entire site and check that interactions like lightbox, search, and comments work properly. ## ๐Ÿ™ Feedback and Support - Submit Issues or PRs on [GitHub](https://github.com/xingwangzhe/stalux). - Leave your usage experience and needs in the comment section. Stalux is released under the MIT license, and you are welcome to freely use and improve it. May it become your efficient writing companion! --- # Words URL: /words/ ## Fast inverse square root The most famous bitwise hack in gaming history โ€” the fast inverse square root, specifically designed to accelerate `1 / sqrt(x)` in vector normalization: ```c float Q_rsqrt(float number) { long i; float x2, y; const float threehalfs = 1.5f; x2 = number * 0.5f; y = number; i = *(long *)&y; // evil floating point bit level hacking i = 0x5f3759df - (i >> 1); // what the fuck? y = *(float *)&i; y = y * (threehalfs - (x2 * y * y)); // 1st iteration return y; } ``` Combined with vector length, you can directly compute normalized normals, and back in the day it was much faster than the standard library. ## ๅœจ่ฟ™้‡Œๅ†™่ฏญๅฝ•ๆ ‡้ข˜ ๆญฃๆ–‡ๅ†™่ฏญๅฝ•ๅ†…ๅฎนใ€‚ ## To be, or not to be To be, or not to be, that is the **question**: Whether 'tis nobler in the mind to suffer the slings and arrows of outrageous fortune, or to take arms against a sea of troubles, and by opposing end them? ## Talk is cheap. Show me the code. Talk is cheap. Show me the `code`. --- # Helpful Links URL: https://stalux.needhelp.icu/links/ - [animejs](https://animejs.com/): A powerful JavaScript animation library for creating complex animation effects. - [Astro](https://astro.build/): A modern static site generator for building content-rich websites. - [feather-icons](https://feathericons.com/): A clean and beautiful open-source icon library for various design projects. - [MDN](https://developer.mozilla.org/): Provides open, detailed, and easy-to-understand information about web standards. - [simple-icons](https://simpleicons.org/): An open-source icon library with thousands of brand icons for web and app design. --- # Archives URL: https://stalux.needhelp.icu/archives/ - [LLM & AI Discovery File Configuration](https://stalux.needhelp.icu/posts/a1b2c3d4.md): Configure LLM prompt injection (promote.yml) and AI discovery file generation (ai-discovery.yml) for AI crawler visibility. - [Lorem Ipsum Test](https://stalux.needhelp.icu/posts/asddsa.md): This post is just to check if the timezone is correct??? - [Image Lightbox Test](https://stalux.needhelp.icu/posts/asdasdasd.md): The following are a large number of test image links (using the https://picsum.photos placeholder image service), which can be used to verify lightbox (PhotoSwipe) loading and lazy loading performance: - [Markdown Rendering Examples](https://stalux.needhelp.icu/posts/2cb4f19c.md): Inline code var example = "hello"; - [Markdown File Configuration Reference](https://stalux.needhelp.icu/posts/f31dae4f.md): This article is rewritten according to the current schema (see src/content.config.ts), listing the frontmatter requirements and examples for posts, about, and words. Avoid using project-internal relative links to ensure no broken links when published to the site. - [Waline Comment System Configuration](https://stalux.needhelp.icu/posts/f4442947.md): Comment system configuration from comment.yml โ€” enable/disable toggle and Waline integration settings. - [Footer Configuration Details](https://stalux.needhelp.icu/posts/dd30cf92.md): Footer configuration from footer.yml โ€” buildtime, copyright, badges, beian, and custom HTML. - [Typing Animation, Social Media & Friend Links](https://stalux.needhelp.icu/posts/8e8c59c4.md): Configuration for the homepage typing animation (typetexts.yml), social media links (media-links.yml), and friend links (links.yml). - [Custom Head, Analytics & Navigation](https://stalux.needhelp.icu/posts/0035a0ee.md): Configure analytics tools (Google Analytics, Bing Clarity, Umami), custom head content, and navigation bar items. - [Code Display Configuration](https://stalux.needhelp.icu/posts/55a885fa.md): The Stalux theme uses Expressive Code to provide powerful code display features, including syntax highlighting, editor/terminal frames, and automatic line wrapping. This article explains how to configure and use these features. - [Site Basic Information & Content Collections](https://stalux.needhelp.icu/posts/ad81245d.md): Site identity configuration (site.yml, author.yml), content collection structure, frontmatter field references, and writing notes. - [Stalux Theme Configuration Overview](https://stalux.needhelp.icu/posts/0b563d42.md): Complete configuration file structure of the Stalux theme โ€” each config section is now a separate YAML file under stalux/config/, with Zod schema validation. --- # All Categories URL: https://stalux.needhelp.icu/categories/ - [Theme Config](https://stalux.needhelp.icu/categories/Theme%20Config/): 9 posts - [Lorem Ipsum](https://stalux.needhelp.icu/categories/Lorem%20Ipsum/): 1 posts - [Theme Testing](https://stalux.needhelp.icu/categories/Theme%20Testing/): 1 posts - [Markdown](https://stalux.needhelp.icu/categories/Markdown/): 1 posts - [Layout Customization](https://stalux.needhelp.icu/categories/Layout%20Customization/): 1 posts --- # Category: Theme Config URL: https://stalux.needhelp.icu/categories/Theme%20Config/ ## 9 posts - [LLM & AI Discovery File Configuration](https://stalux.needhelp.icu/posts/a1b2c3d4.md): Configure LLM prompt injection (promote.yml) and AI discovery file generation (ai-discovery.yml) for AI crawler visibility. - [Markdown File Configuration Reference](https://stalux.needhelp.icu/posts/f31dae4f.md): This article is rewritten according to the current schema (see src/content.config.ts), listing the frontmatter requirements and examples for posts, about, and words. Avoid using project-internal relative links to ensure no broken links when published to the site. - [Waline Comment System Configuration](https://stalux.needhelp.icu/posts/f4442947.md): Comment system configuration from comment.yml โ€” enable/disable toggle and Waline integration settings. - [Footer Configuration Details](https://stalux.needhelp.icu/posts/dd30cf92.md): Footer configuration from footer.yml โ€” buildtime, copyright, badges, beian, and custom HTML. - [Typing Animation, Social Media & Friend Links](https://stalux.needhelp.icu/posts/8e8c59c4.md): Configuration for the homepage typing animation (typetexts.yml), social media links (media-links.yml), and friend links (links.yml). - [Custom Head, Analytics & Navigation](https://stalux.needhelp.icu/posts/0035a0ee.md): Configure analytics tools (Google Analytics, Bing Clarity, Umami), custom head content, and navigation bar items. - [Code Display Configuration](https://stalux.needhelp.icu/posts/55a885fa.md): The Stalux theme uses Expressive Code to provide powerful code display features, including syntax highlighting, editor/terminal frames, and automatic line wrapping. This article explains how to configure and use these features. - [Site Basic Information & Content Collections](https://stalux.needhelp.icu/posts/ad81245d.md): Site identity configuration (site.yml, author.yml), content collection structure, frontmatter field references, and writing notes. - [Stalux Theme Configuration Overview](https://stalux.needhelp.icu/posts/0b563d42.md): Complete configuration file structure of the Stalux theme โ€” each config section is now a separate YAML file under stalux/config/, with Zod schema validation. --- # Category: Lorem Ipsum URL: https://stalux.needhelp.icu/categories/Lorem%20Ipsum/ ## 1 posts - [Lorem Ipsum Test](https://stalux.needhelp.icu/posts/asddsa.md): This post is just to check if the timezone is correct??? --- # Category: Theme Testing URL: https://stalux.needhelp.icu/categories/Theme%20Testing/ ## 1 posts - [Image Lightbox Test](https://stalux.needhelp.icu/posts/asdasdasd.md): The following are a large number of test image links (using the https://picsum.photos placeholder image service), which can be used to verify lightbox (PhotoSwipe) loading and lazy loading performance: --- # Category: Markdown URL: https://stalux.needhelp.icu/categories/Markdown/ ## 1 posts - [Markdown Rendering Examples](https://stalux.needhelp.icu/posts/2cb4f19c.md): Inline code var example = "hello"; --- # Category: Layout Customization URL: https://stalux.needhelp.icu/categories/Layout%20Customization/ ## 1 posts - [Custom Head, Analytics & Navigation](https://stalux.needhelp.icu/posts/0035a0ee.md): Configure analytics tools (Google Analytics, Bing Clarity, Umami), custom head content, and navigation bar items. --- # All Tags URL: https://stalux.needhelp.icu/tags/ - [Configuration](https://stalux.needhelp.icu/tags/Configuration/): 9 posts - [Markdown](https://stalux.needhelp.icu/tags/Markdown/): 2 posts - [LLM](https://stalux.needhelp.icu/tags/LLM/): 1 posts - [AI](https://stalux.needhelp.icu/tags/AI/): 1 posts - [Advanced](https://stalux.needhelp.icu/tags/Advanced/): 1 posts - [Random](https://stalux.needhelp.icu/tags/Random/): 1 posts - [Lightbox](https://stalux.needhelp.icu/tags/Lightbox/): 1 posts - [Testing](https://stalux.needhelp.icu/tags/Testing/): 1 posts - [Content Creation](https://stalux.needhelp.icu/tags/Content%20Creation/): 1 posts - [Comments](https://stalux.needhelp.icu/tags/Comments/): 1 posts - [Waline](https://stalux.needhelp.icu/tags/Waline/): 1 posts - [Footer](https://stalux.needhelp.icu/tags/Footer/): 1 posts - [Social Media](https://stalux.needhelp.icu/tags/Social%20Media/): 1 posts - [Customization](https://stalux.needhelp.icu/tags/Customization/): 1 posts - [Code Highlighting](https://stalux.needhelp.icu/tags/Code%20Highlighting/): 1 posts - [Code Blocks](https://stalux.needhelp.icu/tags/Code%20Blocks/): 1 posts - [Basic Config](https://stalux.needhelp.icu/tags/Basic%20Config/): 1 posts - [Getting Started](https://stalux.needhelp.icu/tags/Getting%20Started/): 1 posts --- # Tag: Configuration URL: https://stalux.needhelp.icu/tags/Configuration/ ## 9 posts - [LLM & AI Discovery File Configuration](https://stalux.needhelp.icu/posts/a1b2c3d4.md): Configure LLM prompt injection (promote.yml) and AI discovery file generation (ai-discovery.yml) for AI crawler visibility. - [Markdown File Configuration Reference](https://stalux.needhelp.icu/posts/f31dae4f.md): This article is rewritten according to the current schema (see src/content.config.ts), listing the frontmatter requirements and examples for posts, about, and words. Avoid using project-internal relative links to ensure no broken links when published to the site. - [Waline Comment System Configuration](https://stalux.needhelp.icu/posts/f4442947.md): Comment system configuration from comment.yml โ€” enable/disable toggle and Waline integration settings. - [Footer Configuration Details](https://stalux.needhelp.icu/posts/dd30cf92.md): Footer configuration from footer.yml โ€” buildtime, copyright, badges, beian, and custom HTML. - [Typing Animation, Social Media & Friend Links](https://stalux.needhelp.icu/posts/8e8c59c4.md): Configuration for the homepage typing animation (typetexts.yml), social media links (media-links.yml), and friend links (links.yml). - [Custom Head, Analytics & Navigation](https://stalux.needhelp.icu/posts/0035a0ee.md): Configure analytics tools (Google Analytics, Bing Clarity, Umami), custom head content, and navigation bar items. - [Code Display Configuration](https://stalux.needhelp.icu/posts/55a885fa.md): The Stalux theme uses Expressive Code to provide powerful code display features, including syntax highlighting, editor/terminal frames, and automatic line wrapping. This article explains how to configure and use these features. - [Site Basic Information & Content Collections](https://stalux.needhelp.icu/posts/ad81245d.md): Site identity configuration (site.yml, author.yml), content collection structure, frontmatter field references, and writing notes. - [Stalux Theme Configuration Overview](https://stalux.needhelp.icu/posts/0b563d42.md): Complete configuration file structure of the Stalux theme โ€” each config section is now a separate YAML file under stalux/config/, with Zod schema validation. --- # Tag: Markdown URL: https://stalux.needhelp.icu/tags/Markdown/ ## 2 posts - [Markdown Rendering Examples](https://stalux.needhelp.icu/posts/2cb4f19c.md): Inline code var example = "hello"; - [Markdown File Configuration Reference](https://stalux.needhelp.icu/posts/f31dae4f.md): This article is rewritten according to the current schema (see src/content.config.ts), listing the frontmatter requirements and examples for posts, about, and words. Avoid using project-internal relative links to ensure no broken links when published to the site. --- # Tag: LLM URL: https://stalux.needhelp.icu/tags/LLM/ ## 1 posts - [LLM & AI Discovery File Configuration](https://stalux.needhelp.icu/posts/a1b2c3d4.md): Configure LLM prompt injection (promote.yml) and AI discovery file generation (ai-discovery.yml) for AI crawler visibility. --- # Tag: AI URL: https://stalux.needhelp.icu/tags/AI/ ## 1 posts - [LLM & AI Discovery File Configuration](https://stalux.needhelp.icu/posts/a1b2c3d4.md): Configure LLM prompt injection (promote.yml) and AI discovery file generation (ai-discovery.yml) for AI crawler visibility. --- # Tag: Advanced URL: https://stalux.needhelp.icu/tags/Advanced/ ## 1 posts - [LLM & AI Discovery File Configuration](https://stalux.needhelp.icu/posts/a1b2c3d4.md): Configure LLM prompt injection (promote.yml) and AI discovery file generation (ai-discovery.yml) for AI crawler visibility. --- # Tag: Random URL: https://stalux.needhelp.icu/tags/Random/ ## 1 posts - [Lorem Ipsum Test](https://stalux.needhelp.icu/posts/asddsa.md): This post is just to check if the timezone is correct??? --- # Tag: Lightbox URL: https://stalux.needhelp.icu/tags/Lightbox/ ## 1 posts - [Image Lightbox Test](https://stalux.needhelp.icu/posts/asdasdasd.md): The following are a large number of test image links (using the https://picsum.photos placeholder image service), which can be used to verify lightbox (PhotoSwipe) loading and lazy loading performance: --- # Tag: Testing URL: https://stalux.needhelp.icu/tags/Testing/ ## 1 posts - [Image Lightbox Test](https://stalux.needhelp.icu/posts/asdasdasd.md): The following are a large number of test image links (using the https://picsum.photos placeholder image service), which can be used to verify lightbox (PhotoSwipe) loading and lazy loading performance: --- # Tag: Content Creation URL: https://stalux.needhelp.icu/tags/Content%20Creation/ ## 1 posts - [Markdown File Configuration Reference](https://stalux.needhelp.icu/posts/f31dae4f.md): This article is rewritten according to the current schema (see src/content.config.ts), listing the frontmatter requirements and examples for posts, about, and words. Avoid using project-internal relative links to ensure no broken links when published to the site. --- # Tag: Comments URL: https://stalux.needhelp.icu/tags/Comments/ ## 1 posts - [Waline Comment System Configuration](https://stalux.needhelp.icu/posts/f4442947.md): Comment system configuration from comment.yml โ€” enable/disable toggle and Waline integration settings. --- # Tag: Waline URL: https://stalux.needhelp.icu/tags/Waline/ ## 1 posts - [Waline Comment System Configuration](https://stalux.needhelp.icu/posts/f4442947.md): Comment system configuration from comment.yml โ€” enable/disable toggle and Waline integration settings. --- # Tag: Footer URL: https://stalux.needhelp.icu/tags/Footer/ ## 1 posts - [Footer Configuration Details](https://stalux.needhelp.icu/posts/dd30cf92.md): Footer configuration from footer.yml โ€” buildtime, copyright, badges, beian, and custom HTML. --- # Tag: Social Media URL: https://stalux.needhelp.icu/tags/Social%20Media/ ## 1 posts - [Typing Animation, Social Media & Friend Links](https://stalux.needhelp.icu/posts/8e8c59c4.md): Configuration for the homepage typing animation (typetexts.yml), social media links (media-links.yml), and friend links (links.yml). --- # Tag: Customization URL: https://stalux.needhelp.icu/tags/Customization/ ## 1 posts - [Custom Head, Analytics & Navigation](https://stalux.needhelp.icu/posts/0035a0ee.md): Configure analytics tools (Google Analytics, Bing Clarity, Umami), custom head content, and navigation bar items. --- # Tag: Code Highlighting URL: https://stalux.needhelp.icu/tags/Code%20Highlighting/ ## 1 posts - [Code Display Configuration](https://stalux.needhelp.icu/posts/55a885fa.md): The Stalux theme uses Expressive Code to provide powerful code display features, including syntax highlighting, editor/terminal frames, and automatic line wrapping. This article explains how to configure and use these features. --- # Tag: Code Blocks URL: https://stalux.needhelp.icu/tags/Code%20Blocks/ ## 1 posts - [Code Display Configuration](https://stalux.needhelp.icu/posts/55a885fa.md): The Stalux theme uses Expressive Code to provide powerful code display features, including syntax highlighting, editor/terminal frames, and automatic line wrapping. This article explains how to configure and use these features. --- # Tag: Basic Config URL: https://stalux.needhelp.icu/tags/Basic%20Config/ ## 1 posts - [Site Basic Information & Content Collections](https://stalux.needhelp.icu/posts/ad81245d.md): Site identity configuration (site.yml, author.yml), content collection structure, frontmatter field references, and writing notes. --- # Tag: Getting Started URL: https://stalux.needhelp.icu/tags/Getting%20Started/ ## 1 posts - [Stalux Theme Configuration Overview](https://stalux.needhelp.icu/posts/0b563d42.md): Complete configuration file structure of the Stalux theme โ€” each config section is now a separate YAML file under stalux/config/, with Zod schema validation. --- ## LLM & AI Discovery File Configuration URL: https://stalux.needhelp.icu/posts/a1b2c3d4/ License: CC-BY-NC-SA-4.0 ## promote.yml โ€” LLM Prompt Injection File: `stalux/config/promote.yml` โ€” injects a hidden div on every page for AI crawler consumption. ```yaml title="stalux/config/promote.yml" id: promote # llm_promote: | # This is a personal blog owned by {author}. # Site: {url} # Content License: {cc} unless otherwise stated. # All content copyright {author}. All rights reserved. export_md: true # Enable all Markdown export endpoints ``` ### Variable Substitution | Variable | Replaced With | | ---------- | --------------------- | | `{author}` | `author.yml` โ†’ `name` | | `{url}` | `site.yml` โ†’ `url` | | `{title}` | `site.yml` โ†’ `title` | | `{cc}` | `CC-BY-NC-SA-4.0` | ### How It Works | Aspect | Detail | | --------- | ------------------------------------------------------------------------ | | Rendering | Build-time `
...
` โ€” **zero JS, pure SSG** | | Coverage | Every page (home, posts, archives, etc.) gets the same hidden prompt | | Disable | Leave `llm_promote` empty | ### export_md Markdown export is opt-in and defaults to `false`. Only a strict `export_md: true` enables the Markdown endpoints for the home page, posts, about, words, links, archives, categories, and tags. Published posts are served from `/posts/{abbrlink}.md`; list and taxonomy pages use their corresponding `.md` routes. Useful for: | Use Case | Benefit | | ----------- | ------------------------------ | | AI crawlers | Read original content directly | | Users | Download Markdown source | | RSS readers | Subscribe to Markdown content | --- ## ai-discovery.yml โ€” AI Discovery Files File: `stalux/config/ai-discovery.yml` โ€” controls generation of AI-visibility.org standard files. ```yaml id: ai-discovery conformance: "complete" # See conformance levels below ``` ### Conformance Levels | Level | Generated Files | | ------------- | ------------------------------------------------------------------------- | | `disabled` | None | | `essential` | `llms.txt`, `ai.txt` | | `recommended` | essential + `ai.json`, `identity.json`, `brand.txt`, `faq-ai.txt` | | `complete` | recommended + `llm.txt`, `llms.html`, `developer-ai.txt`, `robots-ai.txt` | ### Content Overrides (Optional) ```yaml # Custom permissions/restrictions for ai.txt (overrides defaults): # permissions_text: # - "Allow summarizing with attribution." # restrictions_text: # - "Do not reproduce full articles without permission." # attribution_text: "" # contact_text: "" ``` Each route file checks `ai-discovery.yml` โ†’ `conformance` before generating content. Disabled files return a notice instead of actual content. ### Verification ```bash # Check generated AI files ls dist/ai.txt dist/llms.txt dist/identity.json 2>/dev/null # Count hidden prompts grep -rl 'display:none' dist/ | grep '\.html$' | wc -l ``` --- ## Lorem Ipsum Test URL: https://stalux.needhelp.icu/posts/asddsa/ License: CC-BY-NC-SA-4.0 This post is just to check if the timezone is correct??? Lorem ipsum test Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam euismod, nisl eget ultricies ultrices, nunc nisl aliquam nunc, vitae aliquam nisl nisl vitae nisl. Donec euismod, nisl eget ultricies ultrices, nunc nisl aliquam nunc, vitae aliquam nisl nisl vitae nisl. Sample content text, this is just some random Chinese text. These words have no specific meaning and are only used to test page layout and font rendering. If more text is needed, you can continue adding similar content to fill the page space. 1. Test item one 2. Test item two 3. Test item three ``` Code block example function hello() { console.log("Hello, world!"); } ``` Lorem ipsum test Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam euismod, nisl eget ultricies ultrices, nunc nisl aliquam nunc, vitae aliquam nisl nisl vitae nisl. Donec euismod, nisl eget ultricies ultrices, nunc nisl aliquam nunc, vitae aliquam nisl nisl vitae nisl. Sample content text, this is just some random Chinese text. These words have no specific meaning and are only used to test page layout and font rendering. If more text is needed, you can continue adding similar content to fill the page space. 1. Test item one 2. Test item two 3. Test item three ``` Code block example function hello() { console.log("Hello, world!"); } ``` --- ## Image Lightbox Test URL: https://stalux.needhelp.icu/posts/asdasdasd/ License: CC-BY-NC-SA-4.0 The following are a large number of test image links (using the https://picsum.photos placeholder image service), which can be used to verify lightbox (PhotoSwipe) loading and lazy loading performance: ![Image 1](https://picsum.photos/seed/1/1200/800) ![Image 2](https://picsum.photos/seed/2/1200/800) ![Image 3](https://picsum.photos/seed/3/1200/800) ![Image 4](https://picsum.photos/seed/4/1200/800) ![Image 5](https://picsum.photos/seed/5/1200/800) ![Image 6](https://picsum.photos/seed/6/1200/800) ![Image 7](https://picsum.photos/seed/7/1200/800) ![Image 8](https://picsum.photos/seed/8/1200/800) ![Image 9](https://picsum.photos/seed/9/1200/800) ![Image 10](https://picsum.photos/seed/10/1200/800) ![Image 11](https://picsum.photos/seed/11/1200/800) ![Image 12](https://picsum.photos/seed/12/1200/800) ![Image 13](https://picsum.photos/seed/13/1200/800) ![Image 14](https://picsum.photos/seed/14/1200/800) ![Image 15](https://picsum.photos/seed/15/1200/800) ![Image 16](https://picsum.photos/seed/16/1200/800) ![Image 17](https://picsum.photos/seed/17/1200/800) ![Image 18](https://picsum.photos/seed/18/1200/800) ![Image 19](https://picsum.photos/seed/19/1200/800) ![Image 20](https://picsum.photos/seed/20/1200/800) --- ## Markdown Rendering Examples URL: https://stalux.needhelp.icu/posts/2cb4f19c/ License: CC-BY-NC-SA-4.0 # Comprehensive Markdown Syntax Guide ## Basic Syntax ### Headings # Heading 1 ## Heading 2 ### Heading 3 #### Heading 4 ##### Heading 5 ###### Heading 6 ### Emphasis _Italic_ or _Italic_ **Bold** or **Bold** **_Bold Italic_** or **_Bold Italic_** ~~Strikethrough~~ Underline ### Lists #### Unordered Lists - Item 1 * Item 2 - Item 3 #### Ordered Lists 1. Item 1 2. Item 2 3. Item 3 #### Task Lists - [x] Completed task - [ ] Incomplete task ### Links and Images [Link text](http://example.com) ![Image description](http://example.com/favicon.ico) ### Blockquotes > This is a blockquote > > > This is a nested blockquote > > > > > Triple nested blockquote ### Code Inline code `var example = "hello";` ```javascript title="This is a code example" // Code block function example() { return "Hello, world!"; } ``` ### Horizontal Rules --- --- --- ### Tables | Header 1 | Header 2 | Header 3 | | :------- | :------: | -------: | | Left | Center | Right | | Cell | Cell | Cell | ## Advanced Nesting Examples ### Nested Lists 1. First level - Second level - Third level - Fourth level - Back to second level 2. Back to first level ### Nested Blockquotes and Formatting > First level blockquote > > > Second level blockquote > > > > **Bold text** with _italics_ inside > > > > 1. List within blockquote > > 2. Second item > > > > `Code within blockquote` > > Back to first level ### Formatting in Tables | Feature | Syntax | Result | | ------- | ------------- | ----------- | | Bold | `**text**` | **text** | | Italic | `*text*` | _text_ | | Code | `` `code` `` | `code` | | Link | `[link](url)` | [link](url) | ### HTML Mixing

HTML Block

This is an HTML paragraph mixed with Markdown

- Markdown list within HTML - Second item > Markdown blockquote within HTML
### Footnotes Here is a footnote[^1], and another one[^2]. [^1]: This is the content of the first footnote. [^2]: This is the second footnote, which can span multiple lines. Indented content belongs to the footnote. ### LaTeX Math Formulas Inline formula: $E=mc^2$ Block formula: $$ \frac{d}{dx}(e^x) = e^x $$ ### Mermaid **Flowchart** ```mermaid graph LR A[Start] --> B{Is it?} B -->|Yes| C[OK] B -->|No| D[Fail] C --> E[End] D --> E ``` **Sequence Diagram** ```mermaid sequenceDiagram Alice->>John: Hello John John-->>Alice: Hi Alice Alice->>John: How are you? John-->>Alice: Great! ``` **Class Diagram** ```mermaid classDiagram Animal <|-- Duck Animal <|-- Fish Animal : +int age Animal : +String gender Animal: +isMammal() Duck: +String beakColor Duck: +swim() Fish: -int sizeInFeet Fish: -canEat() ``` **State Diagram** ```mermaid stateDiagram-v2 [*] --> Idle Idle --> Processing : start Processing --> Success : done Processing --> Failed : error Success --> [*] Failed --> Idle : retry ``` **Flowchart** ```mermaid flowchart LR A[Login] --> B{Dashboard} B --> C[Settings] B --> D[Profile] C --> E[Security] C --> F[Notifications] D --> G[Edit] D --> H[Avatar] ``` ## Special Character Escaping \* Escaped asterisk \\ Escaped backslash \` Escaped backtick \_ Escaped underscore \{ \} Escaped curly braces \[ \] Escaped square brackets \( \) Escaped parentheses \# Escaped hash \+ Escaped plus \- Escaped minus \. Escaped period \! Escaped exclamation mark --- ## Markdown File Configuration Reference URL: https://stalux.needhelp.icu/posts/f31dae4f/ License: CC-BY-NC-SA-4.0 ## Overview This article is rewritten according to the current schema (see src/content.config.ts), listing the frontmatter requirements and examples for posts, about, and words. Avoid using project-internal relative links to ensure no broken links when published to the site. ## posts/\*.md frontmatter Loader: base is `stalux/posts/`, pattern `*.md`/`*.mdx`. Required fields: - `title`: Post title. - `abbrlink`: Permanent link, supports strings or numbers (numbers are automatically converted to strings). It is recommended to manually set this to keep URLs stable. - `date`: Publish time, **string type**, recommended format `YYYY-MM-DD HH:mm:ss`, must be wrapped in double quotes to prevent YAML from automatically converting it to a Date object. Optional fields: - `updated`: Update date, **string type**, same format as `date`, also needs double quotes. If not provided, the update time will not be displayed. - `draft`: Boolean, default false; when true, can be used for local draft control. - `tags`: Tag array; a string or single string will be preprocessed into an array. - `categories`: Category array; a string or single string will be preprocessed into an array. - `cc`: Copyright license, default `CC-BY-NC-SA-4.0`. Example: ```markdown --- title: Astro Getting Started Guide abbrlink: astro-guide date: "2025-05-10 09:30:00" updated: "2025-05-12 18:00:00" tags: - Astro - Frontend categories: - Tech Tutorial cc: CC-BY-NC-SA-4.0 draft: false --- Body content... ``` Writing tips: - **Recommended date format**: `YYYY-MM-DD HH:mm:ss` (e.g., `"2025-05-10 09:30:00"`). - Must be wrapped in **double quotes**, otherwise YAML will automatically convert it to a Date object, causing schema validation to fail. - `abbrlink` can be a string (e.g., `"astro-guide"`) or a number (e.g., `123456`); numbers are automatically converted to strings. - `tags`/`categories` support a single string or an array; they are automatically converted to arrays internally. - If `cc` is not provided, the default value `CC-BY-NC-SA-4.0` is used; if no copyright notice is needed, it can be set to an empty string. ## about/\*.md frontmatter Loader: base is `stalux/about/`, pattern `**/*.{md,mdx}`. Fields: - `title` is required. - `description` is required (used for page description/SEO). Example: ```markdown --- title: About the Author description: Personal introduction, skills, and contact information --- Here is the about page body... ``` ## words/\*.md frontmatter Loader: base is `stalux/words/`, pattern `*.md`/`*.mdx`. All fields are optional: - `source`: Source or author name. - `link`: Source link; when present, `source` will render as a clickable external link. - `sourceDate`: The date associated with the source, displayed in italics at the bottom-right of the card. - `date`: The date this quote was written, displayed at the bottom-left of the card and used for sorting; same format as posts' `date`. - `updated`: Update date, string, same format as `date`. - `draft`: Boolean, default `false`; when `true`, not displayed. Example: ```markdown --- source: "Quake III Arena" link: "https://en.wikipedia.org/wiki/Fast_inverse_square_root" sourceDate: "1999" date: "2026-06-18 20:45:00" updated: "2026-06-18 21:00:00" draft: false --- Talk is cheap. Show me the `code`. ``` ## promote.yml: Markdown Export (`export_md`) Field in `stalux/config/promote.yml`: - `export_md`: Boolean, default `false`. Markdown export is opt-in: only a strict `true` generates `.md` routes for the home page, posts, about, words, links, archives, categories, and tags. Published article endpoints serve the raw Markdown source with `Content-Type: text/markdown`. The source is read directly from the original `.md` file when available, falling back to a reconstruction from frontmatter + body data. List and taxonomy endpoints render Markdown summaries. Example: ```yaml title="stalux/config/promote.yml" id: promote export_md: true ``` Note: - `export_md` is a site-level opt-in config, not a per-article frontmatter field. - When disabled or omitted, no `.md` export files are generated. - Only non-draft articles get post `.md` endpoints. - The sitemap filters out `.md` pages to avoid duplicate content issues. - Useful for readers who want to view or reuse the raw source. ## Writing and Validation - Place frontmatter at the top of the file, wrapped in three dashes. - Leave a space after colons, maintain correct indentation for arrays/objects. - After saving, run `bun run dev`; if any required fields are missing or types don't match, the build log will indicate the specific fields. --- ## Waline Comment System Configuration URL: https://stalux.needhelp.icu/posts/f4442947/ License: CC-BY-NC-SA-4.0 ## comment.yml โ€” Comment System File: `stalux/config/comment.yml` ```yaml id: comment enabled: false # Master switch: enable comments site-wide waline: serverURL: https://walines.xingwangzhe.fun # Waline server address lang: zh-CN # Waline UI language login: "force" # "enable" | "disable" | "force" dark: true # Dark mode support reaction: false # Reaction feature meta: [nick, mail, link] # Required user fields requiredMeta: [] # Mandatory fields commentSorting: "latest" # "latest" | "oldest" | "hottest" wordLimit: 200 # Max comment length pageSize: 10 # Comments per page recaptchaV3Key: "" # reCAPTCHA v3 site key turnstileKey: "" # Cloudflare Turnstile key ``` ### Key Fields | Field | Description | | --------------------- | ----------------------------------------------------------------------------------- | | `enabled` | Global toggle. Set to `true` to enable comments on all pages | | `waline.serverURL` | **Required** for Waline to work. Points to your Waline server | | `waline.login` | `"enable"` โ€” allow anyone; `"force"` โ€” require login; `"disable"` โ€” no login needed | | `waline.meta` | User info fields collected from commenters | | `waline.requiredMeta` | Fields that must be filled in (subset of `meta`) | ### Getting Started 1. Deploy a Waline server (see [Waline docs](https://waline.js.org/)) 2. Set `enabled: true` and fill in `waline.serverURL` 3. Adjust other settings as needed 4. Test by leaving a comment on any post ### Common Modifications | Operation | How | | ---------------------- | -------------------------------------------------------------- | | Toggle comments on/off | Change `enabled` | | Switch Waline server | Update `serverURL` | | Enable anti-spam | Set `recaptchaV3Key` or `turnstileKey` | | Change sort order | Set `commentSorting` to `"latest"`, `"oldest"`, or `"hottest"` | --- ## Footer Configuration Details URL: https://stalux.needhelp.icu/posts/dd30cf92/ License: CC-BY-NC-SA-4.0 ## Overview Footer configuration is in `stalux/config/footer.yml`: ```yaml id: footer buildtime: "2025-05-01T10:00:00" # Build time for uptime display copyright: enabled: true startYear: 2024 customText: "" theme: showPoweredBy: true showThemeInfo: true beian: icp: enabled: false number: "ICPๅค‡XXXXXXXXๅท" security: enabled: false text: "Public Security Filing" number: "XXXXXXXXXXXX" badges: - label: "Powered by" message: "Astro" color: "orange" style: "flat-square" href: "https://astro.build/" # ... more badges ... # Collapsible badge group (v1.1+): - title: "ๅšๅฎข็คพๅŒบ" collapsed: true items: - label: "็คบไพ‹็คพๅŒบA" message: "็คพๅŒบ" color: "green" href: "https://example.com" - label: "็คบไพ‹็คพๅŒบB" message: "ๅฏผ่ˆช" color: "yellow" href: "https://example.org" custom: | ``` ## Badge Types | Type | Fields | Behavior | | ----------- | --------------------------------------------------- | ----------------------------------------------------- | | Flat badge | `label`, `message`, `color`, `style`, `alt`, `href` | Renders a single badge | | Badge group | `title`, `collapsed`, `items[]` | Collapsible `
` with localStorage persistence | ## Common Operations | Operation | How | | --------------------- | --------------------------------------------- | | Update filing numbers | Enable the toggle and fill in the number | | Simplify badges | Remove items you don't need | | Customize copyright | Set `customText` or adjust `startYear` | | Add scripts | Place them in `custom` (trusted scripts only) | --- ## Typing Animation, Social Media & Friend Links URL: https://stalux.needhelp.icu/posts/8e8c59c4/ License: CC-BY-NC-SA-4.0 ## typetexts.yml โ€” Homepage Typing Animation File: `stalux/config/typetexts.yml` ```yaml id: typetexts items: - "Free for free, not free for charge!" - "Where's the any key?" - "Press F12?" - "Hello World!" ``` | Aspect | Guidance | | ----------- | ----------------------------------------- | | Display | Items cycle randomly on the homepage | | Text length | Keep each short for first-screen display | | Empty | Leave `items` empty to hide the animation | ## media-links.yml โ€” Social Media Links File: `stalux/config/media-links.yml` ```yaml id: media-links items: - icon: github link: https://github.com/xingwangzhe/stalux - icon: bilibili link: https://bilibili.com/ - icon: X link: https://x.com - icon: juejin link: https://juejin.cn/ - icon: zhihu link: https://www.zhihu.com/ - icon: maildotru link: mailto:xingwangzhe@outlook.com - icon: telegram link: https://t.me/ ``` | Field | Description | | -------- | -------------------------------------------------------------------------------------- | | `icon` | [simple-icons](https://simpleicons.org/) name (lowercase, e.g. `github`, `x`, `zhihu`) | | `link` | URL or `mailto:` address | | Fallback | Unrecognized icons show the first letter | ## links.yml โ€” Friend Links File: `stalux/config/links.yml` ```yaml id: links title: "Helpful Links" # Section heading description: "Great sites!" # Section description sites: - name: Astro description: A modern static site generator. link: https://astro.build/ icon: https://astro.build/favicon.svg - name: MDN description: Web standards documentation. link: https://developer.mozilla.org/ icon: https://developer.mozilla.org/favicon.ico - name: animejs description: JavaScript animation library. link: https://animejs.com/ icon: https://animejs.com/assets/images/favicon.png - name: feather-icons description: Open-source icon library. link: https://feathericons.com/ icon: https://feathericons.com/favicon.ico - name: simple-icons description: Brand icons collection. link: https://simpleicons.org/ icon: https://simpleicons.org/icons/simpleicons.svg ``` Each `sites[]` entry requires `name`, `description`, `link`, and `icon`. --- ## Custom Head, Analytics & Navigation URL: https://stalux.needhelp.icu/posts/0035a0ee/ License: CC-BY-NC-SA-4.0 ## head.yml โ€” Analytics & Custom Head File: `stalux/config/head.yml` ```yaml id: head # googleAnalyticsId: "G-XXXXXXXXXX" # Google Analytics 4 tracking ID # bingClarityId: "" # Microsoft Bing Clarity project ID # umami: # id: "" # Umami website ID # url: "" # Umami script URL anyhead: "" # Custom HTML injected into ``` ### Analytics Tools | Tool | Config Field | Notes | | ---------------- | ------------------------ | ----------------------------------------------------------- | | Google Analytics | `googleAnalyticsId` | Format `G-XXXXXXXXXX`, theme auto-loads GA4 | | Bing Clarity | `bingClarityId` | Theme auto-loads Clarity tracking | | Umami | `umami.id` + `umami.url` | Both `id` and `url` required | | Custom snippets | `anyhead` | Arbitrary HTML (e.g., verification meta tags, custom fonts) | ## navs.yml โ€” Navigation Bar File: `stalux/config/navs.yml` ```yaml id: navs items: - title: Home icon: home link: / - title: Posts icon: archive link: /archives # ... more items ``` | Field | Description | | ------------- | --------------------------------------------------------- | | `link` | Internal path or full external URL | | `icon` | [Lucide Icons](https://lucide.dev/icons/) PascalCase name | | Search button | Built-in, does not need a nav item | ## Common Operations | Operation | How | | ---------------- | ---------------------------------------------------------------------- | | Add analytics | Set the tracking ID in `head.yml`, no script needed | | Custom head HTML | Use `anyhead` to inject ``, `