add internal template styling with pagination

This commit is contained in:
Bud Parr 2017-04-11 17:58:29 -04:00
parent a1e4b64910
commit 568ccb7539
No known key found for this signature in database
GPG key ID: ACA375160539D2B3
4 changed files with 30 additions and 2 deletions

View file

@ -12,6 +12,6 @@
{{ .Render "summary" }}
{{ end }}
</section>
{{ template "_internal/pagination.html" . }}
</article>
{{ end }}

View file

@ -0,0 +1,27 @@
/* pagination.html: https://github.com/spf13/hugo/blob/master/tpl/tplimpl/template_embedded.go#L117 */
.pagination {
margin: 3rem 0;
}
.pagination li {
display: inline-block;
margin-right: .375rem;
font-size: .875rem;
margin-bottom: 2.5em;
}
.pagination li a {
padding: .5rem .625rem;
background-color: white;
color: #333;
border: 1px solid #ddd;
border-radius: 3px;
text-decoration: none;
}
.pagination li.disabled {
display: none;
}
.pagination li.active a:link,
.pagination li.active a:active,
.pagination li.active a:visited {
background-color: #ddd;
}

View file

@ -1,2 +1,3 @@
@import '_tachyons';
@import '_hugo-internal-templates';
@import '_styles';

File diff suppressed because one or more lines are too long