diff --git a/.eleventy.js b/.eleventy.js index 4e998428..f647df3e 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -73,6 +73,10 @@ export default async function(eleventyConfig) { } eleventyConfig.ignores.add('test-suite'); + eleventyConfig.addWatchTarget('playground/next/index.html'); + + eleventyConfig.addGlobalData('now', () => new Date()); + // setup development proxy to cloudflare pages function server if(process.env.ELEVENTY_RUN_MODE === 'serve') { eleventyConfig.setServerOptions({ diff --git a/_includes/implementation-card.liquid b/_includes/implementation-card.liquid new file mode 100644 index 00000000..ef39cc43 --- /dev/null +++ b/_includes/implementation-card.liquid @@ -0,0 +1,33 @@ +
+
+

{% if language %}{{ language | split: ',' | join: ' / ' }}{% else %}{{ applicationCategory }}{% endif %}

+
+
+ {% liquid + if language + assign languages = language | split: ',' + assign imps = implementations | where_exp: 'imp', 'imp.applicationCategory != "CLI"' + for implementation in imps + assign found = false + for implang in implementation.language + for lang in languages + if found == false + assign found = lang == implang + endif + endfor + endfor + if found == true + include 'implementation-item' + endif + endfor + else + assign imps = implementations | where: 'applicationCategory', applicationCategory + for implementation in imps + include 'implementation-item' + endfor + endif + %} +
+
+
+
diff --git a/_includes/implementation-item.liquid b/_includes/implementation-item.liquid index 576aaf65..9d81c6ce 100644 --- a/_includes/implementation-item.liquid +++ b/_includes/implementation-item.liquid @@ -1,7 +1,7 @@ -
  • +
    {{ implementation.name }} - + {%- if implementation.jsonldVersion == 1.0 -%} 1.0 {%- else -%} @@ -9,4 +9,4 @@ {%- endif -%} -
  • + diff --git a/_layouts/default.liquid b/_layouts/bs2.liquid similarity index 100% rename from _layouts/default.liquid rename to _layouts/bs2.liquid diff --git a/_layouts/fomantic.liquid b/_layouts/fomantic.liquid index 7e254dc0..53960d28 100644 --- a/_layouts/fomantic.liquid +++ b/_layouts/fomantic.liquid @@ -21,10 +21,14 @@