Skip to content

Commit

Permalink
Add html entity support to section names
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonbk committed Nov 12, 2024
1 parent ae83bbf commit 173ebc7
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ $ const countQueryParams = {
</if>

<marko-web-website-section-name|{ value }| tag="h1" block-name=blockName obj={ name }>
<if(p.page > 1)>${value}: ${i18n("Page")} ${p.page}</if>
<else>${value}</else>
<if(p.page > 1)>$!{value}: ${i18n("Page")} ${p.page}</if>
<else>$!{value}</else>
</marko-web-website-section-name>
<marko-web-website-section-description obj={ description } />

Expand Down
4 changes: 2 additions & 2 deletions packages/global/components/layouts/website-section/feed.marko
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ $ const queryParams = {
obj=section
modifiers=[section.alias]
>
<if(p.page > 1)>${value}: ${i18n("Page")} ${p.page}</if>
<else>${value}</else>
<if(p.page > 1)>$!{value}: ${i18n("Page")} ${p.page}</if>
<else>$!{value}</else>
</marko-web-website-section-name>

<if(input.afterName)>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ $ const countQueryParams = {
</@section>
<@section|{ blockName, section, aliases }| modifiers=["webinars"]>
<marko-web-website-section-name|{ value }| tag="h1" block-name=blockName obj={ name }>
<if(p.page > 1)>${value}: ${i18n("Page")} ${p.page}</if>
<else>${value}</else>
<if(p.page > 1)>$!{value}: ${i18n("Page")} ${p.page}</if>
<else>$!{value}</else>
</marko-web-website-section-name>
<marko-web-website-section-description obj={ description } />

Expand Down
4 changes: 2 additions & 2 deletions packages/global/templates/taxonomy-category/index.marko
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ $ const queryParams = {
</marko-web-element>
</marko-web-query>
<marko-web-website-section-name|{ value }| tag="h1" block-name=blockName obj={ name }>
<if(p.page > 1)>${value}: ${i18n("Page")} ${p.page}</if>
<else>${value}</else>
<if(p.page > 1)>$!{value}: ${i18n("Page")} ${p.page}</if>
<else>$!{value}</else>
</marko-web-website-section-name>
<marko-web-query|{ nodes }| name="all-published-content" params=queryParams>
<marko-web-node-list
Expand Down
4 changes: 2 additions & 2 deletions packages/global/templates/website-section/collections.marko
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ $ const queryParams = {
<div class="row">
<div class="col-lg-12">
<marko-web-website-section-name|{ value }| tag="h1" block-name=blockName obj={ name }>
<if(p.page > 1)>${value}: ${i18n("Page")} ${p.page}</if>
<else>${value}</else>
<if(p.page > 1)>$!{value}: ${i18n("Page")} ${p.page}</if>
<else>$!{value}</else>
</marko-web-website-section-name>
<if(editorImage)>
<div class="box">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ $ const queryParams = {
obj={ name }
attrs={ style: "padding-top: 20px" }
>
<if(p.page > 1)>${value}: ${i18n("Page")} ${p.page}</if>
<else>${value}</else>
<if(p.page > 1)>$!{value}: ${i18n("Page")} ${p.page}</if>
<else>$!{value}</else>
</marko-web-website-section-name>
<marko-web-query|{ nodes }| name="website-scheduled-content" params=queryParams>
<marko-web-node-list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ $ const queryParams = {
</if>

<marko-web-website-section-name|{ value }| tag="h1" block-name=blockName obj=section>
<if(p.page > 1)>${value}: ${i18n("Page")} ${p.page}</if>
<else>${value}</else>
<if(p.page > 1)>$!{value}: ${i18n("Page")} ${p.page}</if>
<else>$!{value}</else>
</marko-web-website-section-name>

<if(input.afterName)>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ $ const actionText = i18n("signing up to receive your email notifications");
</if>

<marko-web-website-section-name|{ value }| tag="h1" block-name=blockName obj=section>
<if(p.page > 1)>${value}: Page ${p.page}</if>
<else>${value}</else>
<if(p.page > 1)>$!{value}: Page ${p.page}</if>
<else>$!{value}</else>
</marko-web-website-section-name>

<if(input.afterName)>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ $ const actionText = i18n("signing up to receive your email notifications");
obj=section
modifiers=[section.alias]
>
<if(p.page > 1)>${value}: Page ${p.page}</if>
<else>${value}</else>
<if(p.page > 1)>$!{value}: Page ${p.page}</if>
<else>$!{value}</else>
</marko-web-website-section-name>

<if(input.afterName)>
Expand Down

0 comments on commit 173ebc7

Please sign in to comment.