jade header with menu auto

doctype html(lang="en") -var active = 'Main' //active menu header.jade -var pageTitle = 'Main' + ' - siteName' //title head meta(charset='utf-8') title= pageTitle meta(name='description', content='') meta(http-equiv='X-UA-Compatible', content='IE=edge') meta(name='viewport', content='width=device-width, initial-scale=1, maximum-scale=1') <!-- Old browser --> script. var $buoop = {vs:{i:10,f:25,o:15,s:6},c:2}; function $buo_f(){ var e = document.createElement("script"); e.src = "//browser-update.org/update.min.js"; document.body.appendChild(e); }; try {document.addEventListener("DOMContentLoaded", $buo_f,false)} catch(e){window.attachEvent("onload", $buo_f)} link(rel='stylesheet', href='./css/main.css') body <!-- Preloader --> .loader .loader__block <!-- Header --> header.header .container -var navigation = { 'Menu 1': '#', 'Menu 2': '#', 'Menu 3': '#', 'Menu 4': '#', 'Menu 5': '#', 'Menu 6': '#' }; nav.navigation(role="navigation") ul each val, key in navigation if active === key li.active a(href=val, title=key)= key else li a(href=val, title=key)= key
Automatic menu

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.