diff options
author | Wang Chucheng <me@wangchucheng.com> | 2021-01-28 12:36:32 +0300 |
---|---|---|
committer | Wang Chucheng <me@wangchucheng.com> | 2021-01-28 12:36:32 +0300 |
commit | ef43e8347388e20a96e2472088623b8901da21bb (patch) | |
tree | 372da19414da4905e1c1dacd195354dc0f026aa3 /archetypes | |
parent | 13d24aee7a87924442254f0efc7011630054ba14 (diff) |
refactor: migrate from toml to yaml
Diffstat (limited to 'archetypes')
-rw-r--r-- | archetypes/authors/_index.md | 26 | ||||
-rw-r--r-- | archetypes/default.md | 28 | ||||
-rw-r--r-- | archetypes/docs.md | 20 | ||||
-rw-r--r-- | archetypes/docs/_index.md | 8 | ||||
-rw-r--r-- | archetypes/widgets/about.md | 64 | ||||
-rw-r--r-- | archetypes/widgets/blank.html | 40 | ||||
-rw-r--r-- | archetypes/widgets/pages.md | 47 | ||||
-rw-r--r-- | archetypes/widgets/vintage.md | 44 |
8 files changed, 130 insertions, 147 deletions
diff --git a/archetypes/authors/_index.md b/archetypes/authors/_index.md index 49103fa..669fecd 100644 --- a/archetypes/authors/_index.md +++ b/archetypes/authors/_index.md @@ -1,19 +1,19 @@ -+++ +--- # Name -title = "{{ replace .Name "-" " " | title }}" -role = "" -bio = "" -avatar = "" +title: {{ replace .Name "-" " " | title }} +role: +bio: +avatar: -[organization] - name = "" - url = "" +organization: + name: + url: # Check the available icons on https://fontawesome.com/. # You can get similar results like this <i class="fab fa-github"></i> after searching. # Then icon is github and iconPack is fab for this case. -[[social]] - icon = "" - iconPack = "" - url = "" -+++
\ No newline at end of file +social: + - icon: + iconPack: + url: +---
\ No newline at end of file diff --git a/archetypes/default.md b/archetypes/default.md index 5326afb..b99cb8b 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,14 +1,14 @@ -+++ -title = "{{ replace .Name "-" " " | title }}" -description = "" -toc = true -authors = [] -tags = [] -categories = [] -series = [] -date = "{{ .Date }}" -lastmod = "{{ .Date }}" -featuredVideo = "" -featuredImage = "" -draft = false -+++
\ No newline at end of file +--- +title: {{ replace .Name "-" " " | title }} +description: +toc: true +authors: [] +tags: [] +categories: [] +series: [] +date: {{ .Date }} +lastmod: {{ .Date }} +featuredVideo: +featuredImage: +draft: false +---
\ No newline at end of file diff --git a/archetypes/docs.md b/archetypes/docs.md index cd9e8b8..ccb2f42 100644 --- a/archetypes/docs.md +++ b/archetypes/docs.md @@ -1,10 +1,10 @@ -+++ -title = "{{ replace .Name "-" " " | title }}" -description = "" -toc = true -authors = [] -date = "{{ .Date }}" -lastmod = "{{ .Date }}" -draft = false -weight = 1 -+++
\ No newline at end of file +--- +title: {{ replace .Name "-" " " | title }} +description: +toc: true +authors: [] +date: {{ .Date }} +lastmod: {{ .Date }} +draft: false +weight: 1 +---
\ No newline at end of file diff --git a/archetypes/docs/_index.md b/archetypes/docs/_index.md index dd1c906..62bb47e 100644 --- a/archetypes/docs/_index.md +++ b/archetypes/docs/_index.md @@ -1,4 +1,4 @@ -+++ -title = "Docs" -layout = "doc-list" #Do not modify -+++
\ No newline at end of file +--- +title: Docs +layout: doc-list #Do not modify +---
\ No newline at end of file diff --git a/archetypes/widgets/about.md b/archetypes/widgets/about.md index 5ec465c..7dbfd90 100644 --- a/archetypes/widgets/about.md +++ b/archetypes/widgets/about.md @@ -1,46 +1,38 @@ -+++ -title = "{{ replace .Name "-" " " | title }}" -weight = 1 -draft = false +--- +title: {{ replace .Name "-" " " | title }} +draft: false +role: +avatar: +bio: +organization: + name: + url: +social: + - icon: + iconPack: + url: -role = "" -bio = "" -avatar = "" +weight: +widget: + handler: about -[organization] - name = "" - url = "" - -# Check the available icons on https://fontawesome.com/. -# You can get similar results like this <i class="fab fa-github"></i> after searching. -# Then icon is github and iconPack is fab for this case. -[[social]] - icon = "" - iconPack = "" - url = "" - -[widget] - handler = "about" - # Options: sm, md, lg and xl. Default is md. - width = "" + width: - [widget.sidebar] + sidebar: # Options: left and right. Leave blank to hide. - position = "" + position: # Options: sm, md, lg and xl. Default is md. - scale = "" - - [widget.background] + scale: + + background: # Options: primary, secondary, tertiary or any valid color value. Default is primary. - color = "" - - # See TODO - image = "" + color: secondary + image: # Options: auto, cover and contain. Default is auto. - size = "" + size: # Options: center, top, right, bottom, left. - position = "" + position: # Options: fixed, local, scroll. - attachment = "" -+++
\ No newline at end of file + attachment: +---
\ No newline at end of file diff --git a/archetypes/widgets/blank.html b/archetypes/widgets/blank.html index 1c9e237..9e668a1 100644 --- a/archetypes/widgets/blank.html +++ b/archetypes/widgets/blank.html @@ -1,30 +1,28 @@ -+++ -title = "{{ replace .Name "-" " " | title }}" -weight = 1 -draft = false +--- +title: {{ replace .Name "-" " " | title }} +draft: false + +weight: +widget: + handler: blank -[widget] - handler = "blank" - # Options: sm, md, lg and xl. Default is md. - width = "" + width: - [widget.sidebar] + sidebar: # Options: left and right. Leave blank to hide. - position = "" + position: # Options: sm, md, lg and xl. Default is md. - scale = "" - - [widget.background] + scale: + + background: # Options: primary, secondary, tertiary or any valid color value. Default is primary. - color = "" - - # See TODO - image = "" + color: + image: # Options: auto, cover and contain. Default is auto. - size = "" + size: # Options: center, top, right, bottom, left. - position = "" + position: # Options: fixed, local, scroll. - attachment = "" -+++
\ No newline at end of file + attachment: +---
\ No newline at end of file diff --git a/archetypes/widgets/pages.md b/archetypes/widgets/pages.md index e0ca162..573b408 100644 --- a/archetypes/widgets/pages.md +++ b/archetypes/widgets/pages.md @@ -1,37 +1,34 @@ -+++ -title = "{{ replace .Name "-" " " | title }}" -weight = 1 -draft = false - +--- +title: {{ replace .Name "-" " " | title }} +draft: false # Section you want to display -section = "posts" +section: # Pages count -count = 5 +count: # Options: card, plain and masonry. -style = "card" +style: + +weight: +widget: + handler: pages -[widget] - handler = "pages" - # Options: sm, md, lg and xl. Default is md. - width = "" + width: - [widget.sidebar] + sidebar: # Options: left and right. Leave blank to hide. - position = "" + position: # Options: sm, md, lg and xl. Default is md. - scale = "" - - [widget.background] + scale: + + background: # Options: primary, secondary, tertiary or any valid color value. Default is primary. - color = "" - - # See TODO - image = "" + color: + image: # Options: auto, cover and contain. Default is auto. - size = "" + size: # Options: center, top, right, bottom, left. - position = "" + position: # Options: fixed, local, scroll. - attachment = "" -+++
\ No newline at end of file + attachment: +---
\ No newline at end of file diff --git a/archetypes/widgets/vintage.md b/archetypes/widgets/vintage.md index 99307ae..e1dda6f 100644 --- a/archetypes/widgets/vintage.md +++ b/archetypes/widgets/vintage.md @@ -1,35 +1,31 @@ -+++ -title = "{{ replace .Name "-" " " | title }}" -weight = 1 -draft = false +--- +title: {{ replace .Name "-" " " | title }} +draft: false +slogan: +imgLeft: +imgRight: -slogan = "" -# See TODO -imgLeft = "" -imgRight = "" +weight: +widget: + handler: vintage -[widget] - handler = "vintage" - # Options: sm, md, lg and xl. Default is md. - width = "" + width: - [widget.sidebar] + sidebar: # Options: left and right. Leave blank to hide. - position = "" + position: # Options: sm, md, lg and xl. Default is md. - scale = "" + scale: - [widget.background] + background: # Options: primary, secondary, tertiary or any valid color value. Default is primary. - color = "" - - # See TODO - image = "" + color: + image: # Options: auto, cover and contain. Default is auto. - size = "" + size: # Options: center, top, right, bottom, left. - position = "" + position: # Options: fixed, local, scroll. - attachment = "" -+++
\ No newline at end of file + attachment: +---
\ No newline at end of file |