File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- <!DOCTYPE html>
2- < html >
3- < head >
4- < title > Test Baseof</ title >
5- </ head >
6- < body >
7- <!-- DEBUG: THIS IS BASEOF.HTML -->
8- {{ block "main" . -}}{{- end }}
9- </ body >
1+ {{ partial "head/head.html" . }}
2+ < body class ="{{if .Site.Params.layoutReverse}}layout-reverse {{end}}{{if .Site.Params.dark_mode}}dark-theme{{end}} ">
3+ < div class ="wrapper ">
4+ {{ partial "sidebar/sidebar.html" . }}
5+ < main class ="content container ">
6+ {{ block "main" . -}}{{- end }}
7+ </ main >
8+ {{ block "sidebar" . }}{{ end }}
9+ </ div >
10+ </ body >
1011</ html>
Original file line number Diff line number Diff line change 1- <!-- DEBUG: THIS IS LAYOUTS/INDEX.HTML -->
21{{ define "main" -}}
32< div class ="posts ">
43 {{ $frontPageTypes := default (slice "posts") .Site.Params.front_page_content }}
5- <!-- DEBUG: frontPageTypes = {{ $frontPageTypes }} -->
64 {{ $pages := (where .Site.RegularPages "Type" "in" $frontPageTypes) }}
7- <!-- DEBUG: Found {{ len $pages }} pages of type {{ $frontPageTypes }} -->
85 {{ range (.Paginate $pages).Pages }}
96 < article class ="post ">
107 {{ partial "post/info.html" . }}
You can’t perform that action at this time.
0 commit comments