Skip to content

Commit

Permalink
fix(eleventy): update urls with base path
Browse files Browse the repository at this point in the history
  • Loading branch information
Sisha0 committed Oct 7, 2021
1 parent 94fb6de commit 56c365a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ module.exports = config => {
dataTemplateEngine: 'njk',
htmlTemplateEngine: 'njk',
templateFormats: ['md', 'njk'],
pathPrefix: '/ui-playground/',
};
};
4 changes: 2 additions & 2 deletions pages/views/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ layout: basic
<h3 class="uip-demo__list-title">Samples</h3>
{% for sample in collections.samples %}
<li class="uip-demo__list-item">
<a href="{{ sample.url }}">{{ sample.data.title }}</a>
<a href="{{ sample.url | url }}">{{ sample.data.title }}</a>
</li>
{%- endfor %}
</ul>
Expand All @@ -15,7 +15,7 @@ layout: basic
<h3 class="uip-demo__list-title">Plugins</h3>
{% for plugin in collections.plugins %}
<li class="uip-demo__list-item">
<a href="{{ plugin.url }}">{{ plugin.data.title }}</a>
<a href="{{ plugin.url | url }}">{{ plugin.data.title }}</a>
</li>
{%- endfor %}
</ul>

0 comments on commit 56c365a

Please sign in to comment.