Skip to content

Commit

Permalink
fixed bug (#3271)
Browse files Browse the repository at this point in the history
  • Loading branch information
alessioventuriniAND authored Jul 18, 2024
1 parent cc7445b commit 9d49578
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/section-navigation/_macro.njk
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
{% if params.title %}
{{ openingHeadingTag | replace(headingLevel, sectionTitleHeadingLevel | string) | safe }}
class="ons-u-fs-r--b
ons-u-mb-s">{{ params.title }}{{ closingHeadingTag | replace(headingLevel, sectionTitleHeadingLevel | string) }}
ons-u-mb-s">{{ params.title }}{{ closingHeadingTag | replace(headingLevel, sectionTitleHeadingLevel | string) | safe }}
{% endif %}
<ul class="ons-section-nav__list">
{% for item in params.itemsList %}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{% from "components/section-navigation/_macro.njk" import onsSectionNavigation %}
{{
onsSectionNavigation({
"id": "section-menu",
"variants": "vertical",
"currentPath": "#section-1",
"title": "Sections title",
"itemsList": [
{
"title": "Section 1",
"url": "#section-1"
},
{
"title": "Section 2",
"url": "#0"
},
{
"title": "Section 3",
"url": "#0"
}
]
})
}}

0 comments on commit 9d49578

Please sign in to comment.