Skip to content

Commit

Permalink
Add Eleventy syntax highlighting plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Feb 17, 2024
1 parent e49cd82 commit 903c6d6
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/** @param {import("@11ty/eleventy").UserConfig} config */
module.exports = function(config) {
config.addPlugin(require("@11ty/eleventy-plugin-directory-output"));
config.addPlugin(require("@11ty/eleventy-plugin-syntaxhighlight"));

config.addPassthroughCopy({
"arise.*": "images",
Expand Down
23 changes: 23 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"devDependencies": {
"@11ty/eleventy": "2.0.1",
"@11ty/eleventy-plugin-directory-output": "1.0.1",
"@11ty/eleventy-plugin-syntaxhighlight": "5.0.0",
"markdownlint-cli2": "0.12.1"
},
"scripts": {
Expand Down
5 changes: 5 additions & 0 deletions src/layouts/core.njk
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
crossorigin="anonymous"
referrerpolicy="no-referrer"
integrity="sha512-b2QcS5SsA8tZodcDtGRELiGv5SaKSk1vDHDaQRda0htPYWZ6046lr3kJ5bAAQdpV2mmA/4v0wQF9MyU6/pDIAg==" />
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-twilight.min.css"
crossorigin="anonymous"
referrerpolicy="no-referrer"
integrity="sha512-ch9ThmrGmkVrVm9tL/puGmSfzQps4yk9LDrWuswb65ZnPOIKuYZBen1yn3ez/fEbgeBqrU/IJ443OqgallfE9Q==" />

<style>
body
Expand Down

0 comments on commit 903c6d6

Please sign in to comment.