From cc0dc0b4d3f831c54c32047a34093c90bdaeaac3 Mon Sep 17 00:00:00 2001 From: Tiago Celestino Date: Tue, 5 Nov 2024 17:56:17 -0300 Subject: [PATCH] feat: switch file to .njk --- eleventy.config.js | 4 ++-- src/{404.html => 404.njk} | 0 src/_layouts/{default.html => default.njk} | 2 +- src/_layouts/{post.html => post.njk} | 2 +- src/{index.html => index.njk} | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename src/{404.html => 404.njk} (100%) rename src/_layouts/{default.html => default.njk} (93%) rename src/_layouts/{post.html => post.njk} (83%) rename src/{index.html => index.njk} (93%) diff --git a/eleventy.config.js b/eleventy.config.js index 6631dd5..4cb43cf 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -6,8 +6,8 @@ module.exports = (config) => { config.addPassthroughCopy('src/assets/css/**/*'); - config.addLayoutAlias('default', 'default.html'); - config.addLayoutAlias('post', 'post.html'); + config.addLayoutAlias('default', 'default.njk'); + config.addLayoutAlias('post', 'post.njk'); config.addCollection('posts', require('./lib/collections/posts')); diff --git a/src/404.html b/src/404.njk similarity index 100% rename from src/404.html rename to src/404.njk diff --git a/src/_layouts/default.html b/src/_layouts/default.njk similarity index 93% rename from src/_layouts/default.html rename to src/_layouts/default.njk index 5d334cd..67c27cd 100644 --- a/src/_layouts/default.html +++ b/src/_layouts/default.njk @@ -17,7 +17,7 @@

Blocos de Notas

-
{{ content | raw }}
+
{{ content | safe }}