diff options
author | Wang Chucheng <me@wangchucheng.com> | 2020-12-27 21:06:11 +0300 |
---|---|---|
committer | Wang Chucheng <me@wangchucheng.com> | 2020-12-27 21:06:11 +0300 |
commit | c33985a935b5bf5706bed27bc112f700df2f2903 (patch) | |
tree | 431d55abb64e7d125b9056475e31abc26ede6a33 /archetypes | |
parent | 3023aca70db61f681db293c21341769de8111a59 (diff) |
feat: widget system for configuring homepagev0.4.0
BREAKING CHANGE: Param 'hero' in params.toml is deprecated.
BREAKING CHANGE: Param 'icon_pack' in %q is deprecated. Use 'iconPack'.
BREAKING CHANGE: 'doc_list' in doc layout is deprecated. Use 'doc-list'.
Closes #11
Diffstat (limited to 'archetypes')
-rw-r--r-- | archetypes/authors/_index.md | 4 | ||||
-rw-r--r-- | archetypes/docs/_index.md | 2 | ||||
-rw-r--r-- | archetypes/widgets/about.md | 46 | ||||
-rw-r--r-- | archetypes/widgets/blank.html | 30 | ||||
-rw-r--r-- | archetypes/widgets/pages.md | 37 | ||||
-rw-r--r-- | archetypes/widgets/vintage.md | 35 |
6 files changed, 151 insertions, 3 deletions
diff --git a/archetypes/authors/_index.md b/archetypes/authors/_index.md index 383f7aa..49103fa 100644 --- a/archetypes/authors/_index.md +++ b/archetypes/authors/_index.md @@ -11,9 +11,9 @@ avatar = "" # 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 icon_pack is fab for this case. +# Then icon is github and iconPack is fab for this case. [[social]] icon = "" - icon_pack = "" + iconPack = "" url = "" +++
\ No newline at end of file diff --git a/archetypes/docs/_index.md b/archetypes/docs/_index.md index 0b3d6bd..dd1c906 100644 --- a/archetypes/docs/_index.md +++ b/archetypes/docs/_index.md @@ -1,4 +1,4 @@ +++ title = "Docs" -layout = "doc_list" #Do not modify +layout = "doc-list" #Do not modify +++
\ No newline at end of file diff --git a/archetypes/widgets/about.md b/archetypes/widgets/about.md new file mode 100644 index 0000000..5ec465c --- /dev/null +++ b/archetypes/widgets/about.md @@ -0,0 +1,46 @@ ++++ +title = "{{ replace .Name "-" " " | title }}" +weight = 1 +draft = false + +role = "" +bio = "" +avatar = "" + +[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 = "" + + [widget.sidebar] + # Options: left and right. Leave blank to hide. + position = "" + # Options: sm, md, lg and xl. Default is md. + scale = "" + + [widget.background] + # Options: primary, secondary, tertiary or any valid color value. Default is primary. + color = "" + + # See TODO + image = "" + # Options: auto, cover and contain. Default is auto. + size = "" + # Options: center, top, right, bottom, left. + position = "" + # Options: fixed, local, scroll. + attachment = "" ++++
\ No newline at end of file diff --git a/archetypes/widgets/blank.html b/archetypes/widgets/blank.html new file mode 100644 index 0000000..1c9e237 --- /dev/null +++ b/archetypes/widgets/blank.html @@ -0,0 +1,30 @@ ++++ +title = "{{ replace .Name "-" " " | title }}" +weight = 1 +draft = false + +[widget] + handler = "blank" + + # Options: sm, md, lg and xl. Default is md. + width = "" + + [widget.sidebar] + # Options: left and right. Leave blank to hide. + position = "" + # Options: sm, md, lg and xl. Default is md. + scale = "" + + [widget.background] + # Options: primary, secondary, tertiary or any valid color value. Default is primary. + color = "" + + # See TODO + image = "" + # Options: auto, cover and contain. Default is auto. + size = "" + # Options: center, top, right, bottom, left. + position = "" + # Options: fixed, local, scroll. + attachment = "" ++++
\ No newline at end of file diff --git a/archetypes/widgets/pages.md b/archetypes/widgets/pages.md new file mode 100644 index 0000000..e0ca162 --- /dev/null +++ b/archetypes/widgets/pages.md @@ -0,0 +1,37 @@ ++++ +title = "{{ replace .Name "-" " " | title }}" +weight = 1 +draft = false + +# Section you want to display +section = "posts" +# Pages count +count = 5 +# Options: card, plain and masonry. +style = "card" + +[widget] + handler = "pages" + + # Options: sm, md, lg and xl. Default is md. + width = "" + + [widget.sidebar] + # Options: left and right. Leave blank to hide. + position = "" + # Options: sm, md, lg and xl. Default is md. + scale = "" + + [widget.background] + # Options: primary, secondary, tertiary or any valid color value. Default is primary. + color = "" + + # See TODO + image = "" + # Options: auto, cover and contain. Default is auto. + size = "" + # Options: center, top, right, bottom, left. + position = "" + # Options: fixed, local, scroll. + attachment = "" ++++
\ No newline at end of file diff --git a/archetypes/widgets/vintage.md b/archetypes/widgets/vintage.md new file mode 100644 index 0000000..99307ae --- /dev/null +++ b/archetypes/widgets/vintage.md @@ -0,0 +1,35 @@ ++++ +title = "{{ replace .Name "-" " " | title }}" +weight = 1 +draft = false + +slogan = "" +# See TODO +imgLeft = "" +imgRight = "" + +[widget] + handler = "vintage" + + # Options: sm, md, lg and xl. Default is md. + width = "" + + [widget.sidebar] + # Options: left and right. Leave blank to hide. + position = "" + # Options: sm, md, lg and xl. Default is md. + scale = "" + + [widget.background] + # Options: primary, secondary, tertiary or any valid color value. Default is primary. + color = "" + + # See TODO + image = "" + # Options: auto, cover and contain. Default is auto. + size = "" + # Options: center, top, right, bottom, left. + position = "" + # Options: fixed, local, scroll. + attachment = "" ++++
\ No newline at end of file |