diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 477932ad..3783d5ae 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,3 +1,9 @@
+{{ if .Params.widgets }}
+
+{{ partial "widget_page.html" . }}
+
+{{ else }}
+
{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
@@ -30,3 +36,5 @@
{{ partial "footer_container.html" . }}
{{ partial "footer.html" . }}
+
+{{ end }}
diff --git a/layouts/index.html b/layouts/index.html
index 8e02c171..e1d285b7 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,20 +1 @@
-{{ partial "header.html" . }}
-{{ partial "navbar.html" . }}
-
-
-
-
-
-{{ range $index, $page := where .Data.Pages "Type" "home" }}
- {{ $params := dict "root" $ "page" $page }}
- {{ $widget := printf "widgets/%s.html" ( or $page.Params.widget "custom" ) }}
-
{{ . | markdownify }}
{{ end }} {{ if gt (len $page.Params.tags_include) 0 }} - {{ $posts := where (where (where $.Data.Pages "Type" "post") ".Params.tags" "intersect" $page.Params.tags_include) ".Params.notonhomepage" nil }} + {{ $posts := where (where (where $.Site.RegularPages "Type" "post") ".Params.tags" "intersect" $page.Params.tags_include) ".Params.notonhomepage" nil }} {{ $.Scratch.Add "show_post" "1" }} {{ range $post := first $page.Params.count $posts }} @@ -50,7 +50,7 @@ {{ end }} {{ else}} - {{ $posts := where (where $.Data.Pages "Type" "post") ".Params.notonhomepage" nil }} + {{ $posts := where (where $.Site.RegularPages "Type" "post") ".Params.notonhomepage" nil }} {{ $.Scratch.Add "show_post" "1" }} {{ range $post := first $page.Params.count $posts }} diff --git a/layouts/partials/widgets/projects.html b/layouts/partials/widgets/projects.html index d3ef585b..d441e44e 100644 --- a/layouts/partials/widgets/projects.html +++ b/layouts/partials/widgets/projects.html @@ -32,7 +32,7 @@ {{ if eq $page.Params.view 0 }}