Skip to content

Commit

Permalink
Refactor breadcrumbs, update pagination, add SVG icon
Browse files Browse the repository at this point in the history
  • Loading branch information
julioest committed Sep 25, 2024
1 parent 7bfd208 commit a55ab8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 5 additions & 1 deletion antora-ui/src/partials/breadcrumbs.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down
5 changes: 0 additions & 5 deletions antora-ui/src/partials/pagination-spirit.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down

0 comments on commit a55ab8c

Please sign in to comment.