add dates to portfolio, add some content, add lightbox for portfolio images
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d43320e251
commit
10212022e9
29 changed files with 80 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
import * as sass from "sass";
|
||||
import { eleventyImageTransformPlugin } from "@11ty/eleventy-img";
|
||||
import Image, { eleventyImageTransformPlugin } from "@11ty/eleventy-img";
|
||||
import { DateTime } from "luxon";
|
||||
import markdownit from "markdown-it";
|
||||
import syntaxHighlight from '@11ty/eleventy-plugin-syntaxhighlight';
|
||||
|
@ -41,6 +41,15 @@ export default async function (eleventyConfig) {
|
|||
`;
|
||||
});
|
||||
|
||||
eleventyConfig.addShortcode("imageUrl", async (image, width) => {
|
||||
const img = await Image(`./content${image}`, {
|
||||
outputDir: 'dist/img/',
|
||||
useCache: true
|
||||
});
|
||||
|
||||
return img.jpeg[0].url;
|
||||
});
|
||||
|
||||
//Markdown
|
||||
const md = markdownit({
|
||||
html: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue