diff --git a/eleventy.config.js b/eleventy.config.js index 4fd01a5..7e0e4a9 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -54,6 +54,7 @@ export default function eleventy(eleventyConfig) { }); eleventyConfig.addPassthroughCopy({ + 'node_modules/a11y-syntax-highlighting/dist/prism/a11y-dark.min.css': 'assets/styles/a11y-dark.min.css', 'node_modules/decap-cms/dist/decap-cms.js': 'lib/cms/decap-cms.js', 'node_modules/decap-cms/dist/decap-cms.js.map': 'lib/cms/decap-cms.js.map', diff --git a/package-lock.json b/package-lock.json index 88776d8..de367a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,6 +12,7 @@ "@11ty/eleventy": "3.0.0-alpha.5", "@11ty/eleventy-fetch": "^4.0.0", "@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0", + "a11y-syntax-highlighting": "^0.2.0", "decap-cms": "^3.1.2", "eleventy-plugin-markdown-shortcode": "^1.1.0", "esbuild": "^0.20.1", @@ -2528,6 +2529,11 @@ "resolved": "https://registry.npmjs.org/a-sync-waterfall/-/a-sync-waterfall-1.0.1.tgz", "integrity": "sha512-RYTOHHdWipFUliRFMCS4X2Yn2X8M87V/OpSqWzKKOGhzqyUxzyVmhHDH9sAvG+ZuQf/TAOFsLCpMw09I1ufUnA==" }, + "node_modules/a11y-syntax-highlighting": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/a11y-syntax-highlighting/-/a11y-syntax-highlighting-0.2.0.tgz", + "integrity": "sha512-l2W1Qa2RhpHkToDdYwnngzLVceQ9Kt8EoZ4uhCtxzyTK7RGQKS1JyGM2xw4vcNXXJGis9PkD7maS5kUZLlcQgw==" + }, "node_modules/accepts": { "version": "1.3.8", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", diff --git a/package.json b/package.json index f2526d5..c4a6db9 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "@11ty/eleventy": "3.0.0-alpha.5", "@11ty/eleventy-fetch": "^4.0.0", "@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0", + "a11y-syntax-highlighting": "^0.2.0", "decap-cms": "^3.1.2", "eleventy-plugin-markdown-shortcode": "^1.1.0", "esbuild": "^0.20.1", diff --git a/src/_layouts/base.njk b/src/_layouts/base.njk index 5c3fcb2..a31b2e4 100644 --- a/src/_layouts/base.njk +++ b/src/_layouts/base.njk @@ -1,12 +1,14 @@ - + {% block title %}{{ title }}{% endblock %} - - {# #} - {% block meta %}{% endblock %} + + + + + {% block meta %}{% endblock %} {{ content | safe }} diff --git a/src/_layouts/report.njk b/src/_layouts/report.njk index be78ace..6d27f1f 100644 --- a/src/_layouts/report.njk +++ b/src/_layouts/report.njk @@ -1,16 +1,13 @@ --- layout: base --- - - - {% set issueList = collections.issues %} {% set tipsList = collections.tips %}
-

Accessibility Conformance Report for {{ title }}

+

Accessibility Audit for {{ title }}

Evaluated by
@@ -44,22 +41,27 @@ layout: base

Pages

{% if scope %}

Scope: -

+ {% endif %} {% if outOfScope %}

Not in scope: