feat: improve configuration (#245)
* feat: improve configuration * fix: fix partials/footer.html error
This commit is contained in:
@@ -1,45 +1,27 @@
|
||||
---
|
||||
weight: 4
|
||||
title: "Theme Documentation - Extended Shortcodes"
|
||||
subtitle: ""
|
||||
date: 2020-03-03T16:29:41+08:00
|
||||
lastmod: 2020-03-03T16:29:41+08:00
|
||||
draft: false
|
||||
author: "Dillon"
|
||||
authorLink: "https://dillonzq.com"
|
||||
description: "LoveIt theme provides multiple shortcodes on top of built-in ones in Hugo."
|
||||
license: ""
|
||||
|
||||
tags: ["shortcodes"]
|
||||
categories: ["documentation"]
|
||||
hiddenFromHomePage: false
|
||||
|
||||
featuredImage: "/images/theme-documentation-extended-shortcodes/featured-image.jpg"
|
||||
featuredImagePreview: "/images/theme-documentation-extended-shortcodes/featured-image-preview.jpg"
|
||||
|
||||
toc: true
|
||||
autoCollapseToc: true
|
||||
math: false
|
||||
mapbox:
|
||||
accessToken: ""
|
||||
lightStyle: ""
|
||||
darkStyle: ""
|
||||
navigation: true
|
||||
geolocate: true
|
||||
scale: true
|
||||
fullscreen: true
|
||||
lightgallery: true
|
||||
linkToMarkdown: true
|
||||
share:
|
||||
enable: true
|
||||
comment: true
|
||||
---
|
||||
|
||||
**LoveIt** theme provides multiple shortcodes on top of built-in ones in Hugo.
|
||||
|
||||
<!--more-->
|
||||
|
||||
## `style`
|
||||
## style
|
||||
|
||||
`style` is a shortcode to insert custom style in your post.
|
||||
|
||||
@@ -63,7 +45,7 @@ The rendered output looks like this:
|
||||
This is a right-aligned paragraph.
|
||||
{{< /style >}}
|
||||
|
||||
## `link`
|
||||
## link
|
||||
|
||||
{{< version 0.2.0 >}}
|
||||
|
||||
@@ -127,7 +109,7 @@ The rendered output looks like this (hover over the link, there should be a tool
|
||||
|
||||
{{< link "https://github.com/upstage/" Upstage "Visit Upstage!" >}}
|
||||
|
||||
## `image`
|
||||
## image
|
||||
|
||||
{{< version 0.2.0 changed >}}
|
||||
|
||||
@@ -197,7 +179,7 @@ The rendered output looks like this:
|
||||
|
||||
{{< image src="/images/theme-documentation-extended-shortcodes/lighthouse.jpg" caption="Lighthouse (`image`)" src-s="/images/theme-documentation-extended-shortcodes/lighthouse-small.jpg" src-l="/images/theme-documentation-extended-shortcodes/lighthouse-large.jpg" >}}
|
||||
|
||||
## `admonition`
|
||||
## admonition
|
||||
|
||||
The `admonition` shortcode supports **12** types of banners to help you put notice in your page.
|
||||
|
||||
@@ -283,7 +265,7 @@ The rendered output looks like this:
|
||||
A **tip** banner
|
||||
{{< /admonition >}}
|
||||
|
||||
## `mermaid`
|
||||
## mermaid
|
||||
|
||||
[mermaid](https://mermaidjs.github.io/) is a library helping you to generate diagram and flowcharts from text, in a similar manner as Markdown.
|
||||
|
||||
@@ -531,7 +513,7 @@ pie
|
||||
"Rats" : 15
|
||||
{{< /mermaid >}}
|
||||
|
||||
## `echarts`
|
||||
## echarts
|
||||
|
||||
[ECharts](https://echarts.apache.org/) is a library helping you to generate interactive data visualization.
|
||||
|
||||
@@ -919,7 +901,7 @@ The `echarts` shortcode has also the following named parameters:
|
||||
|
||||
{{< version 0.2.0 >}} Height of the data visualization, default value is `30rem`.
|
||||
|
||||
## `mapbox`
|
||||
## mapbox
|
||||
|
||||
{{< version 0.2.0 >}}
|
||||
|
||||
@@ -993,7 +975,7 @@ The rendered output looks like this:
|
||||
|
||||
{{< mapbox -122.252 37.453 10 false "mapbox://styles/mapbox/navigation-preview-day-v4?optimize=true" "mapbox://styles/mapbox/navigation-preview-night-v4?optimize=true" >}}
|
||||
|
||||
## `music`
|
||||
## music
|
||||
|
||||
The `music` shortcode embeds a responsive music player based on [APlayer](https://github.com/MoePlayer/APlayer) and [MetingJS](https://github.com/metowolf/MetingJS).
|
||||
|
||||
@@ -1132,7 +1114,7 @@ The `music` shortcode has the following named parameters only applying to the ty
|
||||
|
||||
Max height of the music list, default value is `340px`.
|
||||
|
||||
## `bilibili`
|
||||
## bilibili
|
||||
|
||||
{{< version 0.2.0 changed >}}
|
||||
|
||||
@@ -1175,7 +1157,7 @@ The rendered output looks like this:
|
||||
|
||||
{{< bilibili id=BV1TJ411C7An p=3 >}}
|
||||
|
||||
## `typeit`
|
||||
## typeit
|
||||
|
||||
The `typeit` shortcode provides typing animation based on [TypeIt](https://typeitjs.com/).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user