feat: remove home page from other links
parent
8d053a29d8
commit
11ce3ad871
|
@ -85,6 +85,12 @@ module.exports = function(eleventyConfig) {
|
|||
return authors ? "par " + (authors || []).join(" & ") : "";
|
||||
});
|
||||
|
||||
eleventyConfig.addFilter("noHome", elements => {
|
||||
return elements.filter(e => {
|
||||
return e.url !== '/';
|
||||
});
|
||||
})
|
||||
|
||||
// Customize Markdown library and settings:
|
||||
eleventyConfig.amendLibrary("md", mdLib => {
|
||||
mdLib.use(markdownItAnchor, {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="title">Autres liens</div>
|
||||
<ul class="links">
|
||||
{%- for entry in collections.all | eleventyNavigation %}
|
||||
{%- for entry in collections.all | eleventyNavigation | noHome %}
|
||||
<li><a
|
||||
href="{{ entry.url }}">{{ entry.title }}</a></li>
|
||||
{%- endfor %}
|
||||
|
|
Loading…
Reference in New Issue