feat: update front matter and docs

This commit is contained in:
Dillon 2022-05-13 01:03:24 +08:00
parent 8a9df9b02f
commit 568fe8f5fc
No known key found for this signature in database
GPG key ID: 0EF4AE57FB98F108
4 changed files with 48 additions and 14 deletions

View file

@ -7,22 +7,56 @@ draft: true
author: "" author: ""
authorLink: "" authorLink: ""
description: "" description: ""
license: ""
images: []
tags: [] tags: []
categories: [] categories: []
hiddenFromHomePage: false
hiddenFromSearch: false
featuredImage: "" featuredImage: ""
featuredImagePreview: "" featuredImagePreview: ""
hiddenFromHomePage: false
hiddenFromSearch: false
twemoji: false
lightgallery: true
ruby: true
fraction: true
fontawesome: true
linkToMarkdown: true
rssFullText: false
toc: toc:
enable: true enable: true
auto: true
code:
copy: true
maxShownLines: 50
math: math:
enable: false enable: false
lightgallery: false # ...
license: "" mapbox:
# ...
share:
enable: true
# ...
comment:
enable: true
# ...
library:
css:
# someCSS = "some.css"
# located in "assets/"
# Or
# someCSS = "https://cdn.example.com/some.css"
js:
# someJS = "some.js"
# located in "assets/"
# Or
# someJS = "https://cdn.example.com/some.js"
seo:
images: []
# ...
--- ---
<!--more--> <!--more-->

View file

@ -83,6 +83,7 @@ images: []
tags: [] tags: []
categories: [] categories: []
featuredImage: "" featuredImage: ""
featuredImagePreview: "" featuredImagePreview: ""
@ -101,12 +102,11 @@ toc:
auto: true auto: true
code: code:
copy: true copy: true
# ... maxShownLines: 50
math: math:
enable: true enable: false
# ... # ...
mapbox: mapbox:
accessToken: ""
# ... # ...
share: share:
enable: true enable: true
@ -144,6 +144,7 @@ seo:
* **tags**: the tags for the content. * **tags**: the tags for the content.
* **categories**: the categories for the content. * **categories**: the categories for the content.
* **featuredImage**: the featured image for the content. * **featuredImage**: the featured image for the content.
* **featuredImagePreview**: the featured image for the content preview in the home page. * **featuredImagePreview**: the featured image for the content preview in the home page.

View file

@ -82,6 +82,7 @@ images: []
tags: [] tags: []
categories: [] categories: []
featuredImage: "" featuredImage: ""
featuredImagePreview: "" featuredImagePreview: ""
@ -100,12 +101,11 @@ toc:
auto: true auto: true
code: code:
copy: true copy: true
# ... maxShownLines: 50
math: math:
enable: true enable: false
# ... # ...
mapbox: mapbox:
accessToken: ""
# ... # ...
share: share:
enable: true enable: true
@ -143,6 +143,7 @@ seo:
* **tags**: 文章的标签. * **tags**: 文章的标签.
* **categories**: 文章所属的类别. * **categories**: 文章所属的类别.
* **featuredImage**: 文章的特色图片. * **featuredImage**: 文章的特色图片.
* **featuredImagePreview**: 用在主页预览的文章特色图片. * **featuredImagePreview**: 用在主页预览的文章特色图片.

View file

@ -6,9 +6,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noodp" /> <meta name="robots" content="noodp" />
<title> <title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
{{- block "title" . }}{{ .Site.Title }}{{ end -}}
</title>
{{- partial "head/meta.html" . -}} {{- partial "head/meta.html" . -}}
{{- partial "head/link.html" . -}} {{- partial "head/link.html" . -}}