Ajout de page et du style principal
This commit is contained in:
17
layouts/_default/baseof.html
Normal file
17
layouts/_default/baseof.html
Normal file
@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.Language.Lang }}">
|
||||
{{ partial "head.html" . }}
|
||||
<body{{ $currentPage := . }}{{ range .Site.Menus.main }}
|
||||
{{ if or ($currentPage.IsMenuCurrent "main" .) (eq $currentPage.Menus.main.Pre .Pre) }} class="{{ .Pre }}"{{ end }}
|
||||
{{ if $currentPage.IsHome }} class="home"{{ end }}
|
||||
{{ end }}>
|
||||
{{ partial "header.html" . }}
|
||||
{{ block "all" . }}
|
||||
<main role="main" id="content">
|
||||
{{ block "main" . }}{{ end }}
|
||||
</main>
|
||||
{{ end }}
|
||||
{{ partial "footer.html" . }}
|
||||
{{ partial "js.html" . }}
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user