Compare commits

..

2 Commits

Author SHA1 Message Date
Nicolas Doby 3f8d581e31 fix: correct CSS print of home page 2022-11-02 14:26:33 +01:00
Nicolas Doby 11ce3ad871 feat: remove home page from other links 2022-11-02 14:26:15 +01:00
3 changed files with 27 additions and 3 deletions

View File

@ -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, {

View File

@ -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 %}

View File

@ -1,7 +1,9 @@
header,
nav,
.right-side,
.main-header,
.main-footer,
.post-nav {
.post-nav,
.post-list-footer {
display: none;
}
@ -32,3 +34,19 @@ h3 {
h4 {
font-size: 14px;
}
.main-content {
margin: 0;
width: 100%;
}
.main-content .sub-title {
margin: 0.5rem 0 1rem 0;
}
.post-list {
display: block;
gap: 0;
}
.post-list-item {
max-width: none;
box-shadow: none;
padding: 0;
}