-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Button fragment usage within navbar (#864)
- Adding one or more customizable buttons to the nav bar that can be used just like the repo_button or replace it; - The nav bar repo_button now has the optional parameter no_text that removes the text label and centers the icons inside the button; - Adding 2 new translation strings to pt.yaml that are used by repo_button;
- Loading branch information
Showing
11 changed files
with
170 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
+++ | ||
fragment = "buttons" | ||
#disabled = false | ||
date = "2016-09-07" | ||
weight = 130 | ||
background = "secondary" | ||
|
||
title = "Buttons Fragment with Icons" | ||
subtitle = "Call to action buttons with icons" | ||
#title_align = "left" # Default is center, can be left, right or center | ||
|
||
[[buttons]] | ||
text = "Button" | ||
url = "#" | ||
icon = "fas fa-star" | ||
|
||
[[buttons]] | ||
url = "#" | ||
icon = "" # Defaults to "fas fa-check" if "". | ||
+++ |
31 changes: 31 additions & 0 deletions
31
exampleSite/content/fragments/buttons/code-buttons-icons.md
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,31 @@ | ||
+++ | ||
fragment = "content" | ||
weight = 131 | ||
+++ | ||
|
||
<details><summary>Code</summary> | ||
|
||
``` | ||
+++ | ||
fragment = "buttons" | ||
#disabled = false | ||
date = "2016-09-07" | ||
weight = 110 | ||
background = "secondary" | ||
title = "Buttons Fragment" | ||
#subtitle = "" | ||
#title_align = "left" # Default is center, can be left, right or center | ||
[[buttons]] | ||
text = "Button" | ||
url = "#" | ||
icon = "fas fa-star" | ||
[[buttons]] | ||
url = "#" | ||
icon = "" # Defaults to "fas fa-check" if "". | ||
+++ | ||
``` | ||
</details> |
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
2 changes: 1 addition & 1 deletion
2
...ite/resources/_gen/assets/scss/styles/index.scss_9045ac4ae4c25f4faabca0c0af37e804.content
Large diffs are not rendered by default.
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
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