Butterfly document - Theme Pages
This article is translated from ChatGPT. 🦋 Butterfly has been updated to 4.10. 📚 Table of Contents 🚀 Get Started - 📑 Theme Pages - 📌 Theme Configuration Part 1 - ⚔️ Theme Configuration Part 2 - ❓ Q&A - ⚡️ Advanced Tutorials Front-matterFront-matter is the section at the top of a Markdown file, separated by ---, and is used to specify variables for individual files. Page Front-matter is used for configuring a page. Post Front-matter is used for configuring a post. If a paramet ...
Custom Sidebar
Applicable to >= 3.8.0 The sidebar now supports customization, allowing you to add your favorite widgets. You can add your own widgets or sort existing ones (the Blog Data and Announcement widgets are fixed, but others can be sorted). Widget SortingYou only need to configure the sort_order. (It uses the order property of the Flex layout. For specific details, you can refer to the Mozilla documentation. In simple terms, use numbers to specify the sorting order. If not configured, the de ...
When Setting top_img to false
When the top_img is set to false, the top image is not displayed.
Customize code coloring
In the Butterfly document - Theme Configuration Part 1, the process of using custom code highlighting themes has been explained. This article serves as a practical tutorial on using custom code coloring. HighlightWe'll take the example of using the Kimbie dark theme for code coloring. Configure hljs to trueModify the _config.yml file in the root directory of your Hexo project. 123456highlight: enable: true line_number: true auto_detect: false tab_replace: hljs: true Configure highlight ...
no cover
This post no cover
Tag Plugins
TabsSonnet No. 18GalleryMadrigalShall I compare thee to a summer’s day?Thou art more lovely and more temperate:Rough winds do shake the darling buds of May,And summer’s lease hath all too short a date:Sometime too hot the eye of heaven shines,And often is his gold complexion dimm’d;And every fair from fair sometime declines,By chance, or nature’s changing course untrimm’d;But thy eternal summer shall not fade,Nor lose possession of that fair thou ow’st,Nor shall death brag thou wander’st in his ...
Markdown Style test
This post is originated from here and is used for testing markdown style. This post contains nearly every markdown usage. Make sure all the markdown elements below show up correctly. Headers1234567891011121314# H1## H2### H3#### H4##### H5###### H6Alternatively, for H1 and H2, an underline-ish style:Alt-H1======Alt-H2------ H1H2H3H4H5H6Alternatively, for H1 and H2, an underline-ish style: Alt-H1Alt-H2Emphasis1234567Emphasis, aka italics, with *asterisks* or _underscores_.Strong emphasis, aka ...