WikiLerni/views/wikilerni/layout.pug

48 lines
2.2 KiB
Plaintext
Raw Normal View History

doctype html
html(lang=(pageLang) ? pageLang : config.adminLang)
head
meta(charset="utf-8")
meta(name="viewport" content="width=device-width, initial-scale=1.0")
if(metaDescription)
meta(name="description" content=metaDescription)
if(metaRobots)
meta(name="robots" content=metaRobots)
if(author)
meta(name="author" content=author)
if(pageTitle)
title #{pageTitle}
else
title #{config.siteName}
base(href=config.siteUrl)
// Version lisible des scripts : https://gitlab.com/lefablab/wikilerni/-/tree/master/front/src
block scripts
link(rel="stylesheet" href="/themes/wikilerni/css/common.css" media="screen and (min-width: 871px)")
link(rel="stylesheet" href="/themes/wikilerni/css/common-mobile.css" media="screen and (max-width: 870px)")
block css
link(rel="shortcut icon" href="/img/favicon.ico")
link(rel="apple-touch-icon" sizes="57x57" href="/img/apple-icon-57x57.png")
link(rel="icon" type="image/png" sizes="192x192" href="/img/android-icon-192x192.png")
link(rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png")
if(linkCanonical)
link(rel="canonical" href=linkCanonical)
body(class="cardboard")
header(class="cardboard")
a(href="/" title=configTpl.homePageTxt)
img(src="/themes/wikilerni/img/wikilerni-purple-2-128.png" alt=config.siteName+" (logo)")
ul(id="headLinks")
- const nbItemHead=configTpl.headLinks.length; const lang=config.adminLang+"";
for item in configTpl.headLinks
li(class="pure-menu-item pure-u-1 pure-u-lg-1-"+nbItemHead)
a(href="/"+item.url class="pure-menu-link")&attributes(item.attributes) #{item.anchor}
block content
- const nbItemFoot = configTpl.footLinks.length;
footer(class="cardboard")
ul(id="footLinks")
for item in configTpl.footLinks
li
a()&attributes(item.attributes) #{item.anchor}