separate layouts into new folder
This commit is contained in:
parent
ec266f3995
commit
677360a1ca
6 changed files with 10 additions and 3 deletions
|
|
@ -3,6 +3,7 @@
|
|||
<li><a href="/">home</a></li>
|
||||
<li><a href="/about">about</a></li>
|
||||
<li><a href="/blog">blog</a></li>
|
||||
<li><a href="/reviews">reviews</a></li>
|
||||
<li><a href="/contact">contact</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
{{ content | safe }}
|
||||
|
||||
<footer>
|
||||
<marquee class="motd" behavior="scroll" direction="left">
|
||||
<marquee behavior="scroll" direction="left">
|
||||
<img src="/img/Witch-on-broom.gif" alt="">
|
||||
</marquee>
|
||||
{% include "footer.njk" %}
|
||||
3
_layouts/home.njk
Normal file
3
_layouts/home.njk
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
layout: base
|
||||
---
|
||||
|
|
@ -14,7 +14,8 @@ body {
|
|||
|
||||
p {
|
||||
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
|
||||
color: mp.$text
|
||||
font-size: 0.8em;
|
||||
color: mp.$text;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
const eleventySass = require("eleventy-sass");
|
||||
|
||||
module.exports = function(eleventyConfig) {
|
||||
eleventyConfig.setLayoutsDirectory("_layouts");
|
||||
eleventyConfig.addPassthroughCopy("img");
|
||||
eleventyConfig.addPassthroughCopy("css/fonts");
|
||||
eleventyConfig.addPassthroughCopy("LICENSE.txt");
|
||||
|
|
|
|||
3
index.md
3
index.md
|
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
layout: base
|
||||
layout: home
|
||||
---
|
||||
welcome to my site!! not much is done yet but please have a look around.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue