Refactor breadcrumbs, update pagination, add SVG icon

Refs: https://github.com/boostorg/boostlook/issues/13
This commit is contained in:
Julio Estrada
2024-09-25 16:40:07 -04:00
committed by Julio C. Estrada
parent 7bfd2085df
commit a55ab8c596
2 changed files with 5 additions and 6 deletions

View File

@@ -3,7 +3,11 @@
<ul>
{{#with page.componentVersion}}
{{#if (and ./title (ne ./title @root.page.breadcrumbs.0.content))}}
<li><a href="{{{relativize ./url}}}">{{{./title}}}</a></li>
<li>
<a href="{{{relativize ./url}}}" aria-label="Home: {{{./title}}}">
<svg xmlns="http://www.w3.org/2000/svg" width="1rem" height="1rem" viewBox="0 -960 960 960" fill="#000000" aria-hidden="true"><path d="M160-120v-480l320-240 320 240v480H560v-280H400v280H160Z"/></svg>
</a>
</li>
{{/if}}
{{/with}}
{{#each page.breadcrumbs}}

View File

@@ -5,11 +5,6 @@
{{#with page.parent}}
<a accesskey="p" href="{{{relativize ./url}}}"><span class="material-symbols-outlined" title="Up: {{{./content}}}">arrow_upward</span></a>
{{/with}}
{{#unless page.home}}
{{#with (siteStartPage)}}
<a accesskey="p" href="{{{relativize ./pub.url}}}"><span class="material-symbols-outlined" title="Home: {{{./content}}}">home</span></a>
{{/with}}
{{/unless}}
{{#with page.next}}
<a accesskey="p" href="{{{relativize ./url}}}"><span class="material-symbols-outlined" title="Next: {{{./content}}}">arrow_forward</span></a>
{{/with}}