Skip to content

Commit

Permalink
feat: rewrite templates using vento
Browse files Browse the repository at this point in the history
  • Loading branch information
uncenter committed Nov 18, 2024
1 parent 917886e commit 6422ee1
Show file tree
Hide file tree
Showing 23 changed files with 264 additions and 184 deletions.
8 changes: 6 additions & 2 deletions eleventy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import pluginAutoCacheBuster from 'eleventy-auto-cache-buster';
import pluginIcons from 'eleventy-plugin-icons';
import pluginValidate from 'eleventy-plugin-validate';

import { VentoPlugin } from 'eleventy-plugin-vento';

import markdownLibrary from './config/markdown/core.js';

import {
Expand All @@ -27,6 +29,8 @@ import site from './site.config.js';
import eleventy from '11ty.ts';

export default eleventy(function (eleventyConfig) {
eleventyConfig.addPlugin(VentoPlugin);

eleventyConfig.addGlobalData('site', site);
eleventyConfig.addPlugin(shortcodes);
eleventyConfig.addPlugin(collections);
Expand Down Expand Up @@ -127,7 +131,7 @@ export default eleventy(function (eleventyConfig) {
layouts: '_layouts',
data: '_data',
},
templateFormats: ['md', 'njk', '11ty.js'],
markdownTemplateEngine: 'njk',
templateFormats: ['md', 'vto', '11ty.js'],
markdownTemplateEngine: 'vto',
};
});
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"eleventy-auto-cache-buster": "^0.6.1",
"eleventy-plugin-icons": "^4.5.1",
"eleventy-plugin-validate": "^0.1.3",
"eleventy-plugin-vento": "^4.0.1",
"html-minifier": "^4.0.0",
"image-size": "^1.1.1",
"lightningcss": "^1.27.0",
Expand Down
69 changes: 69 additions & 0 deletions pnpm-lock.yaml

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

29 changes: 0 additions & 29 deletions src/_includes/postslist.njk

This file was deleted.

32 changes: 0 additions & 32 deletions src/_includes/projectslist.njk

This file was deleted.

Loading

0 comments on commit 6422ee1

Please sign in to comment.