Skip to content

Commit

Permalink
Clean up other shortcodes
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Maddaus <[email protected]>
  • Loading branch information
IanMadd committed Nov 15, 2023
1 parent e2aa3fa commit 70476f8
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 5 deletions.
45 changes: 45 additions & 0 deletions content/style/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,35 @@ plain text _(term in italics)_
: Adding square brackets and the `(@)` symbol around the term (`[another term](@)`) adds a [linkable ID to the term](#another-term).
Foundation panel in a description list.
some_term
: A bunch of text defining the term.
More info:
{{< foundation_tabs tabs-id="bash-powershell-panel1" >}}
{{< foundation_tab active="true" panel-link="bash-panel1" tab-text="A panel">}}
{{< foundation_tab panel-link="powershell-panel1" tab-text="Another panel" >}}
{{< /foundation_tabs >}}
{{< foundation_tabs_panels tabs-id="bash-powershell-panel1" >}}
{{< foundation_tabs_panel active="true" panel-id="bash-panel1" >}}
Text in a panel.
```ruby
puts 'Hello, world!'
```
{{< /foundation_tabs_panel >}}
{{< foundation_tabs_panel panel-id="powershell-panel1" >}}
Text in another panel.
{{< /foundation_tabs_panel >}}
{{< /foundation_tabs_panels >}}
another_term
: A bunch of text defining the term.
### Checklists
Checklists are an unordered list with a checkbox.
Expand Down Expand Up @@ -621,6 +650,22 @@ You should back up the server.
Back up the server.
{{< /recommend >}}
Recommend inside a list:
- item 1
- item 2
{{< recommend not >}}
You should back up the server.
{{< /recommend >}}
- subitem 1
{{< recommend >}}
Back up the server.
{{< /recommend >}}
## Notices
### Notes
Expand Down
2 changes: 1 addition & 1 deletion themes/docs-new/layouts/shortcodes/foundation_tabs.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<ul class="tabs" data-tabs id="{{ .Get "tabs-id"}}">
{{ .Inner }}
{{ .Inner }}
</ul>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div class="tabs-panel {{ if .Get "active" }}is-active{{ end }}" id="{{.Get "panel-id"}}">
{{- .Inner | markdownify -}}
{{- trim .InnerDeindent "\r\n" | .Page.RenderString -}}
</div>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div class="tabs-content" data-tabs-content="{{ .Get "tabs-id"}}">
{{- .Inner -}}
{{- trim .InnerDeindent "\r\n" | .Page.RenderString -}}
</div>
4 changes: 2 additions & 2 deletions themes/docs-new/layouts/shortcodes/recommend.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{{- if eq (.Get 0) "not" -}}
<div class="text-recommend">
<div class="recommend-text"><i class="fa-solid fa-square-xmark"></i>Not Recommended</div>
<div class="recommended-text">{{ .Inner | markdownify }}</div>
<div class="recommended-text">{{- trim .InnerDeindent "\r\n" | .Page.RenderString -}}</div>
</div>
{{- else -}}
<div class="text-recommend">
<div class="recommend-text"><i class="fa-regular fa-square-check"></i>Recommend</div>
<div class="recommended-text">{{ .Inner | markdownify }}</div>
<div class="recommended-text">{{- trim .InnerDeindent "\r\n" | .Page.RenderString -}}</div>
</div>
{{- end -}}

0 comments on commit 70476f8

Please sign in to comment.