fablabbcn / fablabbcn-legacy-web

Fab Lab Barcelona legacy website
https://legacy.fablabbcn.org
4 stars 11 forks source link

Clean up: header and includes #13

Closed viktorsmari closed 4 years ago

viktorsmari commented 5 years ago

Many pages (blog.html, fab_academy.html, etc..) have this section at the top:

<header>

  {% include nav.html %}

</header><!-- site-header -->

Instead of having this on all these pages, lets instead use a layout which includes this.

At the top of the files we have the frontmatter which selects what layout to use:

---
layout: default
---

Can we use another layout which already includes this section?

Maybe we should analyse the site and see how many layouts we need. For example, maybe we need a special blog layout, and another post layout or fab_academy layout? But let's not add many layouts if they are not necessary :thinking:

viktorsmari commented 4 years ago

Why did we add the section layout? :thinking:

Are there pages on the websites that do NOT have the Navbar?

If there are no pages without a navbar, then the navbar should be included on the default layout and we should simply remove the section layout