Skip to content

Commit 0f89b62

Browse files
author
matheus.queiroz
committed
feat: added support for shortcodes in static side pane content
1 parent a1d71c4 commit 0f89b62

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

exampleSite/data/rtwt/content.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ home:
44
text: 'The definitive, configurable, customizable, old fashioned rusty coloured theme for web writers and readers.'
55
side:
66
home:
7-
- content: 'With support for rendering static side pane content in the home page.'
7+
- content: 'With support for rendering [static side]({{< ref "features/static-content/" >}}) pane markdown content in the home page.'
88
- title: 'Side Content Media'
99
content: 'And static side content also supports clickable media, like image links!'
1010
imagePath: 'images/hugo.svg'

layouts/partials/side/home.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h3>{{- .title -}}</h3>
1212
<img class="side-content-image" src="{{- .imagePath -}}" width="{{- default "80%" .imageWidth -}}" />
1313
{{- end -}}
1414
{{- end -}}
15-
<p>{{- .content -}}</p>
15+
<p>{{- markdownify .content -}}</p>
1616
</div>
1717
{{- end -}}
1818

@@ -21,7 +21,7 @@ <h3>{{- .title -}}</h3>
2121
<h3>{{- $filter | title -}}</h3>
2222
<ul>
2323
{{- $limit := site.Params.rtwt.side.home.countTaxonomy }}
24-
{{- $i:= $limit -}}
24+
{{- $i := $limit -}}
2525

2626
{{/* For some reason, using "range first N COLLECTION" doesn't work here */}}
2727
{{- range (sort . ".Count" "desc") -}}

layouts/partials/side/tags.html

Whitespace-only changes.

0 commit comments

Comments
 (0)