Skip to content

Commit

Permalink
add documentation index
Browse files Browse the repository at this point in the history
  • Loading branch information
aloxe committed Dec 4, 2024
1 parent 4fc9bd1 commit 3433594
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@ module.exports = async function(eleventyConfig) {
return Image.generateHTML(imageMetadata, imageAttributes)
});

// Collections
eleventyConfig.addCollection("documentation", function (collection) {
return collection.getFilteredByGlob("./src/pages/documentation/**/*.md");
});

return {
dir: {
input: "src/pages",
Expand Down
11 changes: 10 additions & 1 deletion src/pages/documentation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@ description: Documentation for Huwindty.
layout: base.njk
ismarkdown: true
---
## Table of content
{% for post in collections.documentation %}
{% if post.data.title != 'documentation' %}
- [{{post.data.title}}]({{post.url}})
{{post.data.description}}
{% endif %}
{% endfor %}



## wind 🌬️

{% Picture page, "vera.jpg", "Wind is playing with the grass and they are dancing and enjoying the magical moment in their lives. Tinos, Greece", "lazy", undefined, undefined, "(max-width: 1200px) 40vw, 1200px" %}
{% Picture page, "vera.jpg", "Wind is playing with the grass and they are dancing and enjoying the magical moment in their lives. Tinos, Greece", undefined, undefined, undefined, "(max-width: 1200px) 40vw, 1200px" %}
1 change: 1 addition & 0 deletions src/pages/documentation/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: base.njk
title: Markdown
subtitle: Using Markdown in 11ty
tags: documentation
ismarkdown: true
---
## Markdown
Expand Down

0 comments on commit 3433594

Please sign in to comment.