瀏覽代碼

Add flex box around micropanels

Apis Necros 2 年之前
父節點
當前提交
e1f32fa0a6
共有 1 個文件被更改,包括 10 次插入6 次删除
  1. 10 6
      layouts/index.html

+ 10 - 6
layouts/index.html

@@ -1,16 +1,20 @@
 
 {{ define "main" }}
 	{{- partial "about.html" . -}}
-	<div id="blog-post" class="panel my-2">
+	<div id="blog-posts" class="panel my-2">
 		<h1 class="mb-4"><a href="/blog/">Blog Posts</a></h1>
-		{{ range first 3 (where .Site.RegularPages "Section" "blog") }}
+		<div id="blog-flex">
+			{{ range first 3 (where .Site.RegularPages "Section" "blog") }}
 			{{ partial "micropanel.html" . }}
-		{{end}}
+			{{end}}
+		</div>
 	</div>
 	<div id="project-posts" class="panel my-2">
 		<h1 class="mb-4"><a href="/projects/">Featured Projects</a></h1>
-		{{ range first 3 (where .Site.RegularPages "Section" "projects") }}
-			<div>{{ .Title }}</div>
-		{{end}}
+		<div id="project-flex">	
+			{{ range first 3 (where .Site.RegularPages "Section" "projects") }}
+			{{ partial "micropanel.html" . }}
+			{{end}}
+		</div>
 	</div>
 {{ end }}