separate layouts into new folder

This commit is contained in:
yuki 2025-10-11 02:51:39 -03:00
parent ec266f3995
commit 677360a1ca
Signed by: yuki
GPG key ID: 0C98E6FF04EC3915
6 changed files with 10 additions and 3 deletions

View file

@ -3,6 +3,7 @@
<li><a href="/">home</a></li> <li><a href="/">home</a></li>
<li><a href="/about">about</a></li> <li><a href="/about">about</a></li>
<li><a href="/blog">blog</a></li> <li><a href="/blog">blog</a></li>
<li><a href="/reviews">reviews</a></li>
<li><a href="/contact">contact</a></li> <li><a href="/contact">contact</a></li>
</ul> </ul>
</nav> </nav>

View file

@ -15,7 +15,7 @@
{{ content | safe }} {{ content | safe }}
<footer> <footer>
<marquee class="motd" behavior="scroll" direction="left"> <marquee behavior="scroll" direction="left">
<img src="/img/Witch-on-broom.gif" alt=""> <img src="/img/Witch-on-broom.gif" alt="">
</marquee> </marquee>
{% include "footer.njk" %} {% include "footer.njk" %}

3
_layouts/home.njk Normal file
View file

@ -0,0 +1,3 @@
---
layout: base
---

View file

@ -14,7 +14,8 @@ body {
p { p {
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
color: mp.$text font-size: 0.8em;
color: mp.$text;
} }
} }

View file

@ -1,6 +1,7 @@
const eleventySass = require("eleventy-sass"); const eleventySass = require("eleventy-sass");
module.exports = function(eleventyConfig) { module.exports = function(eleventyConfig) {
eleventyConfig.setLayoutsDirectory("_layouts");
eleventyConfig.addPassthroughCopy("img"); eleventyConfig.addPassthroughCopy("img");
eleventyConfig.addPassthroughCopy("css/fonts"); eleventyConfig.addPassthroughCopy("css/fonts");
eleventyConfig.addPassthroughCopy("LICENSE.txt"); eleventyConfig.addPassthroughCopy("LICENSE.txt");

View file

@ -1,3 +1,4 @@
--- ---
layout: base layout: home
--- ---
welcome to my site!! not much is done yet but please have a look around.