Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Nov 18, 2024
1 parent 070317b commit c8b903e
Show file tree
Hide file tree
Showing 4 changed files with 1,475 additions and 1,674 deletions.
7 changes: 1 addition & 6 deletions .metalsmith/markdownRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const slugify = (text) =>
);

markdownRenderer.heading = function (text, level) {
let headingSize = "";
let headingSize = "s";
switch (level) {
case 1:
headingSize = "xl";
Expand All @@ -22,11 +22,6 @@ markdownRenderer.heading = function (text, level) {
case 3:
headingSize = "m";
break;
case 4:
case 5:
case 6:
headingSize = "s";
break;
}
const slug = slugify(text);
return level === 1
Expand Down
2 changes: 2 additions & 0 deletions metalsmith.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import collections from "@metalsmith/collections";
import jsBundle from "@metalsmith/js-bundle";
import sass from "@metalsmith/sass";
import sitemap from "metalsmith-sitemap";
import jsTransformerNunjucks from "jstransformer-nunjucks";
import packageInfo from "./package.json" with { type: "json" };
import { readFileSync } from "fs";
import { join } from "path";
Expand Down Expand Up @@ -84,6 +85,7 @@ Metalsmith(__dirname)
)
.use(
inplace({
transform: jsTransformerNunjucks, // resolved
pattern: "**/*.njk",
engineOptions: nunjucksOptions,
}),
Expand Down
Loading

0 comments on commit c8b903e

Please sign in to comment.