-
-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: widget system for configuring homepage
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
- Loading branch information
1 parent
3023aca
commit c33985a
Showing
72 changed files
with
887 additions
and
264 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
+++ | ||
title = "Docs" | ||
layout = "doc_list" #Do not modify | ||
layout = "doc-list" #Do not modify | ||
+++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 = "" | ||
+++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 = "" | ||
+++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 = "" | ||
+++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 = "" | ||
+++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
version = "0.4.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[[main]] | ||
name = "About" | ||
url = "/about/" | ||
url = "#about" | ||
weight = 1 | ||
|
||
[[main]] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,25 +3,25 @@ | |
title = "Example Author" | ||
role = "Example Role" | ||
bio = "Aenean vel bibendum quam. Aliquam at mollis quam. Proin efficitur." | ||
avatar = "images/avatar.jpg" | ||
avatar = "images/icon.png" | ||
|
||
[organization] | ||
name = "Example Organization" | ||
url = "https://example.com/" | ||
|
||
[[social]] | ||
icon = "envelope" | ||
icon_pack = "fas" | ||
iconPack = "fas" | ||
url = "mailto:[email protected]" | ||
|
||
[[social]] | ||
icon = "twitter" | ||
icon_pack = "fab" | ||
iconPack = "fab" | ||
url = "https://example.com/" | ||
|
||
[[social]] | ||
icon = "github" | ||
icon_pack = "fab" | ||
iconPack = "fab" | ||
url = "https://example.com/" | ||
|
||
+++ | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,17 +11,17 @@ shortContent = "Example Short Content" | |
|
||
[[social]] | ||
icon = "envelope" | ||
icon_pack = "fas" | ||
iconPack = "fas" | ||
url = "mailto:[email protected]" | ||
|
||
[[social]] | ||
icon = "twitter" | ||
icon_pack = "fab" | ||
iconPack = "fab" | ||
url = "https://example.com/" | ||
|
||
[[social]] | ||
icon = "github" | ||
icon_pack = "fab" | ||
iconPack = "fab" | ||
url = "https://example.com/" | ||
|
||
+++ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
+++ | ||
title = "Docs" | ||
layout = "doc_list" | ||
layout = "doc-list" | ||
+++ |
Oops, something went wrong.