1
1
Fork 0

Syntax highlighting

This commit is contained in:
Ava Gaiety Wroten 2021-02-02 22:39:51 -06:00
parent 1b7cf94b9c
commit 3f2445210f
4 changed files with 805 additions and 1 deletions

View file

@ -1,4 +1,8 @@
const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
module.exports = function(eleventyConfig) {
eleventyConfig.addPlugin(syntaxHighlight);
eleventyConfig.addCollection(
"pinned",
collection => collection.getAllSorted().filter(item => item.data.pinned),

View file

@ -5,6 +5,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
<link href="https://unpkg.com/prismjs@1.20.0/themes/prism-okaidia.css" rel="stylesheet">
</head>
<body class="bg-gray-100">

798
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -19,6 +19,7 @@
},
"homepage": "https://gitlab.com/gaiety/portfolio#readme",
"devDependencies": {
"@11ty/eleventy": "^0.11.1"
"@11ty/eleventy": "^0.11.1",
"@11ty/eleventy-plugin-syntaxhighlight": "^3.0.6"
}
}