1
Fork 0

Use normal boxes on index

This commit is contained in:
Jake Howard 2017-09-16 22:04:15 +01:00
parent 0fe537197a
commit 12aec1a9b2
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 24 additions and 12 deletions

View file

@ -63,24 +63,32 @@
</div>
</section>
<div class="box special" id="projects">
<div class="index-list" id="projects">
<div class="align-center">
<h2><a href="/projects/">Projects</a></h2>
</div>
<div class="row">
{{ range first .Site.Params.index_items (where .Data.Pages.ByDate "Section" "projects") }}
{{ partial "box.html" . }}
{{ partial "box_image.html" . }}
{{ end }}
</div>
<div class="align-center">
<h4><a href="/projects/">All Projects</a></h4>
</div>
</div>
<div class="box special" id="recent-posts">
<div class="index-list" id="recent-posts">
<div class="align-center">
<h2><a href="/posts/">Recent Posts</a></h2>
</div>
<div class="row">
{{ range first .Site.Params.index_items (where .Data.Pages.ByDate "Section" "posts") }}
{{ partial "box.html" . }}
{{ partial "box_image.html" . }}
{{ end }}
</div>
<div class="align-center">
<h4><a href="/posts/">All Posts</a></h4>
</div>
</div>
</section>
{{ partial "page_end.html" . }}

View file

@ -166,3 +166,7 @@ nav {
}
}
}
.index-list {
margin-top: 4em;
}