Skip to content

Commit

Permalink
updates to use njk extension more appropriately
Browse files Browse the repository at this point in the history
  • Loading branch information
edelstone committed Sep 22, 2024
1 parent ad49f09 commit f611d58
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build-readme.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const TurndownService = require('turndown');
const turndownService = new TurndownService({ headingStyle: 'atx', bulletListMarker: '-'})

// Paths to the source and destination files
const aboutPath = path.join(__dirname, 'src', 'about.html');
const aboutPath = path.join(__dirname, 'src', 'about.njk');
const readmePath = path.join(__dirname, 'README.md');

// Read the content of the about.njk file
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Easily make tints and shades that match the output of Chrome DevTools, Sass, Less, and PostCSS.",
"main": "index.js",
"scripts": {
"watch:readme": "nodemon --watch src/about.html --watch build-readme.js --exec \"npm run build:readme\"",
"watch:readme": "nodemon --watch src/about.njk --watch build-readme.js --exec \"npm run build:readme\"",
"build:readme": "node build-readme.js",
"watch:css": "sass --watch src/scss:_site/css",
"build:css": "sass src/scss:_site/css",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/_includes/layouts/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<main id="main" class="main {% if docs %}docs{% endif %}">
{{ content | safe }}
</main>
{% include "footer.html" %}
{% include "footer.njk" %}
{% include "scripts.njk" %}
</body>

Expand Down
2 changes: 1 addition & 1 deletion src/about.html → src/about.njk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: layouts/base
title: About
permalink: /about.html
permalink: /about/
docs: true
---

Expand Down
File renamed without changes.

0 comments on commit f611d58

Please sign in to comment.