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