Skip to content

Commit

Permalink
feat: update front matter and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq committed May 12, 2022
1 parent 8a9df9b commit 568fe8f
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 14 deletions.
44 changes: 39 additions & 5 deletions archetypes/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,56 @@ draft: true
author: ""
authorLink: ""
description: ""
license: ""
images: []

tags: []
categories: []

hiddenFromHomePage: false
hiddenFromSearch: false

featuredImage: ""
featuredImagePreview: ""

hiddenFromHomePage: false
hiddenFromSearch: false
twemoji: false
lightgallery: true
ruby: true
fraction: true
fontawesome: true
linkToMarkdown: true
rssFullText: false

toc:
enable: true
auto: true
code:
copy: true
maxShownLines: 50
math:
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-->
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ images: []

tags: []
categories: []

featuredImage: ""
featuredImagePreview: ""

Expand All @@ -101,12 +102,11 @@ toc:
auto: true
code:
copy: true
# ...
maxShownLines: 50
math:
enable: true
enable: false
# ...
mapbox:
accessToken: ""
# ...
share:
enable: true
Expand Down Expand Up @@ -144,6 +144,7 @@ seo:

* **tags**: the tags for the content.
* **categories**: the categories for the content.

* **featuredImage**: the featured image for the content.
* **featuredImagePreview**: the featured image for the content preview in the home page.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ images: []

tags: []
categories: []

featuredImage: ""
featuredImagePreview: ""

Expand All @@ -100,12 +101,11 @@ toc:
auto: true
code:
copy: true
# ...
maxShownLines: 50
math:
enable: true
enable: false
# ...
mapbox:
accessToken: ""
# ...
share:
enable: true
Expand Down Expand Up @@ -143,6 +143,7 @@ seo:

* **tags**: 文章的标签.
* **categories**: 文章所属的类别.

* **featuredImage**: 文章的特色图片.
* **featuredImagePreview**: 用在主页预览的文章特色图片.

Expand Down
4 changes: 1 addition & 3 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noodp" />
<title>
{{- block "title" . }}{{ .Site.Title }}{{ end -}}
</title>
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>

{{- partial "head/meta.html" . -}}
{{- partial "head/link.html" . -}}
Expand Down

0 comments on commit 568fe8f

Please sign in to comment.