diff options
author | Deniz Akşimşek <deniz@denizaksimsek.com> | 2022-05-16 12:56:44 +0300 |
---|---|---|
committer | Deniz Akşimşek <deniz@denizaksimsek.com> | 2022-05-16 12:56:44 +0300 |
commit | cb9eb3178a7637977894cb23c798c1d4a828cfc7 (patch) | |
tree | e14d49f16f80971870a2ee75a0020559779752c7 | |
parent | 665453a40eb7926db955a3310ee91270ab7c1686 (diff) | |
download | missing-cb9eb3178a7637977894cb23c798c1d4a828cfc7.tar.gz missing-cb9eb3178a7637977894cb23c798c1d4a828cfc7.zip |
fix demos page
-rw-r--r-- | www/_config.ts | 2 | ||||
-rw-r--r-- | www/demos.md | 5 | ||||
-rw-r--r-- | www/demos/_data.json | 3 |
3 files changed, 7 insertions, 3 deletions
diff --git a/www/_config.ts b/www/_config.ts index 498a49d..074c87c 100644 --- a/www/_config.ts +++ b/www/_config.ts @@ -37,6 +37,6 @@ export default lume( .use(highlighting()) .use(basePath()) .use(resolveUrls()) - .use(eta()) + .use(eta({ extensions: [".eta", ".html"] })) .use(myFilters()) .use(getDatesFromGit()) diff --git a/www/demos.md b/www/demos.md index b4f21a7..cbf791e 100644 --- a/www/demos.md +++ b/www/demos.md @@ -1,5 +1,6 @@ --- layout: layout.eta +templateEngine: eta,md --- <main> @@ -7,8 +8,8 @@ layout: layout.eta # Demos <ul class='list-of-links'> -<% for (const demo in collections.demos _%> -<li><p><a href="<%= demo.url %>"><%= demo.data.name %></a> +<% for (const demo in search.pages("demo")) { _%> +<li><p><a href="<%= demo.url %>"><%= demo.name %></a> <% } %> </ul> diff --git a/www/demos/_data.json b/www/demos/_data.json new file mode 100644 index 0000000..fa3737a --- /dev/null +++ b/www/demos/_data.json @@ -0,0 +1,3 @@ +{ + "tags": ["demo"] +}
\ No newline at end of file |