Syntax highlighting
This commit is contained in:
parent
1b7cf94b9c
commit
3f2445210f
4 changed files with 805 additions and 1 deletions
|
@ -1,4 +1,8 @@
|
||||||
|
const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
|
||||||
|
|
||||||
module.exports = function(eleventyConfig) {
|
module.exports = function(eleventyConfig) {
|
||||||
|
eleventyConfig.addPlugin(syntaxHighlight);
|
||||||
|
|
||||||
eleventyConfig.addCollection(
|
eleventyConfig.addCollection(
|
||||||
"pinned",
|
"pinned",
|
||||||
collection => collection.getAllSorted().filter(item => item.data.pinned),
|
collection => collection.getAllSorted().filter(item => item.data.pinned),
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<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/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
|
||||||
|
<link href="https://unpkg.com/prismjs@1.20.0/themes/prism-okaidia.css" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="bg-gray-100">
|
<body class="bg-gray-100">
|
||||||
|
|
798
package-lock.json
generated
798
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -19,6 +19,7 @@
|
||||||
},
|
},
|
||||||
"homepage": "https://gitlab.com/gaiety/portfolio#readme",
|
"homepage": "https://gitlab.com/gaiety/portfolio#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@11ty/eleventy": "^0.11.1"
|
"@11ty/eleventy": "^0.11.1",
|
||||||
|
"@11ty/eleventy-plugin-syntaxhighlight": "^3.0.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue