Skip to content

Commit df72304

Browse files
committed
fix: restore baseof.html and clean up debug code
- Restore layouts/_default/baseof.html with complete Poison theme structure - Remove DEBUG comments from layouts/index.html - Fixes issue with page not loading correctly - Initialize themes/poison submodule
1 parent ed89155 commit df72304

2 files changed

Lines changed: 10 additions & 12 deletions

File tree

layouts/_default/baseof.html

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
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>

layouts/index.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
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" . }}

0 commit comments

Comments
 (0)