Microsoft has terminated support for Internet Explorer (IE) 10 and earlier versions in 2016. There are great security risks to continue using it. Please use contemporary mainstream browsers to access. Learn more >')
The sidebar widget is different from the meta library: In addition to the existing widget, you can easily create your own widget and place it where you need it. In addition, you can also write widgets in separate files.
View all related configurations
blog/_config.volantis.yml
sidebar: # Home page, category, archive and other independent pages for_page: [blogger, category, tagcloud, qrcode] # layout: docs/post such article pages for_post: [toc] # Sidebar component library widget_library: # --------------------------------------- # blogger info widget blogger: class:blogger display: [desktop, mobile] # [desktop, mobile] avatar:https://gcore.jsdelivr.net/gh/volantis-x/cdn-org/blog/Logo-NavBar@3x.png shape:rectangle# circle, rectangle url:/about/ title: subtitle: jinrishici:true# Poetry Today. You can set a string, and it will be displayed when loading fails. social:true # --------------------------------------- # toc widget (valid only in articles) toc: class:toc display: [desktop, mobile] # [desktop, mobile] header: icon:fasfa-list title:Contentsofthisarticle list_number:false min_depth:2 max_depth:5 # --------------------------------------- # category widget category: class:category display: [desktop] # [desktop, mobile] header: icon:fasfa-folder-open title:Articleclassification url:/blog/categories/ # --------------------------------------- # tagcloud widget tagcloud: class:tagcloud display: [desktop, mobile] # [desktop, mobile] header: icon:fasfa-tags title:Populartags url:/blog/tags/ min_font:14 max_font:24 color:true start_color:'#999' end_color:'#555'
# --------------------------------------- # qrcode widget donate: class:qrcode display: [desktop, mobile] # [desktop, mobile] height:64px# Automatic height if not set images: -https://gcore.jsdelivr.net/gh/volantis-x/cdn-org/blog/qrcode/github@volantis.png -https://gcore.jsdelivr.net/gh/volantis-x/cdn-org/blog/qrcode/github@volantis.png # --------------------------------------- # webinfo widget webinfo: class:webinfo display: [desktop] header: icon:fasfa-award title:siteinformation type: article: enable:true text:'Numberofarticles:' unit:'Article' runtime: enable:true data:'2020/01/01'# Fill in the site construction date text:'Elapsedtime:' unit:'day' wordcount: enable:true text:'Totalwordsonthissite:'# Need to enable wordcount unit:'word' siteuv: enable:true text:'Numberofvisitorstothissite:'# Need to enable busuanzi unit:'person' sitepv: enable:true text:'Totalvisitstothissite:'# Need to enable busuanzi unit:'time' lastupd: enable:true friendlyShow:true# More friendly time display text:'Lastactivitytime:' unit:'day'
Every widget has class and display. The former represents what the widget is, and the latter represents whether the widget is displayed on what desktop and mobile platform. The sidebar widgets will be moved to the bottom of the body area, so some sidebar widgets have no meaning. It is recommended to set it to display only on the desktop.
blogger: class:blogger display: [desktop] # [desktop, mobile] avatar:https://gcore.jsdelivr.net/gh/xaoxuu/cdn-assets/avatar/avatar.png title: subtitle: jinrishici:true# Poetry Today. You can set a string, and it will be displayed when loading fails. social:true
Among them, if today's poem jinrishici is set to a string, this string will become a placeholder text and will be displayed when loading fails. If you don't need it, please set it to jinrishici: false. Please set the specific content of social in the footer of the website.
This widget can only be placed in the sidebar and is valid in the article. When previewing on a mobile device, the TOC button will appear on the right side of the navigation bar when you swipe your finger upwards, click to expand the TOC component. If you need to display the chapter number, please set list_number. min_depth and max_depth represent the header level supported by TOC, the maximum range is 2-6.
This component can directly display all article categories. If you want a separate page to display, you need to create a file by yourself. The specific operation is in the "page" part of the document.
This component can directly display the tags of all articles. If you want a separate page to display, you need to create a file by yourself. The specific operation is in the "page" part of the document.
QR code parts
blog/_config.volantis.yml
donate: class:qrcode display: [desktop, mobile] # [desktop, mobile] height:64px# Automatic height if not set images: -https://gcore.jsdelivr.net/gh/volantis-x/cdn-org/blog/qrcode/github@volantis.png -https://gcore.jsdelivr.net/gh/volantis-x/cdn-org/blog/qrcode/github@volantis.png
You can place it in the footer of the article to display rewarding pictures, or place it in the sidebar.
You can create a list part to display any linked list. The attributes supported by each item in the list of rows are: name, ʻurl, ʻicon, ʻimg, ʻavatar, where ʻimg is a link to a square image and ʻavatar is a circle Link to the shape picture.
Group Index
The layout of this widget is inherited from the list widget and is used to display the grouped article list to which the article belongs. Please upgrade your Volantis to version 2.5 or higher.
You can create a grid widget to display any list of links. By default, the grid automatically determines the width of each grid according to the text length. If the text length is different, it is recommended to set fixed: true to fix the width. At this time, the text in the grid with too long text will be displayed in a new line.
You can render the md content of the entire page as a small part. Just set the pid property in the widget and the same pid in the article's front-matter. content represents the content displayed by this component, optional ʻexcerpt, more, and content` correspond to the abstract of the article, the content behind the abstract, and the full text respectively.
This is only for communication between users. If you have any questions, please go to GitHub to submit an issue. Asking questions in the comment area will not receive any response from the developer!